net.java.balloontip.styles
Class MinimalBalloonStyle
java.lang.Object
net.java.balloontip.styles.BalloonTipStyle
net.java.balloontip.styles.MinimalBalloonStyle
- All Implemented Interfaces:
- Border
public class MinimalBalloonStyle
- extends BalloonTipStyle
A minimal anti-aliased balloon tip style with no border and rounded corners
- Author:
- Tim Molderez
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MinimalBalloonStyle
public MinimalBalloonStyle(Color fillColor,
int arcWidth)
- Constructor
- Parameters:
fillColor - fill color (transparent colors are allowed)arcWidth - the radius of a rounded corner
getBorderInsets
public Insets getBorderInsets(Component c)
- Description copied from class:
BalloonTipStyle
- Retrieve the balloon tip's border insets
- Specified by:
getBorderInsets in interface Border- Specified by:
getBorderInsets in class BalloonTipStyle
- Returns:
- The balloon tip's border insets
paintBorder
public void paintBorder(Component c,
Graphics g,
int x,
int y,
int width,
int height)
getMinimalHorizontalOffset
public int getMinimalHorizontalOffset()
- Description copied from class:
BalloonTipStyle
- Get the minimum value of the horizontal offset
(Also useful as a maximum; maximum horizontaloffset = balloon tip width - minimum horizontal offset)
- Overrides:
getMinimalHorizontalOffset in class BalloonTipStyle
- Returns:
- Minimul horizontal offset
isBorderOpaque
public boolean isBorderOpaque()
- Description copied from class:
BalloonTipStyle
- Is this balloon tip opaque?
- Specified by:
isBorderOpaque in interface Border- Overrides:
isBorderOpaque in class BalloonTipStyle
- Returns:
- True if opaque, false if the border uses transparency
http://balloontip.java.net/