Class TLcdPropertyColor

java.lang.Object
java.awt.Component
java.awt.Canvas
com.luciad.beans.awt.TLcdPropertyColor
All Implemented Interfaces:
MouseListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

@Deprecated public class TLcdPropertyColor extends Canvas implements MouseListener
Deprecated.
Use a UI builder (e.g. Swing) or binding framework instead.
This is a Component to edit a Color property through its PropertyEditor.
See Also:
  • Constructor Details Link icon

    • TLcdPropertyColor Link icon

      public TLcdPropertyColor(Frame frame, PropertyEditor pe)
      Deprecated.
      Constructs a TLcdPropertyColor with a PropertyEditor which getValue method returns an instance of the Color class.

      The given Frame will be used as parent Frame for the PropertyDialog

      This TLcdPropertyCanvas will register as PropertyChangeListener to the given PropertyEditor, and repaint itself each a PropertyChangeEvent has been fire.

    • TLcdPropertyColor Link icon

      public TLcdPropertyColor(PropertyEditor pe)
      Deprecated.
      Constructs a TLcdPropertyColor with a PropertyEditor which getValue method returns an instance of the Color class.

      The parent Frame for the PropertyDialog will be found using TLcdAWTUtil.findParentFrame(Object) with the MouseEvent received on the MouseReleased.

      This TLcdPropertyCanvas will register as PropertyChangeListener to the given PropertyEditor, and repaint itself each a PropertyChangeEvent has been fire.

  • Method Details Link icon

    • addColor Link icon

      public static void addColor(Color aColor)
      Deprecated.
    • setColors Link icon

      public static void setColors(Color[] aColorArray)
      Deprecated.
    • getColors Link icon

      public static Color[] getColors()
      Deprecated.
    • setDialogTitle Link icon

      public void setDialogTitle(String aTitle)
      Deprecated.
    • getDialogTitle Link icon

      public String getDialogTitle()
      Deprecated.
    • getPropertyEditor Link icon

      public PropertyEditor getPropertyEditor()
      Deprecated.
      Get the PropertyEditor to be considered. aPropertyEditor.getValue() must return an instance of Color.
    • setPropertyEditor Link icon

      public void setPropertyEditor(PropertyEditor aPropertyEditor)
      Deprecated.
      Sets the PropertyEditor to be considered. aPropertyEditor.getValue() must return an instance of Color.
    • removeNotify Link icon

      public void removeNotify()
      Deprecated.
      Redefines removeNotify in order to unregister as PropertyChangeListener from the set PropertyEditor.
      Overrides:
      removeNotify in class Component
    • paint Link icon

      public void paint(Graphics g)
      Deprecated.
      Overrides:
      paint in class Canvas
    • mouseReleased Link icon

      public void mouseReleased(MouseEvent evt)
      Deprecated.
      This implementation opens a Window with a choice among default Colors. This method can be redefined with other behavior.
      Specified by:
      mouseReleased in interface MouseListener
    • mousePressed Link icon

      public void mousePressed(MouseEvent evt)
      Deprecated.
      Implements MouseListener.mousePressed. No Action is performed here.
      Specified by:
      mousePressed in interface MouseListener
    • mouseClicked Link icon

      public void mouseClicked(MouseEvent evt)
      Deprecated.
      Implements MouseListener.mouseClicked. No Action is performed here.
      Specified by:
      mouseClicked in interface MouseListener
    • mouseEntered Link icon

      public void mouseEntered(MouseEvent evt)
      Deprecated.
      Implements MouseListener.mouseEntered. No Action is performed here.
      Specified by:
      mouseEntered in interface MouseListener
    • mouseExited Link icon

      public void mouseExited(MouseEvent evt)
      Deprecated.
      Implements MouseListener.mouseExited. No Action is performed here.
      Specified by:
      mouseExited in interface MouseListener
    • getComponent Link icon

      public Component getComponent()
      Deprecated.
    • getCellEditorValue Link icon

      public Object getCellEditorValue()
      Deprecated.
    • isCellEditable Link icon

      public boolean isCellEditable(EventObject aEvent)
      Deprecated.
    • shouldSelectCell Link icon

      public boolean shouldSelectCell(EventObject aEvent)
      Deprecated.
    • stopCellEditing Link icon

      public boolean stopCellEditing()
      Deprecated.
    • cancelCellEditing Link icon

      public void cancelCellEditing()
      Deprecated.