ilog.views.maps.beans.editor
Class IlvAlphaPropertyEditor

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

public class IlvAlphaPropertyEditor
extends PropertyEditorSupport

A property editor to edit layer transparency. This property editor supports a custom editor, an IlvAlphaEditorPanel.

Since:
JViews 7.5

Constructor Summary
IlvAlphaPropertyEditor()
          Creates a new IlvAlphaPropertyEditor.
 
Method Summary
 String getAsText()
          Gets the property value as a String.
 Component getCustomEditor()
          Retrieves the custom editor.
 String getJavaInitializationString()
          Returns The java initialization string.
 Object getValue()
          Retrieves the value of the property editor.
 void setAsText(String text)
          Sets the property value as a String.
 void setValue(Object value)
          Sets the value for this property editor.
 boolean supportsCustomEditor()
          Tells is this property editor supports a custom editor.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvAlphaPropertyEditor

public IlvAlphaPropertyEditor()
Creates a new IlvAlphaPropertyEditor.

Method Detail

setValue

public void setValue(Object value)
Sets the value for this property editor. The value must be a Float.

Specified by:
setValue in interface PropertyEditor
Overrides:
setValue in class PropertyEditorSupport
Parameters:
value - The new Value.

getValue

public Object getValue()
Retrieves the value of the property editor. The returned value is a Float

Specified by:
getValue in interface PropertyEditor
Overrides:
getValue in class PropertyEditorSupport
Returns:
the value of this property editor.

getJavaInitializationString

public String getJavaInitializationString()
Returns The java initialization string.

Specified by:
getJavaInitializationString in interface PropertyEditor
Overrides:
getJavaInitializationString in class PropertyEditorSupport
Returns:
The java initialization string.

getAsText

public String getAsText()
Gets the property value as a String.

Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport
Returns:
The value as a String.

setAsText

public void setAsText(String text)
               throws IllegalArgumentException
Sets the property value as a String.

Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Parameters:
text - The new String value.
Throws:
IllegalArgumentException

getCustomEditor

public Component getCustomEditor()
Retrieves the custom editor. This method return a IlvAlphaEditorPanel.

Specified by:
getCustomEditor in interface PropertyEditor
Overrides:
getCustomEditor in class PropertyEditorSupport
Returns:
An IlvAlphaEditorPanel.

supportsCustomEditor

public boolean supportsCustomEditor()
Tells is this property editor supports a custom editor. This method return true

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


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