@DOMObjectAttribute @DOMNameAttribute(name="SVGPoint") public class SVGPoint extends SVGValueType
Many of the SVG DOM interfaces refer to objects of class SVGPoint. An SVGPoint is an (x, y) coordinate pair. When used in matrix operations, an SVGPoint is treated as a vector of the form: [x] [y] [1] If an SVGRect object is designated as read only, then attempting to assign to one of its attributes will result in an exception being thrown.
flags
PropertyChanged
Constructor and Description |
---|
SVGPoint()
Initializes a new instance of the
SVGPoint class. |
SVGPoint(float x,
float y)
Initializes a new instance of the
SVGPoint class. |
Modifier and Type | Method and Description |
---|---|
Object |
deepClone()
Creates a new object that is a copy of the current instance.
|
float |
getX()
The X coordinate.
|
float |
getY()
The Y coordinate.
|
SVGPoint |
matrixTransform(SVGMatrix matrix)
Applies a 2x3 matrix transformation on this SVGPoint object and returns a new, transformed SVGPoint object:
newpoint = matrix* thispoint
|
void |
setX(float value)
The X coordinate.
|
void |
setY(float value)
The Y coordinate.
|
asReadOnly, dispose, getKey, isDetached, isObserverSuppressed, isReadOnly, notifyPropertyChanged, setDetached, setObserverSuppressed, toString
fireNotifyPropertyChanged, getCurrentValues, getRuntimesBinding, setCurrentValues, setField, setRuntimesBinding
public SVGPoint()
Initializes a new instance of the SVGPoint
class.
public SVGPoint(float x, float y)
Initializes a new instance of the SVGPoint
class.
x
- The x.y
- The y.@DOMNameAttribute(name="x") public float getX()
The X coordinate.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised if the SVGPoint object is read only, or corresponds to a DOM attribute that is read only.
Value:
The X coordinate.@DOMNameAttribute(name="x") public void setX(float value)
The X coordinate.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised if the SVGPoint object is read only, or corresponds to a DOM attribute that is read only.
Value:
The X coordinate.@DOMNameAttribute(name="y") public float getY()
The Y coordinate.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised if the SVGPoint object is read only, or corresponds to a DOM attribute that is read only.
Value:
The Y coordinate.@DOMNameAttribute(name="y") public void setY(float value)
The Y coordinate.
DOMException
- Code DOMException.NO_MODIFICATION_ALLOWED_ERR
.
Raised if the SVGPoint object is read only, or corresponds to a DOM attribute that is read only.
Value:
The Y coordinate.@DOMNameAttribute(name="matrixTransform") public SVGPoint matrixTransform(SVGMatrix matrix)
Applies a 2x3 matrix transformation on this SVGPoint object and returns a new, transformed SVGPoint object: newpoint = matrix* thispoint
matrix
- he matrix which is to be applied to this SVGPoint object.public Object deepClone()
Creates a new object that is a copy of the current instance.
deepClone
in class SVGValueType