Package org.pathvisio.libgpml.model
Class Interaction
java.lang.Object
org.pathvisio.libgpml.model.PathwayObject
org.pathvisio.libgpml.model.PathwayElement
org.pathvisio.libgpml.model.LineElement
org.pathvisio.libgpml.model.Interaction
- All Implemented Interfaces:
java.lang.Cloneable
,ConnectorRestrictions
,Drawable
,Groupable
,Referenceable
,Referenceable.Annotatable
,Referenceable.Citable
,Referenceable.Evidenceable
,Xrefable
public class Interaction extends LineElement implements Xrefable
This class stores information for an Interaction pathway element.
- Author:
- finterly
-
Nested Class Summary
Nested classes/interfaces inherited from class org.pathvisio.libgpml.model.LineElement
LineElement.Anchor, LineElement.GenericPoint, LineElement.LinePoint
Nested classes/interfaces inherited from class org.pathvisio.libgpml.model.PathwayElement
PathwayElement.AnnotationRef, PathwayElement.CitationRef, PathwayElement.Comment, PathwayElement.EvidenceRef, PathwayElement.InfoRef
Nested classes/interfaces inherited from interface org.pathvisio.libgpml.model.Referenceable
Referenceable.Annotatable, Referenceable.Citable, Referenceable.Evidenceable
-
Field Summary
Fields Modifier and Type Field Description private org.bridgedb.Xref
xref
Fields inherited from class org.pathvisio.libgpml.model.LineElement
shape
Fields inherited from class org.pathvisio.libgpml.model.PathwayObject
noFire, pathwayModel
Fields inherited from interface org.pathvisio.libgpml.model.connector.ConnectorRestrictions
SIDE_EAST, SIDE_NORTH, SIDE_SOUTH, SIDE_WEST
-
Constructor Summary
Constructors Constructor Description Interaction()
Instantiates an Interaction pathway element given all required parameters except xref.Interaction(org.bridgedb.Xref xref)
Instantiates an Interaction pathway element given all possible parameters. -
Method Summary
Modifier and Type Method Description CopyElement
copy()
Copies this pathway element.void
copyValuesFrom(Interaction src)
Copies values from the given source pathway element.ObjectType
getObjectType()
Returns the object type of this pathway element.java.lang.Object
getStaticProperty(StaticProperty key)
Returns static property value for given key.java.util.Set<StaticProperty>
getStaticPropertyKeys()
Returns all static properties for this pathway object.org.bridgedb.Xref
getXref()
Returns the Xref for this interaction.void
setStaticProperty(StaticProperty key, java.lang.Object value)
This works so that o.setNotes(x) is the equivalent of o.setProperty("Notes", x); Value may be null in some cases, e.g.void
setXref(org.bridgedb.Xref v)
Sets the Xref for this interaction.Methods inherited from class org.pathvisio.libgpml.model.LineElement
addAnchor, addAnchor, addAnchor, adjustWayPointPreferences, copyValuesFrom, getAnchors, getBounds, getCenterX, getCenterY, getConnectorShape, getConnectorType, getEndArrowHeadType, getEndElementRef, getEndLinePoint, getEndLinePointX, getEndLinePointY, getEndPoint2D, getEndSide, getGroupRef, getHeight, getLeft, getLineColor, getLinePoints, getLineStyle, getLineWidth, getPoints2D, getRotatedBounds, getStartArrowHeadType, getStartElementRef, getStartLinePoint, getStartLinePointX, getStartLinePointY, getStartPoint2D, getStartSide, getTop, getWayPointPreferences, getWidth, getZOrder, hasAnchor, hasGroupRef, mayCross, removeAnchor, resetWayPointPreferences, setCenterX, setCenterY, setConnectorType, setEndArrowHeadType, setEndElementRef, setEndLinePoint, setEndLinePointX, setEndLinePointY, setGroupRefTo, setLeft, setLineColor, setLinePoints, setLineStyle, setLineWidth, setPathwayModelTo, setStartArrowHeadType, setStartElementRef, setStartLinePoint, setStartLinePointX, setStartLinePointY, setTop, setZOrder, terminate, toAbsoluteCoordinate, toRelativeCoordinate, unsetGroupRef
Methods inherited from class org.pathvisio.libgpml.model.PathwayElement
addAnnotation, addAnnotation, addAnnotation, addCitation, addCitation, addCitation, addComment, addComment, addEvidence, addEvidence, addEvidence, copyReferencesFrom, copyValuesFrom, findComment, getAnnotationRefs, getCitationRefs, getComments, getDynamicProperties, getDynamicProperty, getDynamicPropertyKeys, getEvidenceRefs, getPropertyEx, getPropertyKeys, hasAnnotationRef, hasCitationRef, hasEvidenceRef, removeAnnotationRef, removeAnnotationRefs, removeCitationRef, removeCitationRefs, removeComment, removeEvidenceRef, removeEvidenceRefs, setComments, setDynamicProperty, setPropertyEx
Methods inherited from class org.pathvisio.libgpml.model.PathwayObject
addListener, dontFireEvents, fireObjectModifiedEvent, getElementId, getListeners, getPathwayModel, hasPathwayModel, removeListener, setElementId, setGeneratedElementId, setPathwayModel, unsetPathwayModel
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.pathvisio.libgpml.model.Drawable
getPathwayModel
-
Field Details
-
xref
private org.bridgedb.Xref xref
-
-
Constructor Details
-
Interaction
public Interaction(org.bridgedb.Xref xref)Instantiates an Interaction pathway element given all possible parameters.- Parameters:
xref
- the interaction Xref.
-
Interaction
public Interaction()Instantiates an Interaction pathway element given all required parameters except xref.
-
-
Method Details
-
getObjectType
Returns the object type of this pathway element.- Specified by:
getObjectType
in interfaceDrawable
- Specified by:
getObjectType
in classPathwayObject
- Returns:
- the object type.
-
getXref
public org.bridgedb.Xref getXref()Returns the Xref for this interaction. -
setXref
public void setXref(org.bridgedb.Xref v)Sets the Xref for this interaction. -
copyValuesFrom
Copies values from the given source pathway element.- Parameters:
src
- the source pathway element.
-
copy
Copies this pathway element.- Specified by:
copy
in classPathwayElement
- Returns:
- the copyElement for the new pathway element and this source pathway element.
-
getStaticPropertyKeys
Returns all static properties for this pathway object.- Overrides:
getStaticPropertyKeys
in classLineElement
- Returns:
- result the set of static property for this pathway object.
-
getStaticProperty
Returns static property value for given key.- Overrides:
getStaticProperty
in classLineElement
- Parameters:
key
- the key.- Returns:
- the static property value.
-
setStaticProperty
This works so that o.setNotes(x) is the equivalent of o.setProperty("Notes", x); Value may be null in some cases, e.g. graphRef- Overrides:
setStaticProperty
in classLineElement
- Parameters:
key
- the key.value
- the static property value.
-