ilog.views.maps.beans.editor
Class IlvColorModelPropertyEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by ilog.views.maps.beans.editor.IlvColorModelPropertyEditor
All Implemented Interfaces:
PropertyEditor

public class IlvColorModelPropertyEditor
extends PropertyEditorSupport

A color model property editor.

Since:
JViews 7.5

Constructor Summary
IlvColorModelPropertyEditor()
          Constructs an IlvColorModelPropertyEditor
 
Method Summary
 String getAsText()
          
 Component getCustomEditor()
          Returns the component to use in editing the current Color Model value.
 String getJavaInitializationString()
          
 Object getValue()
          Returns the current value of the editor.
 boolean isPaintable()
          This property editor supports painting.
 void paintValue(Graphics gfx, Rectangle box)
          Displays a label to indicate edition is possible.
 void setValue(Object value)
          
 boolean supportsCustomEditor()
          This property editor supports a custom editor.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getSource, getTags, removePropertyChangeListener, setAsText, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvColorModelPropertyEditor

public IlvColorModelPropertyEditor()
Constructs an IlvColorModelPropertyEditor

Method Detail

getAsText

public String getAsText()

Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport
See Also:
PropertyEditorSupport.getAsText()

getCustomEditor

public Component getCustomEditor()
Returns the component to use in editing the current Color Model value. Lazily creates either an IlvIntervalColorModelEditoror an IlvIndexColorModelEditor

Specified by:
getCustomEditor in interface PropertyEditor
Overrides:
getCustomEditor in class PropertyEditorSupport
See Also:
PropertyEditorSupport.getCustomEditor(), IlvColorModelEditor.getComponent()

getJavaInitializationString

public String getJavaInitializationString()

Specified by:
getJavaInitializationString in interface PropertyEditor
Overrides:
getJavaInitializationString in class PropertyEditorSupport
See Also:
PropertyEditorSupport.getJavaInitializationString()

getValue

public Object getValue()
Returns the current value of the editor.

Specified by:
getValue in interface PropertyEditor
Overrides:
getValue in class PropertyEditorSupport
Returns:
the current Color model.

isPaintable

public boolean isPaintable()
This property editor supports painting.

Specified by:
isPaintable in interface PropertyEditor
Overrides:
isPaintable in class PropertyEditorSupport
Returns:
Returns true.

paintValue

public void paintValue(Graphics gfx,
                       Rectangle box)
Displays a label to indicate edition is possible.

Specified by:
paintValue in interface PropertyEditor
Overrides:
paintValue in class PropertyEditorSupport
See Also:
PropertyEditorSupport.paintValue(java.awt.Graphics, java.awt.Rectangle)

setValue

public void setValue(Object value)

Specified by:
setValue in interface PropertyEditor
Overrides:
setValue in class PropertyEditorSupport
See Also:
PropertyEditorSupport.setValue(java.lang.Object)

supportsCustomEditor

public boolean supportsCustomEditor()
This property editor supports a custom editor.

Specified by:
supportsCustomEditor in interface PropertyEditor
Overrides:
supportsCustomEditor in class PropertyEditorSupport
Returns:
Returns true.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.