|
TPTP 4.6.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.hyades.ui.widgets.zoomslider.ZoomControlBar
public class ZoomControlBar
A zoom control bar is a user adjustable entity placed on a slider that enables the user to dynamically alter a generic control by adjusting the position of the entity on the slider
| Constructor Summary | |
|---|---|
ZoomControlBar(ZoomSlider slider)
Construct a new ZoomControlBar with the default color and initial value and size |
|
ZoomControlBar(ZoomSlider slider,
org.eclipse.swt.graphics.Color color)
Construct a new ZoomControlBar with default initial value and size |
|
ZoomControlBar(ZoomSlider slider,
org.eclipse.swt.graphics.Color color,
int size)
Construct a new ZoomControlBar with default initial value |
|
ZoomControlBar(ZoomSlider slider,
double value)
Construct a new ZoomControlBar with default initial color and size |
|
ZoomControlBar(ZoomSlider slider,
double value,
org.eclipse.swt.graphics.Color color)
Construct a new ZoomControlBar with default size |
|
ZoomControlBar(ZoomSlider slider,
double value,
org.eclipse.swt.graphics.Color color,
int size)
Construct a new ZoomControlBar |
|
ZoomControlBar(ZoomSlider slider,
double value,
int size)
Construct a new ZoomControlBar with default color |
|
ZoomControlBar(ZoomSlider slider,
int size)
Contruct a new ZoomControlBar with default color and value |
|
| Method Summary | |
|---|---|
void |
addZoomControlBarListener(ZoomControlBarListener listener)
Add a ZoomControlBarListener to this control bar's list of event listeners |
void |
dispose()
Dispose of system resources |
org.eclipse.swt.graphics.Color |
getColor()
Get the control bar's color |
int |
getSize()
Get the rectangle height size of the control bar |
java.lang.String |
getToolTipText()
Get this control's tooltip text |
double |
getValue()
Get the current control bar's value |
ZoomSlider |
getZoomSlider()
Get the parent zoomslider |
void |
hide(org.eclipse.swt.graphics.Image backBuffer,
org.eclipse.swt.graphics.GC g)
Hide the control |
boolean |
inside(int x,
int y)
Returns whether an arbitrary coordinate is within this control bar control |
boolean |
isEnabled()
Check whether this control is enabled |
void |
paint(org.eclipse.swt.graphics.GC g)
Paint this zoom control bar on the provided GC |
void |
removeZoomControlBarListener(ZoomControlBarListener listener)
Remove a ZoomControlBarListener from this control bar's list of listeners |
void |
setColor(org.eclipse.swt.graphics.Color color)
Set the control bar's color |
void |
setEnabled(boolean en)
Set the enabled state of this control bar |
void |
setSize(int size)
Set the rectangle height size of the control bar |
void |
setToolTipText(java.lang.String text)
Set this control's tooltip text |
void |
setValue(double val)
Set this control bar's control value |
void |
setZoomSlider(ZoomSlider slider)
Set the parent zoomslider for this control bar |
void |
sprayZoomControlBarEvent(boolean finished)
Send a ZoomControlBarEvent to all listeners |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ZoomControlBar(ZoomSlider slider)
slider - the ZoomSlider to create a ZoomControlBar on
public ZoomControlBar(ZoomSlider slider,
double value)
slider - the parent ZoomSlidervalue - the initial control value
public ZoomControlBar(ZoomSlider slider,
org.eclipse.swt.graphics.Color color)
slider - the parent ZoomSlidercolor - the initial color of the control bar
public ZoomControlBar(ZoomSlider slider,
double value,
org.eclipse.swt.graphics.Color color)
slider - the parent ZoomSlidervalue - the initial valuecolor - the initial color of the control bar
public ZoomControlBar(ZoomSlider slider,
int size)
slider - the parent ZoomSlidersize - the control bar size
public ZoomControlBar(ZoomSlider slider,
double value,
int size)
slider - the parent ZoomSlidervalue - the initial valuesize - the initial control bar size
public ZoomControlBar(ZoomSlider slider,
org.eclipse.swt.graphics.Color color,
int size)
slider - the parent ZoomSlidercolor - the initial control bar colorsize - the initial control bar size
public ZoomControlBar(ZoomSlider slider,
double value,
org.eclipse.swt.graphics.Color color,
int size)
slider - the parent ZoomSlidercolor - the initial control bar colorsize - the initial control bar sizevalue - the intial control bar value| Method Detail |
|---|
public void setZoomSlider(ZoomSlider slider)
slider - the parent sliderpublic ZoomSlider getZoomSlider()
public void setToolTipText(java.lang.String text)
text - the tooltip text to setpublic java.lang.String getToolTipText()
public void setValue(double val)
val - the value to set this control bar control topublic double getValue()
public void setColor(org.eclipse.swt.graphics.Color color)
color - the color to setpublic org.eclipse.swt.graphics.Color getColor()
public void setEnabled(boolean en)
en - a boolean depicting the enabled state of this controlpublic boolean isEnabled()
public void setSize(int size)
size - the size of the bar in pixelspublic int getSize()
public void hide(org.eclipse.swt.graphics.Image backBuffer,
org.eclipse.swt.graphics.GC g)
backBuffer - a reverse image to paintg - the parent GCpublic void paint(org.eclipse.swt.graphics.GC g)
g - the GC to paint this control bar on
public boolean inside(int x,
int y)
x - the x coordinatey - the y coordinate
public void sprayZoomControlBarEvent(boolean finished)
finished - true if the event shows completion of a changepublic void addZoomControlBarListener(ZoomControlBarListener listener)
listener - an implementation of ZoomControlBarListenerpublic void removeZoomControlBarListener(ZoomControlBarListener listener)
listener - an implementation of ZoomControlBarListenerpublic void dispose()
|
TPTP 4.6.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||