Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.style.editors
Class RuleEditor<T extends org.geotools.styling.Symbolizer>

java.lang.Object
  extended by eu.esdihumboldt.hale.ui.style.editors.RuleEditor<T>
Type Parameters:
T - the Symbolizer type
All Implemented Interfaces:
Editor<org.geotools.styling.Rule>

public class RuleEditor<T extends org.geotools.styling.Symbolizer>
extends Object
implements Editor<org.geotools.styling.Rule>

Editor for Rules

Author:
Simon Templer
Partner:
01 / Fraunhofer Institute for Computer Graphics Research

Constructor Summary
RuleEditor(org.eclipse.swt.widgets.Composite parent, TypeDefinition typeDefinition, org.opengis.filter.Filter filter, Class<T> symbolizerType, T symbolizer, EditorFactory<T> symbolizerFactory)
          Creates a Rule editor
 
Method Summary
 org.eclipse.swt.widgets.Control getControl()
          Get the editor control
 org.geotools.styling.Rule getValue()
          Get the value
 boolean isChanged()
          States if the value has been changed
 void setValue(org.geotools.styling.Rule value)
          Set the value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleEditor

public RuleEditor(org.eclipse.swt.widgets.Composite parent,
                  TypeDefinition typeDefinition,
                  org.opengis.filter.Filter filter,
                  Class<T> symbolizerType,
                  T symbolizer,
                  EditorFactory<T> symbolizerFactory)
Creates a Rule editor

Parameters:
parent - the parent composite
typeDefinition - the type Definition
filter - the initial Filter
symbolizerType - the Symbolizer type
symbolizer - the initial Symbolizer
symbolizerFactory - a Symbolizer editor factory
Method Detail

getControl

public org.eclipse.swt.widgets.Control getControl()
Description copied from interface: Editor
Get the editor control

Specified by:
getControl in interface Editor<org.geotools.styling.Rule>
Returns:
the editor control
See Also:
Editor.getControl()

getValue

public org.geotools.styling.Rule getValue()
                                   throws Exception
Description copied from interface: Editor
Get the value

Specified by:
getValue in interface Editor<org.geotools.styling.Rule>
Returns:
the value
Throws:
Exception - if an error occurs getting the value
See Also:
Editor.getValue()

isChanged

public boolean isChanged()
Description copied from interface: Editor
States if the value has been changed

Specified by:
isChanged in interface Editor<org.geotools.styling.Rule>
Returns:
if the value has been changed
See Also:
Editor.isChanged()

setValue

public void setValue(org.geotools.styling.Rule value)
Description copied from interface: Editor
Set the value

Specified by:
setValue in interface Editor<org.geotools.styling.Rule>
Parameters:
value - the value to set
See Also:
Editor.setValue(java.lang.Object)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d