Class CanvasPanel

    • Field Detail

      • m_LeftMouseDown

        protected boolean m_LeftMouseDown
        whether the left mouse button is down.
      • m_RightMouseDown

        protected boolean m_RightMouseDown
        whether the right mouse button is down.
    • Constructor Detail

      • CanvasPanel

        public CanvasPanel()
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class BasePanel
      • setOwner

        public void setOwner​(SegmentationPanel value)
        Sets the owner.
        Parameters:
        value - the owner
      • getOwner

        public SegmentationPanel getOwner()
        Returns the owner.
        Returns:
        the owner, null if none set
      • isLeftMouseDown

        public boolean isLeftMouseDown()
        Returns whether the left mouse button is down.
        Returns:
        true if down
      • isRightMouseDown

        public boolean isRightMouseDown()
        Returns whether the right mouse button is down.
        Returns:
        true if down
      • paintComponent

        protected void paintComponent​(Graphics g)
        Paints the component.
        Overrides:
        paintComponent in class JComponent
        Parameters:
        g - the context