|
|||||||||
Home >> All >> jpicedt >> graphic >> [ view overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
jpicedt.graphic.view
Class DefaultViewFactory.QuadBezierView

java.lang.Objectjpicedt.graphic.view.AbstractView
jpicedt.graphic.view.DefaultViewFactory.LeafElementView
jpicedt.graphic.view.DefaultViewFactory.QuadBezierView
- All Implemented Interfaces:
- View
- Enclosing class:
- DefaultViewFactory
- public class DefaultViewFactory.QuadBezierView
- extends DefaultViewFactory.LeafElementView
A view for rendering quad 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.QuadBezierView(jpicedt.graphic.model.PicBezierQuad bezier)
construct a new View for the given PicBezierQuad |
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.QuadBezierView
public DefaultViewFactory.QuadBezierView(jpicedt.graphic.model.PicBezierQuad bezier)
- construct a new View for the given PicBezierQuad
Method Detail |
syncShape
protected void syncShape()
- Synchronize the "shape" variable with the model
- Overrides:
syncShape
in classDefaultViewFactory.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 interfaceView
- Overrides:
paint
in classDefaultViewFactory.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 interfaceView
- Overrides:
paintHighlighter
in classAbstractView
- Since:
- jPicEdt 1.3.2
|
|||||||||
Home >> All >> jpicedt >> graphic >> [ view overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |