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
  • Constructor Details

    • GenericPoint

      public GenericPoint()
      Constructor for a generic point.
  • Method Details

    • getLineElement

      public LineElement 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.IllegalStateException
      Sets 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 by PathwayModel.addPathwayObject(org.pathvisio.libgpml.model.PathwayObject).
      Overrides:
      setPathwayModelTo in class PathwayObject
      Parameters:
      pathwayModel - the parent pathway model.
      Throws:
      java.lang.IllegalArgumentException
      java.lang.IllegalStateException