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

Quick Search    Search Deep

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

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

public class DefaultViewFactory.CubicBezierView
extends DefaultViewFactory.LeafElementView

A view for rendering cubic splines


Field Summary
private  jpicedt.graphic.model.Arrow arrow1
           
private  jpicedt.graphic.PicPoint arrow1Dir
           
private  jpicedt.graphic.model.Arrow arrow2
           
private  jpicedt.graphic.PicPoint arrow2Dir
           
private  java.awt.Stroke arrowStroke
           
private  jpicedt.graphic.PicPoint ptArrow1
           
private  jpicedt.graphic.PicPoint ptArrow2
           
private  java.awt.geom.Line2D tangent1
           
private  java.awt.geom.Line2D tangent2
           
 
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.CubicBezierView(jpicedt.graphic.model.PicBezierCubic bezier)
          construct a new View for the given PicBezierCubic
 
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.
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

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

ptArrow1

private jpicedt.graphic.PicPoint ptArrow1

ptArrow2

private jpicedt.graphic.PicPoint ptArrow2

tangent1

private java.awt.geom.Line2D tangent1

tangent2

private java.awt.geom.Line2D tangent2
Constructor Detail

DefaultViewFactory.CubicBezierView

public DefaultViewFactory.CubicBezierView(jpicedt.graphic.model.PicBezierCubic bezier)
construct a new View for the given PicBezierCubic

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.

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