Class ColorPickerPanel

    • Field Detail

      • m_Owner

        protected ImagePanel m_Owner
        the panel to use for picking the color.
      • m_MouseListener

        protected MouseAdapter m_MouseListener
        the mouse listener.
      • m_MouseMotionListener

        protected MouseMotionAdapter m_MouseMotionListener
        the mouse motion listener.
      • m_PanelColors

        protected ParameterPanel m_PanelColors
        for displaying the current color.
      • m_TextSelectedColor

        protected BaseTextField m_TextSelectedColor
        the text field for the selected color.
      • m_TextCurrentColor

        protected BaseTextField m_TextCurrentColor
        the text field for the color at the current position.
    • Constructor Detail

      • ColorPickerPanel

        public ColorPickerPanel()
    • Method Detail

      • initGUI

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

        public void setOwner​(ImagePanel value)
        Sets the owning panel.
        value - the owner
      • getOwner

        public ImagePanel getOwner()
        Returns the owning panel.
        the owner
      • getContrastColor

        public static Color getContrastColor​(Color color)
      • updateColor

        protected void updateColor​(BaseTextField field,
                                   Color color)
        Updates the text field with the specified color.
        field - the text field to update
        color - the color to display
      • getColorAt

        protected Color getColorAt​(Point p)
        Returns the color at the specified position
      • start

        public void start()
        Starts the picking.
      • stop

        public void stop()
        Stops the picking.
      • setSelectedColor

        public void setSelectedColor​(Color value)
        Sets the initial selected color.
        value - the color
      • getSelectedColor

        public Color getSelectedColor()
        Returns the currently selected color.
        the color