Package org.pathvisio.libgpml.model
Class LineElement.GenericPoint
java.lang.Object
org.pathvisio.libgpml.model.PathwayObject
org.pathvisio.libgpml.model.LineElement.GenericPoint
- All Implemented Interfaces:
Drawable
- Direct Known Subclasses:
LineElement.Anchor
,LineElement.LinePoint
- Enclosing class:
- LineElement
public abstract class LineElement.GenericPoint extends PathwayObject implements Drawable
Abstract class of generic point, extended by
LineElement.LinePoint
and
LineElement.Anchor
.- Author:
- unknown, finterly
-
Field Summary
Fields inherited from class org.pathvisio.libgpml.model.PathwayObject
noFire, pathwayModel
-
Constructor Summary
Constructors Constructor Description GenericPoint()
Constructor for a generic point. -
Method Summary
Modifier and Type Method Description LineElement
getLineElement()
Returns the parent interaction or graphicalLine for this point.protected void
setPathwayModelTo(PathwayModel pathwayModel)
Sets the pathway model for this line point or anchor.Methods inherited from class org.pathvisio.libgpml.model.PathwayObject
addListener, dontFireEvents, fireObjectModifiedEvent, getElementId, getListeners, getObjectType, getPathwayModel, getPropertyEx, getPropertyKeys, getStaticProperty, getStaticPropertyKeys, hasPathwayModel, removeListener, setElementId, setGeneratedElementId, setPathwayModel, setPropertyEx, setStaticProperty, terminate, 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
getObjectType, getPathwayModel, getZOrder, setZOrder, toAbsoluteCoordinate, toRelativeCoordinate
-
Constructor Details
-
GenericPoint
public GenericPoint()Constructor for a generic point.
-
-
Method Details
-
getLineElement
Returns the parent interaction or graphicalLine for this point.- Returns:
- lineElement the parent line element of this point.
-
setPathwayModelTo
protected void setPathwayModelTo(PathwayModel pathwayModel) throws java.lang.IllegalArgumentException, java.lang.IllegalStateExceptionSets the pathway model for this line point or anchor. The generic point must be added to the same pathway model as its parent line. NB: This method is not used directly. It is called byPathwayModel.addPathwayObject(org.pathvisio.libgpml.model.PathwayObject)
.- Overrides:
setPathwayModelTo
in classPathwayObject
- Parameters:
pathwayModel
- the parent pathway model.- Throws:
java.lang.IllegalArgumentException
java.lang.IllegalStateException
-