| java.lang.Object net.refractions.udig.style.sld.simple.StrokeViewer
StrokeViewer | public class StrokeViewer (Code) | | Allows editing/viewing of a Style Layer Descriptor "Stroke".
Here is the pretty picture:
+-+ +-------+ +------+ +------+
Line: |x| | color | |size\/| |100%\/|
+-+ +-------+ +------+ +------+
Workflow:
- createControl( parent ) - set up controls
- setStroke( stroke, mode ) - provide content from SimpleStyleConfigurator
- Symbolizer values copied into fields based on mode
- fields copied into controls
- controls enabled based on mode & fields
- Listener.widgetSelected/modifyText - User performs an "edit"
- Listener.sync( SelectionEvent ) - update fields with values of controls
- fire( SelectionSevent ) - notify SimpleStyleConfigurator of change
- getStroke( StyleBuilder ) - construct a Stroke based on fields
author: Jody Garnett since: 1.0.0 |
Method Summary | |
public void | addListener(SelectionListener listener1) Accepts a listener that will be notified when content changes. | public Composite | createControl(Composite parent, KeyListener klisten) TODO summary sentence for createControl ... | protected void | fire(SelectionEvent event) TODO summary sentence for fire ... | public Stroke | getStroke(StyleBuilder build) TODO summary sentence for getStroke ... | void | listen(boolean listen) | public void | removeListener(SelectionListener listener1) Remove listener. | public void | setStroke(Stroke aLine, Mode mode, Color defaultColor) TODO summary sentence for setStroke ... |
listener | SelectionListener listener(Code) | | TODO: replace w/ support for more then one listener - when needed
|
addListener | public void addListener(SelectionListener listener1)(Code) | | Accepts a listener that will be notified when content changes.
Parameters: listener1 - |
createControl | public Composite createControl(Composite parent, KeyListener klisten)(Code) | | TODO summary sentence for createControl ...
Parameters: parent - Parameters: klisten - Generated composite |
fire | protected void fire(SelectionEvent event)(Code) | | TODO summary sentence for fire ...
Parameters: event - |
getStroke | public Stroke getStroke(StyleBuilder build)(Code) | | TODO summary sentence for getStroke ...
Parameters: build - Stroke defined by this model |
listen | void listen(boolean listen)(Code) | | |
removeListener | public void removeListener(SelectionListener listener1)(Code) | | Remove listener.
Parameters: listener1 - |
setStroke | public void setStroke(Stroke aLine, Mode mode, Color defaultColor)(Code) | | TODO summary sentence for setStroke ...
Parameters: line - Parameters: mode - Parameters: defaultColor - |
|
|