public class Point extends AbstractNamedSBase implements UniqueNamedSBase
A Point is specified via the required attributes 'x', 'y' and an optional
attribute 'z', all of which are of type double. If the attribute z is not
specified, the object is a two dimensional object. The Point class also has
an optional attribute id of type SId. While not used in the Layout package,
it can be used by programs to refer to the elements.
ignoredExtensions, ignoredXMLElements, JSBML_WRONG_SBO_TERM, packageNamelistOfListeners, parent, resourceBundle| Constructor and Description |
|---|
Point()
Creates a new
Point instance with all coordinates set to Double.NaN. |
Point(double x,
double y)
Creates a new
Point instance with the given x and y coordinates. |
Point(double x,
double y,
double z)
Creates a new
Point instance with the given coordinates. |
Point(double x,
double y,
double z,
int level,
int version)
Creates a new
Point instance with the given coordinates and level and version. |
Point(int level,
int version)
Creates a new
Point instance with the given level and version, all coordinates are set to Double.NaN. |
Point(Point point)
|
| Modifier and Type | Method and Description |
|---|---|
Point |
clone() |
protected void |
clonePointAttributes(Point point,
Point cloned)
Clones the x, y and z coordinates from point to cloned.
|
boolean |
equals(Object object) |
String |
getElementName() |
double |
getX()
Gets the x coordinate.
|
double |
getY()
Gets the y coordinate.
|
double |
getZ()
Gets the z coordinate.
|
int |
hashCode() |
void |
initDefaults()
Initializes the default values using the namespace.
|
boolean |
isIdMandatory() |
boolean |
isSetX()
Returns
true if the x coordinate is set. |
boolean |
isSetY()
Returns
true if the y coordinate is set. |
boolean |
isSetZ()
Returns
true if the z coordinate is set. |
boolean |
readAttribute(String attributeName,
String prefix,
String value) |
void |
setX(double x)
Sets the x coordinate.
|
void |
setY(double y)
Sets the y coordinate.
|
void |
setZ(double z)
Sets the z coordinate.
|
Map<String,String> |
writeXMLAttributes() |
double |
x()
Gets the x coordinate.
|
double |
y()
Gets the y coordinate.
|
double |
z()
Gets the z coordinate.
|
isValidIdaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, checkAndSetPackageNamespaceAndVersion, checkAndSetPackageNamespaceAndVersion, checkAttribute, checkLevelAndVersionCompatibility, createHistory, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, fireNodeRemovedEvent, firePropertyChange, getAllowsChildren, getAnnotation, getAnnotationString, getChildAt, getChildCount, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getExtension, getExtensionCount, getExtensionPackages, getHistory, getId, getIdManager, getLevel, getLevelAndVersion, getMetaId, getModel, getName, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParent, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetId, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetName, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, isValidLevelAndVersionCombination, isValidMetaId, notifyChildChange, registerChild, removeCVTerm, removeCVTerm, setAnnotation, setAnnotation, setAnnotation, setHistory, setId, setLevel, setMetaId, setName, setNamespace, setNotes, setNotes, setPackageVersion, setParentSBML, setParentSBMLObject, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetId, unsetMetaId, unsetName, unsetNamespace, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, children, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, getIndex, getListOfTreeNodeChangeListeners, getNumChildren, getRoot, getTreeNodeChangeListenerCount, getUserObject, indexOf, isLeaf, isReadingInProgress, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeTreeNodeChangeListener, removeUserObject, setParent, toString, userObjectKeySetfinalize, getClass, notify, notifyAll, wait, wait, waitgetId, getName, isSetId, isSetName, setId, setName, unsetId, unsetNameaddCVTerm, addDeclaredNamespace, addExtension, addPlugin, appendAnnotation, appendAnnotation, appendNotes, appendNotes, createPlugin, disablePackage, enablePackage, enablePackage, filterCVTerms, filterCVTerms, filterCVTerms, filterCVTerms, getAnnotation, getAnnotationString, getCVTerm, getCVTermCount, getCVTerms, getDeclaredNamespaces, getElementByMetaId, getElementBySId, getExtension, getExtensionCount, getExtensionPackages, getHistory, getLevel, getLevelAndVersion, getMetaId, getModel, getNamespace, getNotes, getNotesString, getNumCVTerms, getNumPlugins, getPackageName, getPackageVersion, getParentSBMLObject, getPlugin, getSBMLDocument, getSBOTerm, getSBOTermID, getURI, getVersion, hasValidAnnotation, hasValidLevelVersionNamespaceCombination, isExtendedByOtherPackages, isPackageEnabled, isPackageURIEnabled, isPkgEnabled, isPkgURIEnabled, isSetAnnotation, isSetHistory, isSetLevel, isSetLevelAndVersion, isSetMetaId, isSetNotes, isSetPackageVErsion, isSetParentSBMLObject, isSetPlugin, isSetSBOTerm, isSetVersion, registerChild, removeCVTerm, removeCVTerm, removeTreeNodeChangeListener, setAnnotation, setAnnotation, setAnnotation, setHistory, setLevel, setMetaId, setNotes, setNotes, setPackageVersion, setSBOTerm, setSBOTerm, setThisAsParentSBMLObject, setVersion, unregisterChild, unsetAnnotation, unsetCVTerms, unsetExtension, unsetHistory, unsetMetaId, unsetNotes, unsetPlugin, unsetSBOTermaddAllChangeListeners, addAllChangeListeners, addTreeNodeChangeListener, addTreeNodeChangeListener, clearUserObjects, containsUserObjectKey, filter, filter, filter, fireNodeAddedEvent, fireNodeRemovedEvent, firePropertyChange, getListOfTreeNodeChangeListeners, getRoot, getTreeNodeChangeListenerCount, getUserObject, isRoot, isSetParent, isSetUserObjects, putUserObject, removeAllTreeNodeChangeListeners, removeAllTreeNodeChangeListeners, removeFromParent, removeTreeNodeChangeListener, removeUserObject, userObjectKeySetchildren, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeafpublic Point()
Point instance with all coordinates set to Double.NaN.public Point(double x,
double y)
Point instance with the given x and y coordinates. z is set to Double.NaN.x - the x coordinatey - the y coordinatepublic Point(double x,
double y,
double z)
Point instance with the given coordinates.x - the x coordinatey - the y coordinatez - the z coordinatepublic Point(double x,
double y,
double z,
int level,
int version)
Point instance with the given coordinates and level and version.x - the x coordinatey - the y coordinatez - the z coordinatelevel - the SBML levelversion - the SBML versionpublic Point(int level,
int version)
Point instance with the given level and version, all coordinates are set to Double.NaN.level - the SBML levelversion - the SBML versionpublic Point clone()
clone in interface SBaseclone in class AbstractSBaseprotected void clonePointAttributes(Point point, Point cloned)
point - cloned - public void initDefaults()
public boolean equals(Object object)
equals in interface SBaseequals in class AbstractSBasepublic String getElementName()
getElementName in interface SBasegetElementName in class AbstractSBasepublic double getX()
Returns Double.NaN if isSetX()
return false.
public double getY()
Returns Double.NaN if isSetY()
return false.
public double getZ()
Returns Double.NaN if isSetZ()
return false.
public int hashCode()
hashCode in interface SBasehashCode in class AbstractSBasepublic boolean isIdMandatory()
isIdMandatory in interface NamedSBaseisIdMandatory in interface SBaseisIdMandatory in class AbstractSBasepublic boolean isSetX()
true if the x coordinate is set.true if the x coordinate is set.public boolean isSetY()
true if the y coordinate is set.true if the y coordinate is set.public boolean isSetZ()
true if the z coordinate is set.true if the z coordinate is set.public boolean readAttribute(String attributeName, String prefix, String value)
readAttribute in interface SBasereadAttribute in class AbstractSBasepublic void setX(double x)
The general Point class specifies the x, y, and z (optional) attributes
which defines the graphical location with respect to the coordinate system
of the Layout extension. The x attribute is required.
x - the x coordinate to be set.public void setY(double y)
The y attribute is required. For a more general description of the dimension
attributes, see setX(double).
y - the y coordinate to be set.public void setZ(double z)
The z attribute is optional. The layout is 2-dimensional if the z attribute is not specified.
z - the z coordinate to be set.public Map<String,String> writeXMLAttributes()
writeXMLAttributes in interface SBasewriteXMLAttributes in class AbstractSBasepublic double x()
getX()public double y()
getY()public double z()
getZ()Copyright © 2009–2016. All rights reserved.