Class ColorDialog

java.lang.Object
org.eclipse.swt.widgets.Dialog
com.iizigo.prop.editor.dialog.ColorDialog

public class ColorDialog extends Dialog
The color dialog to choose an ARGB color.
Author:
Christopher Mindus
  • Constructor Details

    • ColorDialog

      public ColorDialog(Shell parent, int color)
      Create the dialog.
    • ColorDialog

      public ColorDialog(Shell parent, int color, boolean isTransparent)
      Create the dialog.
    • ColorDialog

      public ColorDialog(Shell parent, int color, boolean isTransparent, GProp<?> context, String currentRef)
      Create the dialog with the palette tab in context (THEME-DESIGN section 5, phase B3).
      Parameters:
      parent - The parent shell.
      color - The initial color, the resolved literal for a referenced color.
      isTransparent - Transparency flag.
      context - A property of the tree the chosen color is written in, or null.
      currentRef - The reference the edited color holds, or null.
  • Method Details

    • open

      public GColor open()
      Open the dialog.
      Returns:
      the result