public abstract static class ShapeDebugFrame.ShapeInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
name
The name of the shape.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ShapeInfo(java.lang.Object object,
java.lang.String name)
Construct a new ShapeInfo object.
|
| Modifier and Type | Method and Description |
|---|---|
abstract java.awt.geom.Point2D |
getBoundsPoint()
Get the point representing this shape.
|
abstract java.awt.Shape |
getBoundsShape()
Get the bounding shape of this shape.
|
java.lang.String |
getName()
Get the name of this shape info.
|
java.lang.Object |
getObject()
Get the object this shape represents.
|
abstract java.awt.Shape |
paint(java.awt.Graphics2D g,
ScreenTransform transform)
Paint this ShapeInfo on a Graphics2D object.
|
abstract void |
paintLegend(java.awt.Graphics2D g,
int width,
int height)
Paint this ShapeInfo on a the legend.
|
protected ShapeInfo(java.lang.Object object,
java.lang.String name)
object - The object this shape represents.name - The name of the shape.public abstract java.awt.Shape paint(java.awt.Graphics2D g,
ScreenTransform transform)
g - The Graphics2D to draw on.transform - The current screen transform.public abstract void paintLegend(java.awt.Graphics2D g,
int width,
int height)
g - The Graphics2D to draw on.width - The available width.height - The available height.public java.lang.Object getObject()
public java.lang.String getName()
public abstract java.awt.Shape getBoundsShape()
public abstract java.awt.geom.Point2D getBoundsPoint()