JIDE 3.5.15

com.jidesoft.tooltip.shapes
Class RectangularShape

java.lang.Object
  extended by com.jidesoft.tooltip.shapes.RoundedRectangularShape
      extended by 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
 
Method Summary
 Shape createOutline(Dimension balloonSize, Dimension contentSize)
          Create the outline of the rounded rectangle.
 double getEdgeDistance(Point pixel, BalloonTip balloonTip)
          Get the closest distance between the current pixel and the edge of the balloon outline.
 
Methods inherited from class com.jidesoft.tooltip.shapes.RoundedRectangularShape
getCornerSize, getDistance, getHotSpot, getInsets, setCornerSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RectangularShape

public RectangularShape()
Creates a new instance of RectangularBalloon

Method Detail

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.

JIDE 3.5.15