public class Node extends AbstractBox implements Element
Modifier and Type | Class and Description |
---|---|
static class |
Node.Type
The kinds of node.
|
height, width
x, y
Modifier and Type | Method and Description |
---|---|
void |
addConnectedSegment(java.lang.String reactionId,
Segment segment) |
void |
addConnectedSegment(java.lang.String reactionId,
java.lang.String segmentId) |
Node |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBiggId() |
java.lang.String |
getCompartment() |
java.util.Set<java.util.Map.Entry<java.lang.String,java.util.List<java.lang.String>>> |
getConnectedSegments() |
java.util.List<java.lang.String> |
getConnectedSegments(java.lang.String reactionId) |
java.lang.String |
getId() |
java.lang.Double |
getLabelX() |
java.lang.Double |
getLabelY() |
java.lang.String |
getName() |
Node.Type |
getType() |
java.lang.Double |
getX() |
java.lang.Double |
getY() |
int |
hashCode() |
boolean |
isMetabolite() |
boolean |
isMidmarker() |
boolean |
isMultimarker() |
java.lang.Boolean |
isPrimary() |
boolean |
isSetBiggId() |
boolean |
isSetCompartment() |
boolean |
isSetConnectedSegments() |
boolean |
isSetId() |
boolean |
isSetIsPrimary() |
boolean |
isSetLabelX() |
boolean |
isSetLabelY() |
boolean |
isSetName() |
boolean |
isSetPrimary() |
boolean |
isSetType() |
boolean |
isSetX() |
boolean |
isSetY() |
void |
setBiggId(java.lang.String biggId) |
void |
setConnectedSegments(java.util.Map<java.lang.String,java.util.List<java.lang.String>> connectedSegments) |
void |
setId(java.lang.String id) |
void |
setLabelX(java.lang.Double labelX) |
void |
setLabelY(java.lang.Double labelY) |
void |
setName(java.lang.String name) |
void |
setPrimary(java.lang.Boolean isPrimary) |
void |
setType(Node.Type nodeType) |
void |
setX(java.lang.Double x) |
void |
setY(java.lang.Double y) |
java.lang.String |
toString() |
getHeight, getWidth, isSetHeight, isSetWidth, setHeight, setWidth
getUserObject, putUserObject, userObjectEntrySet, userObjectKeys
finalize, getClass, notify, notifyAll, wait, wait, wait
getUserObject, putUserObject, userObjectEntrySet, userObjectKeys
public Node()
public Node(Node node)
node
- public void addConnectedSegment(java.lang.String reactionId, Segment segment)
reactionId
- segment
- public void addConnectedSegment(java.lang.String reactionId, java.lang.String segmentId)
reactionId
- segmentId
- public Node clone()
clone
in class AbstractEscherBase
public boolean equals(java.lang.Object obj)
equals
in class AbstractBox
public java.lang.String getBiggId()
public java.lang.String getCompartment()
public java.util.Set<java.util.Map.Entry<java.lang.String,java.util.List<java.lang.String>>> getConnectedSegments()
public java.util.List<java.lang.String> getConnectedSegments(java.lang.String reactionId)
public java.lang.Double getLabelX()
public java.lang.Double getLabelY()
public java.lang.String getName()
public Node.Type getType()
public java.lang.Double getX()
getX
in interface Position
getX
in class AbstractPosition
public java.lang.Double getY()
getY
in interface Position
getY
in class AbstractPosition
public int hashCode()
hashCode
in class AbstractBox
public boolean isMetabolite()
public boolean isMidmarker()
public boolean isMultimarker()
public java.lang.Boolean isPrimary()
public boolean isSetBiggId()
public boolean isSetCompartment()
public boolean isSetConnectedSegments()
true
if the requested property is not null
.public boolean isSetId()
public boolean isSetIsPrimary()
true
if the requested property is not null
.public boolean isSetLabelX()
true
if the requested property is not null
.public boolean isSetLabelY()
true
if the requested property is not null
.public boolean isSetName()
true
if the requested property is not null
.public boolean isSetPrimary()
public boolean isSetType()
true
if the requested property is not null
.public boolean isSetX()
isSetX
in interface Position
isSetX
in class AbstractPosition
true
if the requested property is not null
.public boolean isSetY()
isSetY
in interface Position
isSetY
in class AbstractPosition
true
if the requested property is not null
.public void setBiggId(java.lang.String biggId)
biggId
- the biggId to set. Parameter is allowed to be null
.
If the parameter is not null
, this method will attempt to
extract the compartment code from the given BiGG id.public void setConnectedSegments(java.util.Map<java.lang.String,java.util.List<java.lang.String>> connectedSegments)
connectedSegments
- the connected segments to setpublic void setId(java.lang.String id)
public void setLabelX(java.lang.Double labelX)
labelX
- the labelX to setpublic void setLabelY(java.lang.Double labelY)
labelY
- the labelY to setpublic void setName(java.lang.String name)
name
- the name to setpublic void setPrimary(java.lang.Boolean isPrimary)
isPrimary
- the node_is_primary to setpublic void setType(Node.Type nodeType)
nodeType
- the nodeType to setpublic void setX(java.lang.Double x)
setX
in interface Position
setX
in class AbstractPosition
x
- the x to setpublic void setY(java.lang.Double y)
setY
in interface Position
setY
in class AbstractPosition
y
- the y to setpublic java.lang.String toString()
toString
in class AbstractBox