public class Point2DProperty extends AbstractProperty
Constructor and Description |
---|
Point2DProperty(java.lang.Enum<?> urn)
Construct a Point2DProperty with no defined value.
|
Point2DProperty(java.lang.Enum<?> urn,
Point2D value)
Construct a Point2DProperty with a defined value.
|
Point2DProperty(Point2DProperty other)
Point2DProperty copy constructor.
|
Point2DProperty(java.lang.String urn)
Construct a Point2DProperty with no defined value.
|
Point2DProperty(java.lang.String urn,
Point2D value)
Construct a Point2DProperty with a defined value.
|
Modifier and Type | Method and Description |
---|---|
Point2DProperty |
copy()
Create a copy of this property.
|
Point2D |
getValue()
Get the value of this property.
|
void |
read(java.io.InputStream in)
Read this property from a stream.
|
void |
setValue(Point2D value)
Set the value of this property.
|
void |
takeValue(Property p)
Take on the value of another property.
|
void |
write(java.io.OutputStream out)
Write this property to a stream.
|
fireChange, getURN, isDefined, setDefined, setEntity, toString, undefine
public Point2DProperty(java.lang.String urn)
urn
- The urn of this property.public Point2DProperty(java.lang.Enum<?> urn)
urn
- The urn of this property.public Point2DProperty(java.lang.String urn, Point2D value)
urn
- The urn of this property.value
- The initial value of the property.public Point2DProperty(java.lang.Enum<?> urn, Point2D value)
urn
- The urn of this property.value
- The initial value of the property.public Point2DProperty(Point2DProperty other)
other
- The Point2DProperty to copy.public Point2D getValue()
Property
public void setValue(Point2D value)
AbstractProperty.isDefined()
will return true.value
- The new value.public void takeValue(Property p)
Property
p
- The other property to inspect.public void write(java.io.OutputStream out) throws java.io.IOException
Property
out
- The stream to write to.java.io.IOException
- If the write fails.public void read(java.io.InputStream in) throws java.io.IOException
Property
in
- The stream to read from.java.io.IOException
- If the read fails.public Point2DProperty copy()
Property