Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.style.dialog
Class RuleStylePage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by eu.esdihumboldt.hale.ui.style.dialog.FeatureStylePage
          extended by eu.esdihumboldt.hale.ui.style.dialog.RuleStylePage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider

public class RuleStylePage
extends FeatureStylePage

Rule based style editor page

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

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
RuleStylePage(FeatureStyleDialog parent)
          Creates a new editor page
 
Method Summary
protected  void addRule()
          Add a new Rule
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
 org.geotools.styling.Style getStyle(boolean force)
          Get the edited style
protected  void moveCurrentRuleDown()
          Move the current rule down
protected  void moveCurrentRuleUp()
          Move the current rule up
protected  void removeCurrentRule()
          Remove the current rule
protected  void renameCurrentRule()
          Rename the current rule
 
Methods inherited from class eu.esdihumboldt.hale.ui.style.dialog.FeatureStylePage
getParent
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setDescription, setErrorMessage, setImageDescriptor, setMessage, setMessage, setTitle, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleStylePage

public RuleStylePage(FeatureStyleDialog parent)
Creates a new editor page

Parameters:
parent - the parent dialog
Method Detail

getStyle

public org.geotools.styling.Style getStyle(boolean force)
                                    throws Exception
Description copied from class: FeatureStylePage
Get the edited style

Specified by:
getStyle in class FeatureStylePage
Parameters:
force - if a style shall be returned even if there were no changes
Returns:
the style (or null if the parent style shall be used)
Throws:
Exception - if the style could not be retrieved
See Also:
FeatureStylePage.getStyle(boolean)

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
See Also:
IDialogPage.createControl(Composite)

moveCurrentRuleUp

protected void moveCurrentRuleUp()
Move the current rule up


moveCurrentRuleDown

protected void moveCurrentRuleDown()
Move the current rule down


renameCurrentRule

protected void renameCurrentRule()
Rename the current rule


removeCurrentRule

protected void removeCurrentRule()
Remove the current rule


addRule

protected void addRule()
Add a new Rule


Humboldt Alignment Editor 2.5.0

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