java.lang.Object
jpicedt.graphic.view.AbstractView
jpicedt.graphic.view.DefaultViewFactory.LeafElementView
jpicedt.graphic.view.DefaultViewFactory.PolygonView
- All Implemented Interfaces:
- View
- Enclosing class:
- DefaultViewFactory
- public class DefaultViewFactory.PolygonView
- extends DefaultViewFactory.LeafElementView
a View for rendering polygons
Method Summary |
void |
paint(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D a)
Render the View to the given graphic context. |
protected void |
syncAttributes()
Inherits from superclass, except for filling behaviour ; adds dotting behaviour according to
Shape returned by createDostForPolygons. |
protected void |
syncShape()
Synchronize the "shape" variable with the model |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
arrowStroke
private java.awt.Stroke arrowStroke
arrow1
private jpicedt.graphic.model.Arrow arrow1
arrow2
private jpicedt.graphic.model.Arrow arrow2
arrow1Dir
private jpicedt.graphic.PicPoint arrow1Dir
arrow2Dir
private jpicedt.graphic.PicPoint arrow2Dir
arrow1Loc
private jpicedt.graphic.PicPoint arrow1Loc
arrow2Loc
private jpicedt.graphic.PicPoint arrow2Loc
isLine
private boolean isLine
dotShape
protected java.awt.Shape dotShape
DefaultViewFactory.PolygonView
public DefaultViewFactory.PolygonView(jpicedt.graphic.model.PicPolygon polygon)
- construct a new View for the given polygon
syncShape
protected void syncShape()
- Synchronize the "shape" variable with the model
- Overrides:
syncShape
in class DefaultViewFactory.LeafElementView
syncAttributes
protected void syncAttributes()
- Inherits from superclass, except for filling behaviour ; adds dotting behaviour according to
Shape returned by createDostForPolygons.
- Overrides:
syncAttributes
in class DefaultViewFactory.LeafElementView
paint
public void paint(java.awt.Graphics2D g,
java.awt.geom.Rectangle2D a)
- Render the View to the given graphic context.
- Specified by:
paint
in interface View
- Overrides:
paint
in class DefaultViewFactory.LeafElementView
- Since:
- jPicEdt 1.3.2