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, setVerticalOffset
public 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)
BalloonTipStyle
getBorderInsets
in interface Border
getBorderInsets
in class BalloonTipStyle
public boolean isBorderOpaque()
BalloonTipStyle
isBorderOpaque
in interface Border
isBorderOpaque
in class BalloonTipStyle
public int getMinimalHorizontalOffset()
BalloonTipStyle
getMinimalHorizontalOffset
in class BalloonTipStyle