Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jpicedt.graphic.view
Class DefaultViewFactory.PolygonView  view DefaultViewFactory.PolygonView download DefaultViewFactory.PolygonView.java

java.lang.Object
  extended byjpicedt.graphic.view.AbstractView
      extended byjpicedt.graphic.view.DefaultViewFactory.LeafElementView
          extended byjpicedt.graphic.view.DefaultViewFactory.PolygonView
All Implemented Interfaces:
View
Enclosing class:
DefaultViewFactory

public class DefaultViewFactory.PolygonView
extends DefaultViewFactory.LeafElementView

a View for rendering polygons


Field Summary
private  jpicedt.graphic.model.Arrow arrow1
           
private  jpicedt.graphic.PicPoint arrow1Dir
           
private  jpicedt.graphic.PicPoint arrow1Loc
           
private  jpicedt.graphic.model.Arrow arrow2
           
private  jpicedt.graphic.PicPoint arrow2Dir
           
private  jpicedt.graphic.PicPoint arrow2Loc
           
private  java.awt.Stroke arrowStroke
           
protected  java.awt.Shape dotShape
           
private  boolean isLine
           
 
Fields inherited from class jpicedt.graphic.view.DefaultViewFactory.LeafElementView
interiorPaint, lineWidth, outlinePaint, outlineStroke, shape
 
Fields inherited from class jpicedt.graphic.view.AbstractView
bounds, element
 
Fields inherited from interface jpicedt.graphic.view.View
BARBELL_SIZE, CLICK_DISTANCE
 
Constructor Summary
DefaultViewFactory.PolygonView(jpicedt.graphic.model.PicPolygon polygon)
          construct a new View for the given polygon
 
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 jpicedt.graphic.view.DefaultViewFactory.LeafElementView
changedUpdate, getViewFactory, hitTest, syncBounds
 
Methods inherited from class jpicedt.graphic.view.AbstractView
getBounds, getContainer, getDrawing, getElement, getGraphics, getParentView, paintHighlighter, repaint, setElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DefaultViewFactory.PolygonView

public DefaultViewFactory.PolygonView(jpicedt.graphic.model.PicPolygon polygon)
construct a new View for the given polygon

Method Detail

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