public abstract class BalloonTipStyle extends Object implements Border
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
flipX |
protected boolean |
flipY |
protected int |
horizontalOffset |
protected int |
verticalOffset |
| Constructor and Description |
|---|
BalloonTipStyle() |
| Modifier and Type | Method and Description |
|---|---|
void |
flip(boolean flipX,
boolean flipY)
Which mirror effect should be applied to the balloon tip
|
void |
flipX(boolean flipX)
Flip around the vertical axis
|
void |
flipY(boolean flipY)
Flip around the horizontal axis
|
abstract 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 |
setHorizontalOffset(int px)
Sets a new value for the horizontal offset.
|
void |
setVerticalOffset(int px)
Sets a new value for the vertical offset.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpaintBorderprotected int horizontalOffset
protected int verticalOffset
protected boolean flipX
protected boolean flipY
public void setHorizontalOffset(int px)
px - horizontal offset (in pixels)public void setVerticalOffset(int px)
px - horizontal offset (in pixels)public int getMinimalHorizontalOffset()
public void flipX(boolean flipX)
flipX - if true, the balloon tip is flipped horizontallypublic void flipY(boolean flipY)
flipY - if true, the balloon tip is flipped verticallypublic void flip(boolean flipX,
boolean flipY)
flipX - if true, the balloon tip is flipped horizontallyflipY - if true, the balloon tip is flipped verticallypublic boolean isBorderOpaque()
isBorderOpaque in interface Borderpublic abstract Insets getBorderInsets(Component c)
getBorderInsets in interface Border