TPTP 4.5.0 Platform Project
Public API Specification

org.eclipse.hyades.ui.widgets.zoomslider
Class ZoomImageBar

java.lang.Object
  extended by org.eclipse.hyades.ui.widgets.zoomslider.ZoomControlBar
      extended by org.eclipse.hyades.ui.widgets.zoomslider.ZoomImageBar

public class ZoomImageBar
extends ZoomControlBar

Extends (blah).slider.Bar to provide a slider bar which displays an iconic image


Constructor Summary
ZoomImageBar(ZoomSlider slider, double value, org.eclipse.swt.graphics.Image enabledImage, org.eclipse.swt.graphics.Image disabledImage, int size)
          ZoomImageBar Constructor
 
Method Summary
 void paint(org.eclipse.swt.graphics.GC g)
          Paint this ImageBar
 void setEnabled(boolean b)
          Enable/disable this ImageBar
 
Methods inherited from class org.eclipse.hyades.ui.widgets.zoomslider.ZoomControlBar
addZoomControlBarListener, dispose, getColor, getSize, getToolTipText, getValue, getZoomSlider, hide, inside, isEnabled, removeZoomControlBarListener, setColor, setSize, setToolTipText, setValue, setZoomSlider, sprayZoomControlBarEvent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZoomImageBar

public ZoomImageBar(ZoomSlider slider,
                    double value,
                    org.eclipse.swt.graphics.Image enabledImage,
                    org.eclipse.swt.graphics.Image disabledImage,
                    int size)
ZoomImageBar Constructor

Parameters:
slider - the slider on which this ImageBar is to appear
value - the value on the slider at which this ImageBar is to initially appear
enabledImage - the image to to be used as the enabled iconic image
disabledImage - the image is to be used as the disabled iconic image
size - the required size for this ImageBar. Size means height when the ImageBar is on a vertical slider, and width when on a horizontal slider
Method Detail

paint

public void paint(org.eclipse.swt.graphics.GC g)
Paint this ImageBar

Overrides:
paint in class ZoomControlBar
Parameters:
g - the Graphics context on which to paint

setEnabled

public void setEnabled(boolean b)
Enable/disable this ImageBar

Overrides:
setEnabled in class ZoomControlBar
Parameters:
b - set true to enable, false to disable

TPTP 4.5.0 Platform Project
Public API Specification