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
Method Summary |
void |
paint(java.awt.Graphics2D g,
java.awt.geom.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.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 |
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
DefaultViewFactory.EllipseView
public DefaultViewFactory.EllipseView(PicEllipse ellipse)
- construct a new View for the given ellipse
syncShape
protected void syncShape()
- Synchronize the "shape" variable with the model
- Overrides:
syncShape
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.
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
Submit a bug : syd@jpicedt.org