Class PaletteColorDesignerProp

java.lang.Object
com.iizigo.prop.DesignerProp
com.iizigo.color.prop.PaletteColorDesignerProp
All Implemented Interfaces:
INavigatorPresentation, EventListener, IAdaptable

public class PaletteColorDesignerProp extends DesignerProp
Class for the palette color Designer Prop: the icon is a swatch of the color's light value as the Designer's saved theme family resolves it, so that the IIZI Explorer and the palette tree show the color itself.
Author:
Christopher Mindus
  • Method Details

    • getPropertyEditorSetup

      protected PropertyEditorSetup getPropertyEditorSetup()
      Gets the Setup used for iiziGo, subclasses must override and provide their instance.
      Overrides:
      getPropertyEditorSetup in class DesignerProp
    • getCNImage

      public Image getCNImage(int flags)
      Gets the image for the Common Navigator: a swatch of the light value, the color icon when the color does not resolve.
      Specified by:
      getCNImage in interface INavigatorPresentation
      Overrides:
      getCNImage in class DesignerProp
      Parameters:
      flags - The flags for the image, see FLAG_IMAGE_*.
      Returns:
      Image or null if there is no image.
    • getCNImage

      public Image getCNImage(int columnIndex, int flags)
      Gets the image of a column of the palette tree editor: a swatch of the light or the dark value for columns 1 and 2.
      Specified by:
      getCNImage in interface INavigatorPresentation
      Overrides:
      getCNImage in class DesignerProp
      Parameters:
      columnIndex - The zero-based index for the column (zero is never used, the method getCNImage() is called instead.
      flags - The flags for the image, see FLAG_IMAGE_*.
      Returns:
      Image or null if there is no image.
    • getCNText

      public String getCNText(int columnIndex, int flags)
      Gets the text of a column of the palette tree editor: the light value, the dark value (a literal, a pointer, or what it resolves to), the description.
      Specified by:
      getCNText in interface INavigatorPresentation
      Overrides:
      getCNText in class DesignerProp
      Parameters:
      columnIndex - The zero-based index for the column (zero is never used, the method getCNText() is called instead.
      flags - The flags for the text, see FLAG_TEXT_*.
      Returns:
      The text, or null.
    • getCNDescriptionType

      public String getCNDescriptionType()
      Provide a type description for the status bar view, if available.
      Overrides:
      getCNDescriptionType in class DesignerProp
      Returns:
      A type description for the status bar view, or null if not available.