@DOMObjectAttribute @DOMNameAttribute(name="SVGRect") public class SVGRect extends SVGValueType
Represents rectangular geometry. Rectangles are defined as consisting of a (x,y) coordinate pair identifying a minimum X value, a minimum Y value, and a width and height, which are usually constrained to be non-negative.
flags
PropertyChanged, PropertyChangedDelegate
Constructor and Description |
---|
SVGRect() |
SVGRect(float x,
float y,
float width,
float height) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
deepClone()
Creates a new object that is a copy of the current instance.
|
float |
getHeight()
The Height coordinate of the rectangle, in user units.
|
float |
getWidth()
The Width coordinate of the rectangle, in user units.
|
float |
getX()
The X coordinate of the rectangle, in user units.
|
float |
getY()
The Y coordinate of the rectangle, in user units.
|
void |
setHeight(float value)
The Height coordinate of the rectangle, in user units.
|
void |
setWidth(float value)
The Width coordinate of the rectangle, in user units.
|
void |
setX(float value)
The X coordinate of the rectangle, in user units.
|
void |
setY(float value)
The Y coordinate of the rectangle, in user units.
|
asReadOnly, dispose, dispose, getKey, isDetached, isObserverSuppressed, isReadOnly, notifyPropertyChanged, setDetached, setObserverSuppressed, toString
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public SVGRect()
public SVGRect(float x, float y, float width, float height)
@DOMNameAttribute(name="x") public float getX()
The X coordinate of the rectangle, in user units.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
Raised when the rectangle corresponds to a read only attribute or when the object itself is read only.
Value:
The X coordinate of the rectangle, in user units.@DOMNameAttribute(name="x") public void setX(float value)
The X coordinate of the rectangle, in user units.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
Raised when the rectangle corresponds to a read only attribute or when the object itself is read only.
Value:
The X coordinate of the rectangle, in user units.@DOMNameAttribute(name="y") public float getY()
The Y coordinate of the rectangle, in user units.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
Raised when the rectangle corresponds to a read only attribute or when the object itself is read only.
Value:
The Y coordinate of the rectangle, in user units.@DOMNameAttribute(name="y") public void setY(float value)
The Y coordinate of the rectangle, in user units.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
Raised when the rectangle corresponds to a read only attribute or when the object itself is read only.
Value:
The Y coordinate of the rectangle, in user units.@DOMNameAttribute(name="width") public float getWidth()
The Width coordinate of the rectangle, in user units.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
Raised when the rectangle corresponds to a read only attribute or when the object itself is read only.
Value:
The Width coordinate of the rectangle, in user units.@DOMNameAttribute(name="width") public void setWidth(float value)
The Width coordinate of the rectangle, in user units.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
Raised when the rectangle corresponds to a read only attribute or when the object itself is read only.
Value:
The Width coordinate of the rectangle, in user units.@DOMNameAttribute(name="height") public float getHeight()
The Height coordinate of the rectangle, in user units.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
Raised when the rectangle corresponds to a read only attribute or when the object itself is read only.
Value:
The Height coordinate of the rectangle, in user units.@DOMNameAttribute(name="height") public void setHeight(float value)
The Height coordinate of the rectangle, in user units.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
Raised when the rectangle corresponds to a read only attribute or when the object itself is read only.
Value:
The Height coordinate of the rectangle, in user units.public java.lang.Object deepClone()
Creates a new object that is a copy of the current instance.
deepClone
in class SVGValueType