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

Quick Search    Search Deep

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

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

public class DefaultViewFactory.EllipseView
extends DefaultViewFactory.LeafElementView

a View to render PicEllipse


Field Summary
protected  jpicedt.graphic.model.Arrow arrowEnd
           
protected  jpicedt.graphic.PicPoint arrowEndDir
           
protected  jpicedt.graphic.model.Arrow arrowStart
           
protected  jpicedt.graphic.PicPoint arrowStartDir
           
protected  java.awt.Stroke arrowStroke
           
protected  jpicedt.graphic.PicPoint ptAngleEnd
           
protected  jpicedt.graphic.PicPoint ptAngleStart
           
 
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.EllipseView(jpicedt.graphic.model.PicEllipse ellipse)
          construct a new View for the given PicEllipse
 
Method Summary
 void paint(java.awt.Graphics2D g, java.awt.geom.Rectangle2D a)
          Render the View to the given graphic context.
 void paintHighlighter(java.awt.Graphics2D g, java.awt.geom.Rectangle2D allocation, double scale)
          Render the Highlighter to the given graphic context.
Current implementation paints end-points using the highlighter color if the given allocation intersects the bounds of this view, then paint the bounding box (this helps a lot if angle extent is small...)
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, getParentView, repaint, setElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

arrowStroke

protected java.awt.Stroke arrowStroke

arrowStart

protected jpicedt.graphic.model.Arrow arrowStart

arrowEnd

protected jpicedt.graphic.model.Arrow arrowEnd

arrowStartDir

protected jpicedt.graphic.PicPoint arrowStartDir

arrowEndDir

protected jpicedt.graphic.PicPoint arrowEndDir

ptAngleEnd

protected jpicedt.graphic.PicPoint ptAngleEnd

ptAngleStart

protected jpicedt.graphic.PicPoint ptAngleStart
Constructor Detail

DefaultViewFactory.EllipseView

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

Method Detail

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.

Specified by:
paint in interface View
Overrides:
paint in class DefaultViewFactory.LeafElementView
Since:
jPicEdt 1.3.2

paintHighlighter

public void paintHighlighter(java.awt.Graphics2D g,
                             java.awt.geom.Rectangle2D allocation,
                             double scale)
Render the Highlighter to the given graphic context.
Current implementation paints end-points using the highlighter color if the given allocation intersects the bounds of this view, then paint the bounding box (this helps a lot if angle extent is small...)

Specified by:
paintHighlighter in interface View
Overrides:
paintHighlighter in class AbstractView
Since:
jPicEdt 1.3.2