|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.tooltip.shapes.RoundedRectangularShape
public class RoundedRectangularShape
A balloon shape implementation, a rounded rectangle shape.
| Constructor Summary | |
|---|---|
RoundedRectangularShape()
|
|
| Method Summary | |
|---|---|
Shape |
createOutline(Dimension balloonSize,
Dimension contentSize)
Create the outline of the rounded rectangle. |
int |
getCornerSize()
|
static double |
getDistance(Point p,
Rectangle rect,
int cornerSize)
Gets distance from pixel to the rounded rectangle |
double |
getEdgeDistance(Point pixel,
BalloonTip balloonTip)
Get the closest distance between the current pixel and the edge of the balloon outline. |
Point |
getHotSpot(Dimension balloonSize)
Gets the arrow vertex position. |
Insets |
getInsets(Dimension contentSize)
Get the insets around the content component. |
void |
setCornerSize(int cornerSize)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RoundedRectangularShape()
| Method Detail |
|---|
public Shape createOutline(Dimension balloonSize,
Dimension contentSize)
createOutline in interface BalloonShapeballoonSize - the preferred size of the balloon.contentSize - the preferred size of the content
public Point getHotSpot(Dimension balloonSize)
BalloonShape
getHotSpot in interface BalloonShapeballoonSize - the preferred size of the balloon.
public Insets getInsets(Dimension contentSize)
BalloonShape
getInsets in interface BalloonShapecontentSize - the preferred size of the content component.
public double getEdgeDistance(Point pixel,
BalloonTip balloonTip)
BalloonShape
getEdgeDistance in interface BalloonShapepixel - current point in the balloon coordinate system.balloonTip - the balloon tip.
public static double getDistance(Point p,
Rectangle rect,
int cornerSize)
p - pointrect - rectanglecornerSize - the corner size of the rounded rectangle
public int getCornerSize()
public void setCornerSize(int cornerSize)
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||