org.pentaho.di.ui.spoon
Class AbstractGraph

java.lang.Object
  extended by Composite
      extended by org.pentaho.di.ui.spoon.AbstractGraph
Direct Known Subclasses:
JobGraph, TransGraph

public abstract class AbstractGraph
extends Composite

The beginnings of a common graph object, used by JobGraph and TransGraph to share common behaviors.

Author:
Will Gorman (wgorman@pentaho.com)

Constructor Summary
AbstractGraph(Composite parent, int style)
           
 
Method Summary
 void dispose()
           
 boolean forceFocus()
           
 ChangedWarningInterface getChangedWarning()
          Gets the ChangedWarning for the given TabItemInterface class.
 Point real2screen(int x, int y)
           
 void redraw()
           
 Point screen2real(int x, int y)
           
 int showChangedWarning()
           
 int showChangedWarning(String fileName)
          Show the ChangedWarning and return the users selection
 int sign(int n)
           
 void zoom100Percent()
           
 void zoomIn()
           
 void zoomOut()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGraph

public AbstractGraph(Composite parent,
                     int style)
Method Detail

sign

public int sign(int n)

redraw

public void redraw()

zoomIn

public void zoomIn()

zoomOut

public void zoomOut()

zoom100Percent

public void zoom100Percent()

screen2real

public Point screen2real(int x,
                         int y)

real2screen

public Point real2screen(int x,
                         int y)

forceFocus

public boolean forceFocus()

getChangedWarning

public ChangedWarningInterface getChangedWarning()
Gets the ChangedWarning for the given TabItemInterface class. This should be overridden by a given TabItemInterface class to support the changed warning dialog.

Returns:
ChangedWarningInterface The class that provides the dialog and return value

showChangedWarning

public int showChangedWarning(String fileName)
                       throws KettleException
Show the ChangedWarning and return the users selection

Returns:
int Value of SWT.YES, SWT.NO, SWT.CANCEL
Throws:
KettleException

showChangedWarning

public int showChangedWarning()
                       throws KettleException
Throws:
KettleException

dispose

public void dispose()