|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectScaleViewer
public class ScaleViewer
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:
| Field Summary | |
|---|---|
static int |
MAX
|
static int |
MIN
|
| Constructor Summary | |
|---|---|
ScaleViewer(int type)
|
|
| Method Summary | |
|---|---|
void |
addListener(SelectionListener listener1)
Accepts a listener that will be notified when content changes. |
Composite |
createControl(Composite parent,
KeyListener kListener)
TODO summary sentence for createControl ... |
protected void |
fire(SelectionEvent event)
TODO summary sentence for fire ... |
double |
getScale()
Gets the scale denominator chosen by the user, or the default value for this type if none was selected. |
boolean |
isEnabled()
|
void |
removeListener(SelectionListener listener1)
Remove listener. |
void |
setScale(double scale2,
long defaultScale)
Sets the scale denominator, or disables the component if the provided scale is not a positive number |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MIN
public static final int MAX
| Constructor Detail |
|---|
public ScaleViewer(int type)
| Method Detail |
|---|
public void addListener(SelectionListener listener1)
listener1 - public void removeListener(SelectionListener listener1)
listener1 - protected void fire(SelectionEvent event)
event -
public Composite createControl(Composite parent,
KeyListener kListener)
parent - kListener -
public double getScale()
build -
public void setScale(double scale2,
long defaultScale)
scale - public boolean isEnabled()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||