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

    • TLcdPropertyColor

      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

      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

    • addColor

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

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

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

      public void setDialogTitle(String aTitle)
      Deprecated.
    • getDialogTitle

      public String getDialogTitle()
      Deprecated.
    • getPropertyEditor

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

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

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

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

      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

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

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

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

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

      public Component getComponent()
      Deprecated.
    • getCellEditorValue

      public Object getCellEditorValue()
      Deprecated.
    • isCellEditable

      public boolean isCellEditable(EventObject aEvent)
      Deprecated.
    • shouldSelectCell

      public boolean shouldSelectCell(EventObject aEvent)
      Deprecated.
    • stopCellEditing

      public boolean stopCellEditing()
      Deprecated.
    • cancelCellEditing

      public void cancelCellEditing()
      Deprecated.