public class ShapeFormulaParam
extends java.lang.Object
Constructor and Description |
---|
ShapeFormulaParam()
Initializes a new instance of the ShapeFormulaParam class.
|
ShapeFormulaParam(float x,
float y)
Initializes a new instance of the ShapeFormulaParam class.
|
Modifier and Type | Method and Description |
---|---|
ShapeFormulaParam |
clone()
Creates a copy of this ShapeFormulaParam.
|
float |
getX()
Gets the horizontal position of the control point.
|
float |
getY()
Gets the vertical position of the control point.
|
void |
loadFromXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
Loads the formula parameter from the specified XML element.
|
void |
saveToXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
Saves the formula parameter into the specified XML element.
|
void |
setX(float value)
Sets the horizontal position of the control point.
|
void |
setY(float value)
Sets the vertical position of the control point.
|
public ShapeFormulaParam()
public ShapeFormulaParam(float x, float y)
x
- Horizontal position of the control point.y
- Vertical position of the control point.public float getX()
public void setX(float value)
value
- A float value specifying X coordinate.public float getY()
public void setY(float value)
value
- A float value specifying Y coordinate.public ShapeFormulaParam clone()
clone
in class java.lang.Object
public void saveToXml(org.w3c.dom.Element xmlElement, XmlPersistContext context)
xmlElement
- An Element instance.context
- An XmlPersistContext instance.public void loadFromXml(org.w3c.dom.Element xmlElement, XmlPersistContext context)
xmlElement
- An XmlElement instance.context
- An XmlPersistContext instance.