public class CubicCurve2dDouble extends CubicCurve2D.Double implements org.datanucleus.store.types.SCO
CubicCurve2D.Double, CubicCurve2D.Float| Modifier and Type | Field and Description |
|---|---|
protected String |
fieldName |
protected org.datanucleus.state.ObjectProvider |
ownerOP |
| Constructor and Description |
|---|
CubicCurve2dDouble(org.datanucleus.state.ObjectProvider ownerSM,
org.datanucleus.metadata.AbstractMemberMetaData mmd)
Assigns owning object and field name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attachCopy(Object value) |
Object |
clone()
Creates and returns a copy of this object.
|
Object |
detachCopy(org.datanucleus.state.FetchPlanState state) |
String |
getFieldName() |
Object |
getOwner() |
Object |
getValue() |
void |
initialise() |
void |
initialise(Object value,
boolean forInsert,
boolean forUpdate) |
void |
makeDirty()
Utility to mark the object as dirty
|
void |
setCurve(CubicCurve2D c) |
void |
setCurve(double[] coords,
int offset) |
void |
setCurve(double x1,
double y1,
double ctrlx1,
double ctrly1,
double ctrlx2,
double ctrly2,
double x2,
double y2) |
void |
setCurve(Point2D[] pts,
int offset) |
void |
setCurve(Point2D p1,
Point2D cp1,
Point2D cp2,
Point2D p2) |
void |
subdivide(CubicCurve2D left,
CubicCurve2D right) |
void |
unsetOwner() |
getBounds2D, getCtrlP1, getCtrlP2, getCtrlX1, getCtrlX2, getCtrlY1, getCtrlY2, getP1, getP2, getX1, getX2, getY1, getY2contains, contains, contains, contains, getBounds, getFlatness, getFlatness, getFlatness, getFlatnessSq, getFlatnessSq, getFlatnessSq, getPathIterator, getPathIterator, intersects, intersects, solveCubic, solveCubic, subdivide, subdivideprotected transient org.datanucleus.state.ObjectProvider ownerOP
protected transient String fieldName
public CubicCurve2dDouble(org.datanucleus.state.ObjectProvider ownerSM,
org.datanucleus.metadata.AbstractMemberMetaData mmd)
ownerSM - the owning objectmmd - Metadata for the memberpublic void initialise(Object value, boolean forInsert, boolean forUpdate) throws ClassCastException
initialise in interface org.datanucleus.store.types.SCOClassCastExceptionpublic void initialise()
initialise in interface org.datanucleus.store.types.SCOpublic Object getValue()
getValue in interface org.datanucleus.store.types.SCOpublic void unsetOwner()
unsetOwner in interface org.datanucleus.store.types.SCOpublic Object getOwner()
getOwner in interface org.datanucleus.store.types.SCOpublic String getFieldName()
getFieldName in interface org.datanucleus.store.types.SCOpublic void makeDirty()
public Object detachCopy(org.datanucleus.state.FetchPlanState state)
detachCopy in interface org.datanucleus.store.types.SCOpublic void attachCopy(Object value)
attachCopy in interface org.datanucleus.store.types.SCOpublic Object clone()
Mutable second-class Objects are required to provide a public clone method in order to allow for copying persistable objects. In contrast to Object.clone(), this method must not throw a CloneNotSupportedException.
clone in interface org.datanucleus.store.types.SCOclone in class CubicCurve2Dpublic void setCurve(double x1,
double y1,
double ctrlx1,
double ctrly1,
double ctrlx2,
double ctrly2,
double x2,
double y2)
setCurve in class CubicCurve2D.Doublepublic void setCurve(double[] coords,
int offset)
setCurve in class CubicCurve2Dpublic void setCurve(Point2D p1, Point2D cp1, Point2D cp2, Point2D p2)
setCurve in class CubicCurve2Dpublic void setCurve(Point2D[] pts, int offset)
setCurve in class CubicCurve2Dpublic void setCurve(CubicCurve2D c)
setCurve in class CubicCurve2Dpublic void subdivide(CubicCurve2D left, CubicCurve2D right)
subdivide in class CubicCurve2DCopyright © 2015. All rights reserved.