http://www.jpicedt.org

jpicedt.graphic.view
Class DefaultViewFactory.EllipseView

java.lang.Object
  extended by jpicedt.graphic.view.AbstractView
      extended by jpicedt.graphic.view.DefaultViewFactory.LeafElementView
          extended by jpicedt.graphic.view.DefaultViewFactory.EllipseView
All Implemented Interfaces:
View, ViewConstants
Direct Known Subclasses:
EepicViewFactory.EllipseView, LatexViewFactory.EllipseView
Enclosing class:
DefaultViewFactory

public class DefaultViewFactory.EllipseView
extends DefaultViewFactory.LeafElementView

a View for rendering ellipses defined by a parallelogram


Field Summary
protected  Arrow arrowEnd
           
protected  PicPoint arrowEndDir
           
protected  Arrow arrowStart
           
protected  PicPoint arrowStartDir
           
protected  Stroke arrowStroke
           
protected  PicPoint ptAngleEnd
           
protected  PicPoint ptAngleStart
           
 
Fields inherited from class jpicedt.graphic.view.DefaultViewFactory.LeafElementView
interiorPaint, lineWidth, outlinePaint, outlineStroke, overStrikeWidth, shadowBounds, shape
 
Fields inherited from class jpicedt.graphic.view.AbstractView
bounds, element, highlighter
 
Fields inherited from interface jpicedt.graphic.view.ViewConstants
BARBELL_SIZE, CLICK_DISTANCE
 
Constructor Summary
DefaultViewFactory.EllipseView(PicEllipse ellipse)
          construct a new View for the given ellipse
 
Method Summary
 void paint(Graphics2D g, Rectangle2D a)
          Render the View to the given graphic context.
protected  void syncShape()
          Synchronize the "shape" variable with the model
 
Methods inherited from class jpicedt.graphic.view.DefaultViewFactory.LeafElementView
changedUpdate, getViewFactory, hitTest, syncAttributes, syncBounds
 
Methods inherited from class jpicedt.graphic.view.AbstractView
getBounds, getContainer, getDrawing, getElement, getGraphics, getHighlighter, getParentView, hitTest, paintHighlighter, repaint, setElement, setHighlighter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

arrowStroke

protected Stroke arrowStroke

arrowStart

protected Arrow arrowStart

arrowEnd

protected Arrow arrowEnd

arrowStartDir

protected PicPoint arrowStartDir

arrowEndDir

protected PicPoint arrowEndDir

ptAngleEnd

protected PicPoint ptAngleEnd

ptAngleStart

protected PicPoint ptAngleStart
Constructor Detail

DefaultViewFactory.EllipseView

public DefaultViewFactory.EllipseView(PicEllipse ellipse)
construct a new View for the given ellipse

Method Detail

syncShape

protected void syncShape()
Synchronize the "shape" variable with the model

Overrides:
syncShape in class DefaultViewFactory.LeafElementView

paint

public void paint(Graphics2D g,
                  Rectangle2D a)
Render the View to the given graphic context. This implementation render the interior first, then the outline.

Specified by:
paint in interface View
Overrides:
paint in class DefaultViewFactory.LeafElementView
a - the current graphic clip

http://www.jpicedt.org

Submit a bug : syd@jpicedt.org