public class Rectangle extends Rectangle implements org.datanucleus.store.types.SCO
Rectangle2D.Double, Rectangle2D.Float| Modifier and Type | Field and Description |
|---|---|
protected String |
fieldName |
protected org.datanucleus.state.ObjectProvider |
ownerOP |
OUT_BOTTOM, OUT_LEFT, OUT_RIGHT, OUT_TOP| Constructor and Description |
|---|
Rectangle(org.datanucleus.state.ObjectProvider ownerSM,
org.datanucleus.metadata.AbstractMemberMetaData mmd)
Creates a Point object.
|
| 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 |
setLocation(int x,
int y) |
void |
setLocation(Point p) |
void |
setRect(double x,
double y,
double width,
double height) |
void |
setSize(Dimension d) |
void |
setSize(int width,
int height) |
void |
unsetOwner() |
add, add, add, contains, contains, contains, contains, createIntersection, createUnion, equals, getBounds, getBounds2D, getHeight, getLocation, getSize, getWidth, getX, getY, grow, inside, intersection, intersects, isEmpty, move, outcode, reshape, resize, setBounds, setBounds, toString, translate, unionadd, add, add, contains, contains, getPathIterator, getPathIterator, hashCode, intersect, intersects, intersectsLine, intersectsLine, outcode, setFrame, setRect, unioncontains, contains, getCenterX, getCenterY, getFrame, getMaxX, getMaxY, getMinX, getMinY, intersects, setFrame, setFrame, setFrameFromCenter, setFrameFromCenter, setFrameFromDiagonal, setFrameFromDiagonalfinalize, getClass, notify, notifyAll, wait, wait, waitcontains, contains, contains, contains, getPathIterator, getPathIterator, intersects, intersectsprotected transient org.datanucleus.state.ObjectProvider ownerOP
protected transient String fieldName
public Rectangle(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 RectangularShapepublic void setRect(double x,
double y,
double width,
double height)
public void setLocation(Point p)
setLocation in class Rectanglepublic void setLocation(int x,
int y)
setLocation in class RectangleCopyright © 2015. All rights reserved.