|
TPTP 4.5.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.ZoomIndicator
public class ZoomIndicator
A ZoomIndicator paints a bounded, coloured line on a slider to represent a value. The ZoomIndicator paints between the basevalue and value of the indicator. Typically, the baseindicator represents a value that does not change, whereas the value represents the variable value that the indicator is displaying.
| Constructor Summary | |
|---|---|
ZoomIndicator(ZoomSlider slider)
Create a ZoomIndicator for this slider, with default initial value and color |
|
ZoomIndicator(ZoomSlider slider,
org.eclipse.swt.graphics.Color color)
Create a ZoomIndicator for this slider with default color |
|
ZoomIndicator(ZoomSlider slider,
double value)
Create a ZoomIndicator for this slider with default color |
|
ZoomIndicator(ZoomSlider slider,
double value,
org.eclipse.swt.graphics.Color color)
Create a ZoomIndicator for this slider |
|
| Method Summary | |
|---|---|
void |
dispose()
Dispose of ZoomIndicator resources |
org.eclipse.swt.graphics.Color |
getColor()
Get the color of this indicator |
double |
getValue()
Get the indicators value |
ZoomSlider |
getZoomSlider()
Get the ZoomSlider this indicator is assigned to |
void |
paint(org.eclipse.swt.graphics.GC g,
org.eclipse.swt.graphics.Image backBuffer,
int pos,
int w)
Paint this ZoomIndicator on the ZoomSlider GC |
void |
setBaseValue(double value)
Set the base value of this indicator. |
void |
setColor(org.eclipse.swt.graphics.Color color)
Set the color of this indicator |
void |
setValue(double value)
Set this indicators value |
void |
setXORColor()
Set the XOR color of this indicator |
void |
setZoomSlider(ZoomSlider slider)
Set the ZoomSlider this indicator is assigned to |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ZoomIndicator(ZoomSlider slider)
slider - the ZoomSlider for this indicator
public ZoomIndicator(ZoomSlider slider,
double value)
slider - the ZoomSlider for this indicatorvalue - the initial indicator value
public ZoomIndicator(ZoomSlider slider,
org.eclipse.swt.graphics.Color color)
slider - the ZoomSlider for this indicatorcolor - the initial color of this indicator
public ZoomIndicator(ZoomSlider slider,
double value,
org.eclipse.swt.graphics.Color color)
slider - the ZoomSlider for this indicatorcolor - the initial color of this indicatorvalue - the initial indicator value| Method Detail |
|---|
public void setZoomSlider(ZoomSlider slider)
slider - the ZoomSliderpublic ZoomSlider getZoomSlider()
public void setBaseValue(double value)
value - public void setValue(double value)
value - the indicators valuepublic double getValue()
public void setColor(org.eclipse.swt.graphics.Color color)
color - the new Color of this indicatorpublic org.eclipse.swt.graphics.Color getColor()
public void paint(org.eclipse.swt.graphics.GC g,
org.eclipse.swt.graphics.Image backBuffer,
int pos,
int w)
g - the GC on which to paintbackBuffer - the background Image of this sliderpos - the position to draw this indicator (if there are multiple indicators)w - the width of this ZoomIndicatorpublic void setXORColor()
public void dispose()
|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||