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

Quick Search    Search Deep

jpicedt.graphic.model
Class PicBezierQuad  view PicBezierQuad download PicBezierQuad.java

java.lang.Object
  extended byjpicedt.graphic.model.AbstractElement
      extended byjpicedt.graphic.model.PicBezierQuad
All Implemented Interfaces:
jpicedt.graphic.toolkit.CustomizerFactory, Element, PicObjectConstants

public class PicBezierQuad
extends AbstractElement
implements jpicedt.graphic.toolkit.CustomizerFactory

A quadratic non-rational Bezier curve (= spline), defined by its two end points and a control point

Since:
picedt 1.1
Version:
>=JDK1.1.x

Nested Class Summary
(package private)  class PicBezierQuad.Customizer
          geometry customizer
 
Nested classes inherited from class jpicedt.graphic.model.AbstractElement
AbstractElement.DefaultPointIterator
 
Nested classes inherited from class jpicedt.graphic.model.Element
Element.PointIterator
 
Field Summary
static int FIRST_PT
           
static int LAST_PT
           
static int P_1
           
static int P_2
           
static int P_CTRL
           
 
Fields inherited from class jpicedt.graphic.model.AbstractElement
attributeSet, parent, ptsX, ptsY, view
 
Fields inherited from interface jpicedt.graphic.model.PicObjectConstants
CROSSHATCH, CROSSHATCH_FILLED, DASH_OPAQUE, DASH_TRANSPARENT, DASH1, DASH2, DASH3, DASHED, DIMEN, DOT_SEP, DOT_SEP1, DOT_SEP2, DOT_SEP3, DOTTED, DOUBLE_COLOR, DOUBLE_LINE, DOUBLE_SEP, FILL_COLOR, FILL_STYLE, HATCH_ANGLE, HATCH_COLOR, HATCH_SEP, HATCH_WIDTH, HLINES, HLINES_FILLED, INNER, LEFT_ARROW, LINE_COLOR, LINE_STYLE, LINE_WIDTH, MaxAttributeNameIndex, MIDDLE, NONE, OUTER, POLYGON_DOTS, POLYGON_SOLID, POLYGON_STYLE, PS_POINT, RIGHT_ARROW, SHADOW, SHADOW_ANGLE, SHADOW_COLOR, SHADOW_SIZE, SOLID, VLINES, VLINES_FILLED
 
Constructor Summary
PicBezierQuad()
          Create a new quad curve reduced to (0,0)
PicBezierQuad(PicAttributeSet set)
          Create a new quad curve reduced to (0,0), with the given attribute set
PicBezierQuad(PicBezierQuad curve)
          "cloning" constructor (to be used by clone())
PicBezierQuad(jpicedt.graphic.PicPoint pt1, jpicedt.graphic.PicPoint ptCtrl, jpicedt.graphic.PicPoint pt2, PicAttributeSet set)
          Create a new quad curve using the three given points
 
Method Summary
 java.lang.Object clone()
          Overrides Object.clone() method
 PicBezierCubic convertToBezierCubic()
          converts this quad curve to a cubic curve that has the same shape
 jpicedt.graphic.toolkit.AbstractCustomizer createCustomizer()
           
 java.lang.String getName()
          Returns a non-localised string representing this object's name This default implementation returns the class name.
 
Methods inherited from class jpicedt.graphic.model.AbstractElement
anchorPointsIterator, fireChangedUpdate, getAttribute, getAttributeSet, getBoundingBox, getDrawing, getFirstPointIndex, getLastPointIndex, getParent, getPoint, getPointX, getPointY, getView, removeView, scale, scale, setAttribute, setAttributeSet, setParent, setPoint, setViewFromFactory, toString, translate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FIRST_PT

public static final int FIRST_PT
See Also:
Constant Field Values

P_1

public static final int P_1
See Also:
Constant Field Values

P_2

public static final int P_2
See Also:
Constant Field Values

P_CTRL

public static final int P_CTRL
See Also:
Constant Field Values

LAST_PT

public static final int LAST_PT
See Also:
Constant Field Values
Constructor Detail

PicBezierQuad

public PicBezierQuad()
Create a new quad curve reduced to (0,0)


PicBezierQuad

public PicBezierQuad(PicAttributeSet set)
Create a new quad curve reduced to (0,0), with the given attribute set


PicBezierQuad

public PicBezierQuad(jpicedt.graphic.PicPoint pt1,
                     jpicedt.graphic.PicPoint ptCtrl,
                     jpicedt.graphic.PicPoint pt2,
                     PicAttributeSet set)
Create a new quad curve using the three given points

Since:
PicEdt 1.1

PicBezierQuad

public PicBezierQuad(PicBezierQuad curve)
"cloning" constructor (to be used by clone())

Since:
PicEdt 1.1
Method Detail

clone

public java.lang.Object clone()
Overrides Object.clone() method

Specified by:
clone in interface Element
Specified by:
clone in class AbstractElement
Since:
PicEdt 1.1

getName

public java.lang.String getName()
Description copied from class: AbstractElement
Returns a non-localised string representing this object's name This default implementation returns the class name.

Specified by:
getName in interface Element
Overrides:
getName in class AbstractElement

convertToBezierCubic

public PicBezierCubic convertToBezierCubic()
converts this quad curve to a cubic curve that has the same shape


createCustomizer

public jpicedt.graphic.toolkit.AbstractCustomizer createCustomizer()
Specified by:
createCustomizer in interface jpicedt.graphic.toolkit.CustomizerFactory