TPTP 4.5.0 Platform Project
Public API Specification

org.eclipse.hyades.ui.widgets.grapher
Interface IndicatorSource

All Known Implementing Classes:
IndicatorLineGraph

public interface IndicatorSource

The IndicatorSource defines the necessary methods and indicator source types used to plot indicators on ZoomSliders An Indicator plots the resulting y value for a specific x time on the y axis slider. The indicator source provides the indicator values to plot on the sliders.

See Also:
IndicatorSource

Field Summary
static int TYPE_PIXEL
          The Pixel source type constant.
static int TYPE_TIME
          The Time source type constant.
 
Method Summary
 double getIndicatorLocation()
          Get the location to be used in drawing the indicators.
 int getSourceType()
          Return the IndicatorSource type.
 

Field Detail

TYPE_TIME

static final int TYPE_TIME
The Time source type constant.

Defines the indicator location double to be a time value in milliseconds.

See Also:
Constant Field Values

TYPE_PIXEL

static final int TYPE_PIXEL
The Pixel source type constant.

Defines the indicator location double to be a pixel value.

See Also:
Constant Field Values
Method Detail

getSourceType

int getSourceType()
Return the IndicatorSource type. The indicator source returns an indicator location double value. This constant type defines this double value type. Possible values are
  • TYPE_TIME
  • TYPE_PIXEL
  • Returns:
    an integer constant representing this source type

    getIndicatorLocation

    double getIndicatorLocation()
    Get the location to be used in drawing the indicators. This indicator location type is defined by the getSourceType.

    Returns:
    the current indicator location

    TPTP 4.5.0 Platform Project
    Public API Specification