Documentation of 'org.joone.edit.LayerConnection' Java class
LayerConnection
org.joone.edit

Class LayerConnection

    • Constructor Detail

      • LayerConnection

        public LayerConnection()
        Constructor
    • Method Detail

      • handleConnect

        public void handleConnect(Figure start,
                                  Figure end)
        handle the connection behaviour
        Parameters:
        start - starting layer
        end - ending layer
      • handleDisconnect

        public void handleDisconnect(Figure start,
                                     Figure end)
        handle the disconnection behaviour
        Parameters:
        start - starting layer
        end - ending layer
      • handles

        public java.util.Vector handles()
        Description copied from class: LineConnection
        Gets the handles of the figure. It returns the normal PolyLineHandles but adds ChangeConnectionHandles at the start and end.
        Specified by:
        handles in interface Figure
        Overrides:
        handles in class LineConnection
        Returns:
        a Vector of handles
        See Also:
        Handle
      • getSynapse

        public Synapse getSynapse()
        Get the internal Synapse object
        Returns:
        the Synapse represented
      • setSynapse

        public void setSynapse(Synapse newMySynapse)
        Set the internal Synapse object
        Parameters:
        newMySynapse - the Synapse to represent
      • getParam

        public java.lang.Object getParam(java.lang.Object key)
        Used to get a parameter by name
        Specified by:
        getParam in interface GenericFigure
        Parameters:
        key - the parameter's name
        Returns:
        the parameter's value
      • setParam

        public void setParam(java.lang.Object key,
                             java.lang.Object newParam)
        Sets a parameter of the synapse
        Specified by:
        setParam in interface GenericFigure
        Parameters:
        key - the parameter's name
        newParam - The parameter's value
      • setParams

        public void setParams(java.util.Hashtable newParams)
        Used to set all parameters of the synapse
        Specified by:
        setParams in interface GenericFigure
        Parameters:
        newParams - java.util.Hashtable
      • getWrapper

        public Wrapper getWrapper()
        Returns the wrapper for the Figure
        Specified by:
        getWrapper in interface GenericFigure
        Returns:
        the Wrapper object
      • draw

        public void draw(java.awt.Graphics g)
        Description copied from interface: Figure
        Draws the figure.
        Specified by:
        draw in interface Figure
        Overrides:
        draw in class PolyLineFigure
        Parameters:
        g - the Graphics to draw into
      • getPopupMenu

        public javax.swing.JPopupMenu getPopupMenu(PropertySheet ps,
                                                   DrawingView view)
        Get the popup menu for this connection. Put here all the popup menu items common to all the connections; override this method to differentiate the menu items.
        Parameters:
        ps - the property sheet to use in the Properties option.
        Returns:
        the popup menu.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.