net.refractions.udig.style.sld
Class SimpleStyleConfigurator
java.lang.Object
IStyleConfigurator
net.refractions.udig.style.sld.AbstractSimpleConfigurator
net.refractions.udig.style.sld.SimpleStyleConfigurator
public class SimpleStyleConfigurator
- extends AbstractSimpleConfigurator
Defines a "simple" StyleConfigurator for working with SLD documents.
This style configurator is defined as follows:
+-+ +-------+ +------+ +------+
Line: |x| | color | |size\/| |100%\/|
+-+ +-------+ +------+ +------+
+-+ +-------+ +------+
Fill: |x| | color | | 90%\/|
+-+ +-------+ +------+
+-+ +----------------+ +------+
Label: |x| | title\/| | Font |
+-+ +----------------+ +------+
+-+ +-------+ +------+
Point: |x| | star\/| |size\/|
+-+ +-------+ +------+
+-+ +-------------+
Min scale d.: |x| | scale\/|
+-+ +-------------+
+-+ +-------------+
Max scale d.: |x| | scale\/|
+-+ +-------------+
Where:
- Line is used for:
LineString: line color, width, opacity
Polygon: border color, width, opacity
Point: border color, width, opacity
- Fill is used for Polygon or Point fill color, opacity
- Label is used to choose attribute and set font (the only dialog)
- Point is used to set the marker type and size
- Min/max scale denominator define at which scale the layer is visible
Notes:
- RasterSymbolizer is handled by its own thing, as is WMS etc...
- Layout as per the SLDEditorPart examples - so we can take advantage of more or less room.
- Presets is a good idea, just not here
- Apply/Revert buttons to be green/red
- Advanced (edit the SLD) can be in the view menu
- If possible replace color button with a drop down list (may not be possible)
We will do our best to make this thing reusable on an Array of Symbolizers.
- Since:
- 1.0.0
- Author:
- Jody Garnett
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleStyleConfigurator
public SimpleStyleConfigurator()
- Construct
SimpleStyleConfigurator
.
canStyle
public boolean canStyle(Layer aLayer)
- Specified by:
canStyle
in class AbstractSimpleConfigurator
refresh
protected void refresh()
- Specified by:
refresh
in class AbstractSimpleConfigurator
synchronize
public void synchronize()
- Synchronize the SLD with the array of symbolizers
- Specified by:
synchronize
in class AbstractSimpleConfigurator
createControl
public void createControl(Composite parent)
- Specified by:
createControl
in class AbstractSimpleConfigurator