public class GridLayer extends CanvasLayer implements VisibleComponent
| Constructor and Description |
|---|
GridLayer()
Create a new GridLayer with a default one-pixel grid stroke
and a light grey grid color.
|
GridLayer(Shape s,
Paint p)
Create a new GridLayer with the given vertex shape and paint.
|
GridLayer(Stroke s,
Paint p)
Create a new GridLayer with the given grid stroke and paint
|
| Modifier and Type | Method and Description |
|---|---|
Paint |
getGridPaint()
Get the grid line paint.
|
Stroke |
getGridStroke()
Get the grid line stroke.
|
Paint |
getVertexPaint()
Get the vertex point paint.
|
Shape |
getVertexShape()
Get the vertex point shape.
|
boolean |
isVisible()
Test the visibility flag of this layer.
|
void |
paint(Graphics2D g)
Paint this layer onto a 2D graphics object.
|
void |
paint(Graphics2D g,
Rectangle2D region)
Paint this layer onto a 2D graphics object, within the given
region.
|
void |
setGridPaint(Paint p)
Set the grid line paint.
|
void |
setGridStroke(Stroke s)
Set the grid line stroke.
|
void |
setVertexPaint(Paint p)
Set the vertex point paint.
|
void |
setVertexShape(Shape s)
Set the vertex point shape.
|
void |
setVisible(boolean flag)
Set the visibility flag of this layer.
|
getCanvasPane, getLayerBounds, getParent, getToolTipText, getTransformContext, repaint, repaint, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParent, getTransformContext, repaint, repaintpublic GridLayer()
public GridLayer(Stroke s, Paint p)
public Stroke getGridStroke()
public Paint getGridPaint()
public Shape getVertexShape()
public Paint getVertexPaint()
public boolean isVisible()
isVisible in interface VisibleComponentpublic void paint(Graphics2D g)
FIXME: Vertexes are not yet supported.
paint in interface VisibleComponentpublic void paint(Graphics2D g, Rectangle2D region)
paint in interface VisibleComponentpublic void setGridStroke(Stroke s)
public void setGridPaint(Paint p)
public void setVertexShape(Shape s)
public void setVertexPaint(Paint p)
public void setVisible(boolean flag)
setVisible in interface VisibleComponentCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.