|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectCanvas
org.csstudio.ui.util.widgets.RangeWidget
public class RangeWidget
Widget that display a range (currently only time, and only vertical) which can be modified using a mouse drag.
| Constructor Summary | |
|---|---|
RangeWidget(Composite parent,
int style)
A new range widget. |
|
| Method Summary | |
|---|---|
void |
addRangeListener(RangeListener listener)
Adds a listener, notified if the range resolution changes. |
double |
getDistancePerPx()
Distance represented by each pixel (e.g. |
int |
getStartPosition()
Whether the range starts at the top or at the bottom. |
boolean |
isEditable()
Whether the use can use the mouse to change the resolution. |
void |
removeRangeListener(RangeListener listener)
Removes a listener. |
void |
setDistancePerPx(double distancePerPx)
Changes how much distance is represented by each pixel. |
void |
setEditable(boolean editable)
Changes whether the use can use the mouse to change the resolution. |
void |
setStartPosition(int startPosition)
Determines whether the range start at the top (and goes down) or at the bottom (and goes up). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RangeWidget(Composite parent,
int style)
parent - parent componentstyle - SWT style| Method Detail |
|---|
public void addRangeListener(RangeListener listener)
listener - a new listenerpublic void removeRangeListener(RangeListener listener)
listener - listener to be removedpublic void setStartPosition(int startPosition)
startPosition - SWT.TOP or SWT.BOTTOMpublic int getStartPosition()
public boolean isEditable()
public void setEditable(boolean editable)
editable - true if user changes are allowedpublic void setDistancePerPx(double distancePerPx)
distancePerPx - seconds (or fraction) represented by each pixelpublic double getDistancePerPx()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||