Class PaintPicker

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class PaintPicker extends JPanel
See Also:
  • Field Details

  • Constructor Details

    • PaintPicker

      public PaintPicker()
      Creates new form PaintPicker
  • Method Details

    • getPaint

      public Paint getPaint()
    • addPicker

      public void addPicker(JComponent comp, String title)
    • initComponents

      private void initComponents()
      This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
    • setPaint

      public void setPaint(Paint paint)
    • getDisplayPaint

      Paint getDisplayPaint(Rectangle box)
    • getFlatGradient

      private MultipleGradientPaint getFlatGradient(JXGradientChooser chooser, double length)
      Creates a flat version of the current gradient. This is a linear gradient from 0.0 to length,0. This gradient is suitable for drawing previews of the real gradient.
      Parameters:
      length -
      Returns:
      a gradient Paint with values between 0.0 and length