public class GMLShapeInfo extends ShapeDebugFrame.ShapeInfo
name| Constructor and Description |
|---|
GMLShapeInfo(GMLShape shape,
java.lang.String name,
java.awt.Color outlineColour,
java.awt.Color fillColour)
Create a new GMLShapeInfo.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Point2D |
getBoundsPoint()
Get the point representing this shape.
|
java.awt.geom.Rectangle2D |
getBoundsShape()
Get the bounding shape of this shape.
|
java.awt.Shape |
paint(java.awt.Graphics2D g,
ScreenTransform transform)
Paint this ShapeInfo on a Graphics2D object.
|
void |
paintLegend(java.awt.Graphics2D g,
int width,
int height)
Paint this ShapeInfo on a the legend.
|
getName, getObjectpublic GMLShapeInfo(GMLShape shape, java.lang.String name, java.awt.Color outlineColour, java.awt.Color fillColour)
shape - The shape to draw.name - The name of the shape.outlineColour - The colour to draw the outline of the shape. This may be null to indicate that the outline should not be painted.fillColour - The colour to draw the interior of the shape. This may be null to indicate that the interior should not be painted.public java.awt.Shape paint(java.awt.Graphics2D g,
ScreenTransform transform)
ShapeDebugFrame.ShapeInfopaint in class ShapeDebugFrame.ShapeInfog - The Graphics2D to draw on.transform - The current screen transform.public void paintLegend(java.awt.Graphics2D g,
int width,
int height)
ShapeDebugFrame.ShapeInfopaintLegend in class ShapeDebugFrame.ShapeInfog - The Graphics2D to draw on.width - The available width.height - The available height.public java.awt.geom.Rectangle2D getBoundsShape()
ShapeDebugFrame.ShapeInfogetBoundsShape in class ShapeDebugFrame.ShapeInfopublic java.awt.geom.Point2D getBoundsPoint()
ShapeDebugFrame.ShapeInfogetBoundsPoint in class ShapeDebugFrame.ShapeInfo