| java.lang.Object net.refractions.udig.style.sld.simple.ScaleViewer
ScaleViewer | public class ScaleViewer (Code) | | Allows editing/viewing of a scale. Used to build the min/max scale editors for a rule.
Here is the pretty picture:
+-+ +-------------+
Scale:|x| | 90% \/|
+-+ +-------------+
Workflow:
- createControl( parent ) - set up controls
- setFill( stroke, mode ) - provide content from SimpleStyleConfigurator/SimpleRasterConfigurator
- scale values got from rules
- values 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/SimpleRasterConfigurator of change
- getScale( ) - returns the specified scale
author: Andrea Aime since: 1.1 |
Method Summary | |
public void | addListener(SelectionListener listener1) Accepts a listener that will be notified when content changes. | public Composite | createControl(Composite parent, KeyListener kListener) TODO summary sentence for createControl ... | protected void | fire(SelectionEvent event) TODO summary sentence for fire ... | public double | getScale() Gets the scale denominator chosen by the user, or the default value for this type if none was selected. | public boolean | isEnabled() | void | listen(boolean listen) | public void | removeListener(SelectionListener listener1) Remove listener. | public void | setScale(double scale2, long defaultScale) |
MAX | final public static int MAX(Code) | | |
MIN | final public static int MIN(Code) | | |
scaleEditor | Combo scaleEditor(Code) | | |
ScaleViewer | public ScaleViewer(int type)(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 kListener)(Code) | | TODO summary sentence for createControl ...
Parameters: parent - Parameters: kListener - Generated composite |
fire | protected void fire(SelectionEvent event)(Code) | | TODO summary sentence for fire ...
Parameters: event - |
getScale | public double getScale()(Code) | | Gets the scale denominator chosen by the user, or the default value for this type if none was selected.
Default values are 0 for MIN type,
for the MAX type
Parameters: build - Fill defined by this model |
isEnabled | public boolean isEnabled()(Code) | | |
listen | void listen(boolean listen)(Code) | | |
removeListener | public void removeListener(SelectionListener listener1)(Code) | | Remove listener.
Parameters: listener1 - |
setScale | public void setScale(double scale2, long defaultScale)(Code) | | Sets the scale denominator, or disables the component if the provided scale is not a positive number
Parameters: scale - |
|
|