Interface Positionable

    • Method Detail

      • getId

        java.lang.String getId()
        Gets the Id of this Positionable
        Returns:
        the id or null if no id
      • addClass

        void addClass​(java.lang.String className)
        Add a class name to this Positionable
        Parameters:
        className - the class name
        Throws:
        java.lang.IllegalArgumentException - className is null or has a comma
      • removeClass

        void removeClass​(java.lang.String className)
        Remove a class name to this Positionable
        Parameters:
        className - the class name
      • removeAllClasses

        void removeAllClasses()
        Remove a class name to this Positionable
      • getClasses

        java.util.Set<java.lang.String> getClasses()
        Gets the class names of this Positionable
        Returns:
        the classes
      • setHidden

        void setHidden​(boolean enabled)
      • deepClone

        Positionable deepClone()
        Make a deep copy of Positional object. Implementation should create a new object and immediately pass the object to finishClone() returning the result of finishClone(). i.e. implementation must be:

        public Positionable deepClone() { Subtype t = new Subtype(); return finishClone(t); }

        Then finishClone() finishes the deep Copy of a Positional object. Implementation should make deep copies of the additional members of this sub class and then pass Positionable p to super.finishClone(). i.e. implementation must terminate with statement return super.finishClone(p); See IndicatorTurnoutIcon extends TurnoutIcon extends PositionableLabel for an example of how to continue deep cloning a chain of subclasses.

        Returns:
        the copy
      • getTypeString

        java.lang.String getTypeString()
        Get the type of the positional as a String.
        Returns:
        the type to display
      • getNameString

        java.lang.String getNameString()
        Get the name of the positional as a String. This is often the display name of the NamedBean being positioned.
        Specified by:
        getNameString in interface InlineLogixNG
        Returns:
        the name to display
      • setRotateOrthogonalMenu

        boolean setRotateOrthogonalMenu​(javax.swing.JPopupMenu popup)
        Add additional menu items to the menu.
        Parameters:
        popup - the menu to add the menu items to
        Returns:
        true if adding items; false otherwise
      • setRotateMenu

        boolean setRotateMenu​(javax.swing.JPopupMenu popup)
        Add additional menu items to the menu.
        Parameters:
        popup - the menu to add the menu items to
        Returns:
        true if adding items; false otherwise
      • setScaleMenu

        boolean setScaleMenu​(javax.swing.JPopupMenu popup)
        Add additional menu items to the menu.
        Parameters:
        popup - the menu to add the menu items to
        Returns:
        true if adding items; false otherwise
      • setEditIconMenu

        boolean setEditIconMenu​(javax.swing.JPopupMenu popup)
        Add additional menu items to the menu.
        Parameters:
        popup - the menu to add the menu items to
        Returns:
        true if adding items; false otherwise
      • setEditItemMenu

        boolean setEditItemMenu​(javax.swing.JPopupMenu popup)
        Add additional menu items to the menu.
        Parameters:
        popup - the menu to add the menu items to
        Returns:
        true if adding items; false otherwise
      • setDisableControlMenu

        boolean setDisableControlMenu​(javax.swing.JPopupMenu popup)
        Add additional menu items to the menu.
        Parameters:
        popup - the menu to add the menu items to
        Returns:
        true if adding items; false otherwise
      • setTextEditMenu

        boolean setTextEditMenu​(javax.swing.JPopupMenu popup)
        Add additional menu items to the menu.
        Parameters:
        popup - the menu to add the menu items to
        Returns:
        true if adding items; false otherwise
      • showPopUp

        boolean showPopUp​(javax.swing.JPopupMenu popup)
      • rotate

        void rotate​(int deg)
      • storeItem

        boolean storeItem()
        Check if a permanent copy of this Positionable should be stored.
        Returns:
        true if this Positionable should be stored; false otherwise
      • doViemMenu

        boolean doViemMenu()
        Use the 'Standard' presentation of the popup menu items. The editor will call this method to find out whether it should create any popup viewing menu items.
        Returns:
        true if Editor may add the standardpopup menu items
      • getBounds

        java.awt.Rectangle getBounds​(java.awt.Rectangle r)
      • contains

        boolean contains​(int x,
                         int y)
      • getX

        int getX()
        Description copied from interface: InlineLogixNG
        Get the X position of this InlineLogixNG.
        Specified by:
        getX in interface InlineLogixNG
        Returns:
        the X position
      • getY

        int getY()
        Description copied from interface: InlineLogixNG
        Get the Y position of this InlineLogixNG.
        Specified by:
        getY in interface InlineLogixNG
        Returns:
        the Y position
      • setSize

        void setSize​(int width,
                     int height)
      • setOpaque

        void setOpaque​(boolean isOpaque)
      • setBorder

        void setBorder​(javax.swing.border.Border border)