|
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.grapher.APIExample
public class APIExample
A sample implementation of the grapher and zoomslider apis.
The sample displays a cosine and a sine line graph on a graph canvas, along with
x and y sliders.
| Constructor Summary | |
|---|---|
APIExample()
|
|
| Method Summary | |
|---|---|
void |
createGrapher()
Intialize the Graphing. |
GraphSource |
createGraphSource(int type)
Create a new Test Graph Source. |
static void |
main(java.lang.String[] args)
Run this Graphing example. |
void |
newGraphShell()
Create the Graph Shell |
void |
setupComposite(org.eclipse.swt.widgets.Composite parent)
Setup the graph composite. |
void |
zoomSliderChanged(ZoomSliderEvent event)
A change in the zoom slider has occured. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public APIExample()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - standard command line parameters, not currently used
java.lang.Exception - if the graphing fails
public void setupComposite(org.eclipse.swt.widgets.Composite parent)
throws java.lang.Exception
parent - the parent composite
java.lang.Exception - if the setup failspublic void createGrapher()
public GraphSource createGraphSource(int type)
type - the type of graph source TestGraphSource.SINE_WAVE or TestGraphSource.COSINE_WAVE
public void newGraphShell()
throws java.lang.Exception
java.lang.Exception - if the graphingpublic void zoomSliderChanged(ZoomSliderEvent event)
ZoomSliderListener
zoomSliderChanged in interface ZoomSliderListenerevent - the ZoomSliderEvent associated with this changeZoomSliderEvent
|
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 | ||||||||