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 LineElementgetLineElement()Returns the parent interaction or graphicalLine for this point.protected voidsetPathwayModelTo(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, 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
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:
setPathwayModelToin classPathwayObject- Parameters:
pathwayModel- the parent pathway model.- Throws:
java.lang.IllegalArgumentExceptionjava.lang.IllegalStateException
-