Package jpicedt.graphic.view
Class DefaultViewFactory.EllipseView
- java.lang.Object
-
- jpicedt.graphic.view.AbstractView
-
- jpicedt.graphic.view.DefaultViewFactory.LeafElementView
-
- 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
Fields Modifier and Type Field Description protected ArrowarrowEndprotected PicPointarrowEndDirprotected ArrowarrowStartprotected PicPointarrowStartDirprotected java.awt.StrokearrowStrokeprotected PicPointptAngleEndprotected PicPointptAngleStart-
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
Constructors Constructor Description EllipseView(PicEllipse ellipse)construct a new View for the given ellipse
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpaint(java.awt.Graphics2D g, java.awt.geom.Rectangle2D a)Render the View to the given graphic context.protected voidsyncShape()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
-
-
-
-
Field Detail
-
arrowStroke
protected java.awt.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
-
EllipseView
public 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:
syncShapein classDefaultViewFactory.LeafElementView
-
paint
public void paint(java.awt.Graphics2D g, java.awt.geom.Rectangle2D a)Render the View to the given graphic context. This implementation render the interior first, then the outline.- Specified by:
paintin interfaceView- Overrides:
paintin classDefaultViewFactory.LeafElementViewa- the current graphic clip
-
-