Class ColorChooser

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ColorChooser extends JColorChooser
The overridden JColorChooser class.
Author:
Christopher Mindus
See Also:
  • Method Details

    • wrap

      public org.eclipse.swt.widgets.Composite wrap(org.eclipse.swt.widgets.Composite parent, org.eclipse.swt.layout.GridData gridData, int cx)
      Creates an AWT wrapper component and returns an SWT composite.
      Parameters:
      parent - The SWT parent component.
      gridData - The GridData for the composite.
      cx - Preferred width if the wrapped component, zero to use it's preferred width.
      Returns:
      Composite for the SWT-AWT wrapper.
    • getColor

      public Color getColor()
      Gets the current color value from the color chooser. By default, this delegates to the model.
      Overrides:
      getColor in class JColorChooser
      Returns:
      The current color value of the color chooser.
    • getColorNoUpdate

      public Color getColorNoUpdate()
      Gets the current color value from the color chooser. By default, this delegates to the model.

      This method does not cause any updates to focus in AWT when getting the color.

      Returns:
      The current color value of the color chooser.
    • createChooser

      public static ColorChooser createChooser(int color, boolean isTransparent)
      Create Color Chooser.