|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.gvt.MarkerShapePainter
A shape painter that can be used to paint markers on a shape.
Field Summary | |
protected java.awt.Shape |
shape
The Shape to be painted |
Constructor Summary | |
MarkerShapePainter(java.awt.Shape shape)
Constructs a new FillShapePainter that can be used to fill a Shape. |
Method Summary | |
ProxyGraphicsNode |
buildEndMarkerProxy()
Builds a proxy GraphicsNode for the input Marker to be drawn at the end position |
ProxyGraphicsNode[] |
buildMiddleMarkerProxies()
Builds a proxy GraphicsNode for the input Marker to be drawn at the middle positions |
ProxyGraphicsNode |
buildStartMarkerProxy()
Builds a proxy GraphicsNode for the input Marker to be drawn at the start position |
Marker |
getEndMarker()
|
Marker |
getMiddleMarker()
|
java.awt.Shape |
getPaintedArea(GraphicsNodeRenderContext rc)
Returns the area painted by this painter |
java.awt.Shape |
getShape()
Gets the Shape this painter is associated with. |
Marker |
getStartMarker()
|
void |
paint(java.awt.Graphics2D g2d,
GraphicsNodeRenderContext ctx)
Paints the specified shape using the specified Graphics2D and context. |
void |
setEndMarker(Marker endMarker)
|
void |
setMiddleMarker(Marker middleMarker)
|
void |
setShape(java.awt.Shape shape)
Sets the Shape this painter is associated with. |
void |
setStartMarker(Marker startMarker)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.awt.Shape shape
Constructor Detail |
public MarkerShapePainter(java.awt.Shape shape)
shape
- Shape to be painted by this painter. Should not be nullMethod Detail |
public void setStartMarker(Marker startMarker)
public void setMiddleMarker(Marker middleMarker)
public void setEndMarker(Marker endMarker)
public Marker getStartMarker()
public Marker getMiddleMarker()
public Marker getEndMarker()
public ProxyGraphicsNode buildStartMarkerProxy()
public ProxyGraphicsNode buildEndMarkerProxy()
public ProxyGraphicsNode[] buildMiddleMarkerProxies()
public void paint(java.awt.Graphics2D g2d, GraphicsNodeRenderContext ctx)
paint
in interface ShapePainter
shape
- the shape to paintg2d
- the Graphics2D to usectx
- the render context to usepublic java.awt.Shape getPaintedArea(GraphicsNodeRenderContext rc)
getPaintedArea
in interface ShapePainter
public void setShape(java.awt.Shape shape)
setShape
in interface ShapePainter
shape
- new shape this painter should be associated with.
should not be null.public java.awt.Shape getShape()
getShape
in interface ShapePainter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |