net.java.balloontip.styles
Class ToolTipBalloonStyle

java.lang.Object
  extended by net.java.balloontip.styles.BalloonTipStyle
      extended by net.java.balloontip.styles.ToolTipBalloonStyle
All Implemented Interfaces:
javax.swing.border.Border

public class ToolTipBalloonStyle
extends BalloonTipStyle

A balloon tip style that looks like a tool tip (i.e. just a plain old rectangle)

Author:
Bernhard Pauler, Tim Molderez

Field Summary
 
Fields inherited from class net.java.balloontip.styles.BalloonTipStyle
flipX, flipY, horizontalOffset, verticalOffset
 
Constructor Summary
ToolTipBalloonStyle(java.awt.Color fillColor, java.awt.Color borderColor)
          Constructor
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
          Retrieve the balloon tip's border insets
 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)
           
 
Methods inherited from class net.java.balloontip.styles.BalloonTipStyle
flip, flipX, flipY, getMinimalHorizontalOffset, setHorizontalOffset, setVerticalOffset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToolTipBalloonStyle

public ToolTipBalloonStyle(java.awt.Color fillColor,
                           java.awt.Color borderColor)
Constructor

Parameters:
borderColor - border line color
fillColor - fill color
Method Detail

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Description copied from class: BalloonTipStyle
Retrieve the balloon tip's border insets

Specified by:
getBorderInsets in interface javax.swing.border.Border
Specified by:
getBorderInsets in class BalloonTipStyle
Returns:
The balloon tip's border insets

isBorderOpaque

public boolean isBorderOpaque()
Description copied from class: BalloonTipStyle
Is this balloon tip opaque?

Specified by:
isBorderOpaque in interface javax.swing.border.Border
Overrides:
isBorderOpaque in class BalloonTipStyle
Returns:
True if opaque, false if the border uses transparency

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)


http://balloontip.java.net/