|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.java.balloontip.styles.BalloonTipStyle
net.java.balloontip.styles.ModernBalloonStyle
public class ModernBalloonStyle
A balloon tip with a vertical linear gradient background The border's thickness can be adjusted and anti-aliased. You can also choose which corners should be rounded corners or just plain corners.
Field Summary |
---|
Fields inherited from class net.java.balloontip.styles.BalloonTipStyle |
---|
flipX, flipY, horizontalOffset, verticalOffset |
Constructor Summary | |
---|---|
ModernBalloonStyle(int arcWidth,
int arcHeight,
java.awt.Color topFillColor,
java.awt.Color bottomFillColor,
java.awt.Color borderColor)
Constructor |
Method Summary | |
---|---|
void |
enableAntiAliasing(boolean enable)
Enable/disable anti-aliasing for this balloon tip |
java.awt.Insets |
getBorderInsets(java.awt.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(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
|
void |
setBorderThickness(int thickness)
Set the thickness of the balloon tip's border |
void |
setCornerStyles(boolean topLeft,
boolean topRight,
boolean bottomLeft,
boolean bottomRight)
Sets the style for each corner. |
Methods inherited from class net.java.balloontip.styles.BalloonTipStyle |
---|
flip, flipX, flipY, setHorizontalOffset, setVerticalOffset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModernBalloonStyle(int arcWidth, int arcHeight, java.awt.Color topFillColor, java.awt.Color bottomFillColor, java.awt.Color borderColor)
arcWidth
- width of the rounded cornerarcHeight
- height of the rounded colorborderColor
- line colortopFillColor
- top color of the lineair gradient fill colorbottomFillColor
- bottom color of the lineair gradient fill colorMethod Detail |
---|
public void setCornerStyles(boolean topLeft, boolean topRight, boolean bottomLeft, boolean bottomRight)
topLeft
- if true, the top-left corner is roundedtopRight
- if true, the top-right corner is roundedbottomLeft
- if true, the bottom-left corner is roundedbottomRight
- if true, the bottom-right corner is roundedpublic void setBorderThickness(int thickness)
thickness
- border thickness in pixelspublic void enableAntiAliasing(boolean enable)
enable
- if true, AA is enabled; if false, the settings remain untouchedpublic java.awt.Insets getBorderInsets(java.awt.Component c)
BalloonTipStyle
getBorderInsets
in interface javax.swing.border.Border
getBorderInsets
in class BalloonTipStyle
public boolean isBorderOpaque()
BalloonTipStyle
isBorderOpaque
in interface javax.swing.border.Border
isBorderOpaque
in class BalloonTipStyle
public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
public int getMinimalHorizontalOffset()
BalloonTipStyle
getMinimalHorizontalOffset
in class BalloonTipStyle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |