java.lang.Object
jpicedt.graphic.model.AbstractElement
jpicedt.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
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 |
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 |
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
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
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