public static class ShapeDebugFrame.Line2DShapeInfo extends ShapeDebugFrame.ShapeInfo
name| Constructor and Description |
|---|
Line2DShapeInfo(java.util.Collection<Line2D> lines,
java.lang.String name,
java.awt.Color colour,
boolean thick,
boolean arrow)
Construct a new Line2DShapeInfo object.
|
Line2DShapeInfo(Line2D line,
java.lang.String name,
java.awt.Color colour,
boolean thick,
boolean arrow)
Construct a new Line2DShapeInfo object.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.geom.Point2D |
getBoundsPoint()
Get the point representing this shape.
|
java.awt.Shape |
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 Line2DShapeInfo(Line2D line, java.lang.String name, java.awt.Color colour, boolean thick, boolean arrow)
line - The line to display.name - The name of the line.colour - The colour of the line.thick - Whether to draw the line with a thick stroke.arrow - Whether to draw an arrow showing the direction of the line.public Line2DShapeInfo(java.util.Collection<Line2D> lines, java.lang.String name, java.awt.Color colour, boolean thick, boolean arrow)
lines - The lines to display.name - The name of the line.colour - The colour of the line.thick - Whether to draw the line with a thick stroke.arrow - Whether to draw an arrow showing the direction of the line.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.Shape getBoundsShape()
ShapeDebugFrame.ShapeInfogetBoundsShape in class ShapeDebugFrame.ShapeInfopublic java.awt.geom.Point2D getBoundsPoint()
ShapeDebugFrame.ShapeInfogetBoundsPoint in class ShapeDebugFrame.ShapeInfo