Class AbstractPaintingSelectionProcessor

    • Field Detail

      • m_Color

        protected Color m_Color
        the color to use for painting.
      • m_StrokeThickness

        protected float m_StrokeThickness
        the thickness of the stroke.
    • Constructor Detail

      • AbstractPaintingSelectionProcessor

        public AbstractPaintingSelectionProcessor()
    • Method Detail

      • getDefaultColor

        protected Color getDefaultColor()
        Returns the default color to use.
        Returns:
        the color
      • setColor

        public void setColor​(Color value)
        Sets the color to use.
        Parameters:
        value - the color
      • getColor

        public Color getColor()
        Returns the current color for painting.
        Returns:
        the color
      • colorTipText

        public String colorTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getDefaultStrokeThickness

        protected float getDefaultStrokeThickness()
        Returns the default stroke thickness.
        Returns:
        the thickness
      • setStrokeThickness

        public void setStrokeThickness​(float value)
        Sets the stroke thickness to use.
        Parameters:
        value - the thickness
      • getStrokeThickness

        public float getStrokeThickness()
        Returns the current stroke thickness.
        Returns:
        the thickness
      • strokeThicknessTipText

        public String strokeThicknessTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • applyStroke

        protected float applyStroke​(Graphics g,
                                    float thickness)
        Applies the specified stroke thickness.
        Parameters:
        g - the graphics context
        thickness - the thickness to set
        Returns:
        the previous thickness