| java.lang.Object net.refractions.udig.style.sld.simple.LabelViewer
LabelViewer | public class LabelViewer (Code) | | Allows editing/viewing of a Style Layer Descriptor "TextSymbolizer".
Here is the pretty picture:
+-+ +------------+ +------+ +------+
Label: |x| | title\/| | Font | |Offset|
+-+ +------------+ +------+ +------+
or
+-+ +------------+ +------+ +------+ +------+ +--------+
Label: |x| | title\/| | Font | |VAlign| |HAlign| |Rotation|
+-+ +------------+ +------+ +------+ +------+ +--------+
Workflow:
- createControl( parent ) - set up controls
- set( FeatureType, TextSymbolizer, 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
- get( StyleBuilder ) - construct 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 TextSymbolizer | get(StyleBuilder build) | public void | listen(boolean listen) TODO summary sentence for listen ... | public void | removeListener(SelectionListener listener1) Remove listener. | public void | set(FeatureType schema, TextSymbolizer sym, Mode mode) Start editing the provided symbolizer. |
klisten | KeyListener klisten(Code) | | |
labelPlacement | LabelPlacement labelPlacement(Code) | | |
pointPlacement | boolean pointPlacement(Code) | | Use PointPlacement or LinePlacement?
|
schema | FeatureType schema(Code) | | |
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 - |
get | public TextSymbolizer get(StyleBuilder build)(Code) | | Constructs a TextSymbolizer from the inputs
Parameters: build - TextSymbolizer defined by this model |
listen | public void listen(boolean listen)(Code) | | TODO summary sentence for listen ...
Parameters: listen - |
removeListener | public void removeListener(SelectionListener listener1)(Code) | | Remove listener.
Parameters: listener1 - |
set | public void set(FeatureType schema, TextSymbolizer sym, Mode mode)(Code) | | Start editing the provided symbolizer.
Parameters: schema - Parameters: sym - Parameters: mode - |
|
|