Class InstanceLine

All Implemented Interfaces:
CommonConstants, LscConstants, Serializable, Cloneable

public class InstanceLine
extends LscElement
implements LscConstants
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • accept

      public void accept​(Visitor visitor) throws Exception
      Description copied from class: Element
      Accept a visitor. This method is specialized in every subclass. Part of the visitor pattern.
      Overrides:
      accept in class Node
      Parameters:
      visitor - - The visitor
      Throws:
      Exception - the visitor threw an exception.
    • getPrototypeFromParent

      public Element getPrototypeFromParent​(Element parent)
      Description copied from class: Element
      Return the proper prototype for this element stored in the parent. This is used by importInto().
      Overrides:
      getPrototypeFromParent in class Element
      Parameters:
      parent - - The parent element
      Returns:
      - The property
    • getLength

      public Integer getLength()
      Gets the instance line length, which is a template property
      Returns:
      an int, the length
    • setLength

      public void setLength​(int length, ViewWorkAround view)
    • getYFoot

      public int getYFoot()
      Returns:
      foot y center
    • isAnchorOf

      public boolean isAnchorOf​(Element element)
      Parameters:
      element -
      Returns:
      whether this instance line is an anchor of the element.