|
TPTP 4.1.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.ZoomControlBarsCollection
A collection of ZoomControlBars for a particular ZoomSlider
| Constructor Summary | |
|---|---|
ZoomControlBarsCollection(ZoomSlider slider)
Create a new ZoomControlBarsCollection for this slider |
|
| Method Summary | |
|---|---|
void |
add(ZoomControlBar bar)
Add this ZoomControlBar to the collection of control bars for this slider. |
void |
dispose()
Dispose of all system resources used by this collection and the bars within it |
ZoomControlBar |
getZoomControlBarContaining(int x,
int y)
Get the ZoomControlBar from this collection at the given coordinates |
java.util.Vector |
getZoomControlBars()
Get a vector of all the controls bars within this collection |
boolean |
hasBars()
Returns true if the collection contains at least one bar. |
boolean |
isPrimed()
Primed is true if the collection has a bar that the user is interacting with, and if the bar is currently being changed |
boolean |
isSelected()
Returns true if the current collection is selected. |
boolean |
mouseDown(org.eclipse.swt.events.MouseEvent event)
A method to handle a mouse down MouseEvent on the bars within this collection |
boolean |
mouseMove(org.eclipse.swt.events.MouseEvent event)
A method to handle a mouse move MouseEvent on the bars within this collection This is only valid if the collection has been primed (a bar was clicked on) |
boolean |
mouseUp(org.eclipse.swt.events.MouseEvent event)
A method to handle a mouse up MouseEvent on the bars within this collection |
void |
paint(org.eclipse.swt.graphics.Image buffer,
org.eclipse.swt.graphics.GC gBuffer,
org.eclipse.swt.graphics.GC g,
boolean indicatorsChanged)
Paint all the ZoomControlBars in this collection |
void |
remove(ZoomControlBar bar)
Remove a ZoomControlBar from the collection of bars. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ZoomControlBarsCollection(ZoomSlider slider)
slider - the slider that the zoom controls will be associated with| Method Detail |
public void add(ZoomControlBar bar)
bar - the ZoomControlBar to add to the collection.public void remove(ZoomControlBar bar)
bar - the ZoomControlBar to remove from the listpublic boolean hasBars()
public boolean isSelected()
true if the current collection is selected. A collection is
selected if the user has started interacting with any one of the control bars in the collection
public boolean isPrimed()
public void paint(org.eclipse.swt.graphics.Image buffer,
org.eclipse.swt.graphics.GC gBuffer,
org.eclipse.swt.graphics.GC g,
boolean indicatorsChanged)
buffer - the zoom control image to paint on the controlgBuffer - a buffer GCg - GCindicatorsChanged - true if the indicators for this slider have changed, false otherwisepublic boolean mouseDown(org.eclipse.swt.events.MouseEvent event)
event - the mouse event
public boolean mouseUp(org.eclipse.swt.events.MouseEvent event)
event - the mouse event
public boolean mouseMove(org.eclipse.swt.events.MouseEvent event)
event - the mouse move event
public ZoomControlBar getZoomControlBarContaining(int x,
int y)
x - the x coordinatey - the y coordinate
public java.util.Vector getZoomControlBars()
public void dispose()
|
TPTP 4.1.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||