public class TexturedBalloonStyle extends BalloonTipStyle
flipX, flipY, horizontalOffset, verticalOffset| Constructor and Description |
|---|
TexturedBalloonStyle(int arcWidth,
int arcHeight,
URL background,
Color borderColor)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Insets |
getBorderInsets(Component c)
Retrieve the balloon tip's border insets
|
int |
getMinimalHorizontalOffset()
Get the minimum value of the horizontal offset
(Also useful as a maximum; maximum horizontaloffset = balloon tip width - minimum horizontal offset)
|
boolean |
isBorderOpaque()
Is this balloon tip opaque?
|
void |
paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height) |
flip, flipX, flipY, setHorizontalOffset, setVerticalOffsetpublic TexturedBalloonStyle(int arcWidth,
int arcHeight,
URL background,
Color borderColor)
throws IOException
arcWidth - width of the rounded cornerarcHeight - height of the rounded cornerbackground - the background image that's used (it's used as a pattern, so the image will repeat...)borderColor - line colorIOException - in case something went wrong when opening the background imagepublic Insets getBorderInsets(Component c)
BalloonTipStylegetBorderInsets in interface BordergetBorderInsets in class BalloonTipStylepublic boolean isBorderOpaque()
BalloonTipStyleisBorderOpaque in interface BorderisBorderOpaque in class BalloonTipStylepublic int getMinimalHorizontalOffset()
BalloonTipStylegetMinimalHorizontalOffset in class BalloonTipStyle