com.jidesoft.tooltip.shapes
Class RectangularShape
java.lang.Object
com.jidesoft.tooltip.shapes.RoundedRectangularShape
com.jidesoft.tooltip.shapes.RectangularShape
- All Implemented Interfaces:
- BalloonShape
public class RectangularShape
- extends RoundedRectangularShape
A balloon shape implementation, a simple rectangle shape.
Constructor Summary |
RectangularShape()
Creates a new instance of RectangularBalloon |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RectangularShape
public RectangularShape()
- Creates a new instance of RectangularBalloon
createOutline
public Shape createOutline(Dimension balloonSize,
Dimension contentSize)
- Description copied from class:
RoundedRectangularShape
- Create the outline of the rounded rectangle.
- Specified by:
createOutline
in interface BalloonShape
- Overrides:
createOutline
in class RoundedRectangularShape
- Parameters:
balloonSize
- the preferred size of the balloon.contentSize
- the preferred size of the content
- Returns:
- the balloon the shape
getEdgeDistance
public double getEdgeDistance(Point pixel,
BalloonTip balloonTip)
- Description copied from interface:
BalloonShape
- Get the closest distance between the current pixel and the edge of the
balloon outline. Used to determin the edge light effect.
- Specified by:
getEdgeDistance
in interface BalloonShape
- Overrides:
getEdgeDistance
in class RoundedRectangularShape
- Parameters:
pixel
- current point in the balloon coordinate system.balloonTip
- the balloon tip.
- Returns:
- the closest or effective distance of the pixel to the balloon outline.