net.refractions.udig.style.sld
Class AbstractSimpleConfigurator

java.lang.Object
  extended by IStyleConfigurator
      extended by net.refractions.udig.style.sld.AbstractSimpleConfigurator
Direct Known Subclasses:
SimpleRasterConfigurator, SimpleStyleConfigurator

public abstract class AbstractSimpleConfigurator
extends IStyleConfigurator

This is here to save me some typing and ensure that the simple raster and feature configurators look similar.

Since:
0.6.0
Author:
mleslie

Field Summary
protected  StyleBuilder build
          build field
 
Constructor Summary
AbstractSimpleConfigurator()
          Construct AbstractSimpleConfigurator.
 
Method Summary
abstract  boolean canStyle(Layer aLayer)
           
abstract  void createControl(Composite parent)
           
protected  Style getStyle()
          Retrieves the style object from the style blackboard.
protected abstract  void refresh()
           
static SelectionEvent selectionEvent(ModifyEvent e)
          Morph a text ModifyEvent into a SelectionEvent as best we can.
protected  void setLayout(Composite parent)
          TODO summary sentence for setLayout ...
static Composite subpart(Composite parent, java.lang.String label)
          Construct a subpart labeled with the provided tag.
abstract  void synchronize()
          TODO summary sentence for synchronize ...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

build

protected StyleBuilder build
build field

Constructor Detail

AbstractSimpleConfigurator

public AbstractSimpleConfigurator()
Construct AbstractSimpleConfigurator.

Method Detail

canStyle

public abstract boolean canStyle(Layer aLayer)

refresh

protected abstract void refresh()

createControl

public abstract void createControl(Composite parent)

synchronize

public abstract void synchronize()
TODO summary sentence for synchronize ...


setLayout

protected void setLayout(Composite parent)
TODO summary sentence for setLayout ...

Parameters:
parent -

getStyle

protected Style getStyle()
Retrieves the style object from the style blackboard.

Returns:
Style

subpart

public static Composite subpart(Composite parent,
                                java.lang.String label)
Construct a subpart labeled with the provided tag.

Creates a composite with a grid layout of the specifed columns, and a label with text from label.

Parameters:
parent -
label -
Returns:
Composite with one label

selectionEvent

public static SelectionEvent selectionEvent(ModifyEvent e)
Morph a text ModifyEvent into a SelectionEvent as best we can.

This may be a bad abuse of the event system, it appears to be in use because we are too lazy to specify a new event type for style modification.

However this does seem to be in keeping with the purpose of SelectionEvent it already isolates out code from TypedEvents by providing a summary of what changed in which widet.

Parameters:
e -
Returns:
A SelectionEvent based on the provided modify event