| java.lang.Object net.refractions.udig.style.sld.simple.GraphicViewer
GraphicViewer | public class GraphicViewer (Code) | | Allows editing/viewing of a Style Layer Descriptor "Graphic".
Here is the pretty picture:
+-+ +-------+ +------+
Point: |x| | star\/| |size\/|
+-+ +-------+ +------+
Workflow:
- createControl( parent ) - set up controls
- setGraphic( graphic, 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
- getGraphic( Fill, Stroke, StyleBuilder ) - construct a Graphic 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, StyleBuilder build) TODO summary sentence for createControl ... | protected void | fire(SelectionEvent event) TODO summary sentence for fire ... | public Graphic | getGraphic(Fill filll, Stroke stroke, StyleBuilder build) TODO summary sentence for getGraphic ... | void | listen(boolean listen) | public void | removeListener(SelectionListener listener1) Remove listener. | public void | setGraphic(Graphic graphic2, Mode mode, Color defaultColor) TODO summary sentence for setGraphic ... |
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, StyleBuilder build)(Code) | | TODO summary sentence for createControl ...
Parameters: parent - Parameters: klisten - Parameters: build - Generated composite |
fire | protected void fire(SelectionEvent event)(Code) | | TODO summary sentence for fire ...
Parameters: event - |
getGraphic | public Graphic getGraphic(Fill filll, Stroke stroke, StyleBuilder build)(Code) | | TODO summary sentence for getGraphic ...
Parameters: filll - Parameters: stroke - Parameters: build - Graphic defined by this model |
listen | void listen(boolean listen)(Code) | | |
removeListener | public void removeListener(SelectionListener listener1)(Code) | | Remove listener.
Parameters: listener1 - |
setGraphic | public void setGraphic(Graphic graphic2, Mode mode, Color defaultColor)(Code) | | TODO summary sentence for setGraphic ...
Parameters: graphic - Parameters: mode - Parameters: enabled - |
|
|