Class Cut

    • Field Detail

      • simregions

        protected java.util.ArrayList<Simregion> simregions
    • Constructor Detail

      • Cut

        public Cut​(Element prototype)
    • Method Detail

      • add

        public void add​(Simregion simregion)
      • getSimregions

        public java.util.ArrayList<Simregion> getSimregions()
        Returns:
        the simregions
      • setSimregions

        public void setSimregions​(java.util.ArrayList<Simregion> simregions)
        Parameters:
        simregions - the simregions to set
      • accept

        public void accept​(Visitor visitor)
                    throws java.lang.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:
        java.lang.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
      • getMaxSimregions

        public java.util.ArrayList<java.awt.Point> getMaxSimregions​(ViewWorkAround view)
        Returns:
        the maximal y coordinates of simregions (those that are at the limit of the cut)