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.LinePointNested classes/interfaces inherited from class org.pathvisio.libgpml.model.PathwayElement
PathwayElement.AnnotationRef, PathwayElement.CitationRef, PathwayElement.Comment, PathwayElement.EvidenceRef, PathwayElement.InfoRefNested 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.XrefxrefFields inherited from class org.pathvisio.libgpml.model.LineElement
shapeFields inherited from class org.pathvisio.libgpml.model.PathwayObject
noFire, pathwayModelFields 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 CopyElementcopy()Copies this pathway element.voidcopyValuesFrom(Interaction src)Copies values from the given source pathway element.ObjectTypegetObjectType()Returns the object type of this pathway element.java.lang.ObjectgetStaticProperty(StaticProperty key)Returns static property value for given key.java.util.Set<StaticProperty>getStaticPropertyKeys()Returns all static properties for this pathway object.org.bridgedb.XrefgetXref()Returns the Xref for this interaction.voidsetStaticProperty(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.voidsetXref(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, unsetGroupRefMethods 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, setPropertyExMethods inherited from class org.pathvisio.libgpml.model.PathwayObject
addListener, dontFireEvents, fireObjectModifiedEvent, getElementId, getListeners, getPathwayModel, hasPathwayModel, removeListener, setElementId, setGeneratedElementId, setPathwayModel, unsetPathwayModelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getObjectTypein interfaceDrawable- Specified by:
getObjectTypein 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:
copyin classPathwayElement- Returns:
- the copyElement for the new pathway element and this source pathway element.
-
getStaticPropertyKeys
Returns all static properties for this pathway object.- Overrides:
getStaticPropertyKeysin classLineElement- Returns:
- result the set of static property for this pathway object.
-
getStaticProperty
Returns static property value for given key.- Overrides:
getStaticPropertyin 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:
setStaticPropertyin classLineElement- Parameters:
key- the key.value- the static property value.
-