Package org.pentaho.di.ui.spoon
Class AbstractGraph
java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.pentaho.di.ui.spoon.AbstractGraph
- All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable
- Direct Known Subclasses:
JobGraph,TransGraph
public abstract class AbstractGraph
extends org.eclipse.swt.widgets.Composite
The beginnings of a common graph object, used by JobGraph and TransGraph to share common behaviors.
- Author:
- Will Gorman (wgorman@pentaho.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.eclipse.swt.widgets.Canvasprotected org.eclipse.swt.widgets.ScrollBarprotected org.pentaho.di.core.gui.Pointprotected floatprotected org.pentaho.di.core.gui.Pointprotected org.pentaho.di.core.gui.Pointprotected org.eclipse.swt.widgets.ScrollBarprotected org.pentaho.ui.xul.XulDomContainerprotected org.eclipse.swt.widgets.ComboFields inherited from class org.eclipse.swt.widgets.Composite
embeddedHandleFields inherited from class org.eclipse.swt.widgets.Widget
handle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()protected <T extends org.pentaho.di.core.gui.GUIPositionInterface>
voiddoRightClickSelection(T clicked, List<T> selection) booleanprotected org.pentaho.di.core.gui.PointgetArea()Gets the ChangedWarning for the given TabItemInterface class.protected abstract org.pentaho.di.core.gui.Pointprotected org.pentaho.di.core.gui.PointgetOffset(org.pentaho.di.core.gui.Point thumb, org.pentaho.di.core.gui.Point area) protected org.pentaho.di.core.gui.PointgetThumb(org.pentaho.di.core.gui.Point area, org.pentaho.di.core.gui.Point transMax) protected org.pentaho.di.core.gui.PointmagnifyPoint(org.pentaho.di.core.gui.Point p) org.pentaho.di.core.gui.Pointreal2screen(int x, int y) voidredraw()org.pentaho.di.core.gui.Pointscreen2real(int x, int y) booleansetFocus()protected voidintintshowChangedWarning(String fileName) Show the ChangedWarning and return the users selectionintsign(int n) voidvoidzoomIn()voidzoomOut()Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setLayout, setLayoutDeferred, setTabListMethods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBarMethods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, updateMethods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
-
Field Details
-
offset
protected org.pentaho.di.core.gui.Point offset -
iconoffset
protected org.pentaho.di.core.gui.Point iconoffset -
noteoffset
protected org.pentaho.di.core.gui.Point noteoffset -
vert
protected org.eclipse.swt.widgets.ScrollBar vert -
hori
protected org.eclipse.swt.widgets.ScrollBar hori -
canvas
protected org.eclipse.swt.widgets.Canvas canvas -
magnification
protected float magnification -
zoomLabel
protected org.eclipse.swt.widgets.Combo zoomLabel -
xulDomContainer
protected org.pentaho.ui.xul.XulDomContainer xulDomContainer
-
-
Constructor Details
-
AbstractGraph
public AbstractGraph(org.eclipse.swt.widgets.Composite parent, int style)
-
-
Method Details
-
getOffset
protected abstract org.pentaho.di.core.gui.Point getOffset() -
getOffset
protected org.pentaho.di.core.gui.Point getOffset(org.pentaho.di.core.gui.Point thumb, org.pentaho.di.core.gui.Point area) -
magnifyPoint
protected org.pentaho.di.core.gui.Point magnifyPoint(org.pentaho.di.core.gui.Point p) -
getThumb
protected org.pentaho.di.core.gui.Point getThumb(org.pentaho.di.core.gui.Point area, org.pentaho.di.core.gui.Point transMax) -
sign
public int sign(int n) -
getArea
protected org.pentaho.di.core.gui.Point getArea() -
setZoomLabel
protected void setZoomLabel() -
doRightClickSelection
protected <T extends org.pentaho.di.core.gui.GUIPositionInterface> void doRightClickSelection(T clicked, List<T> selection) -
redraw
public void redraw()- Overrides:
redrawin classorg.eclipse.swt.widgets.Control
-
zoomIn
public void zoomIn() -
zoomOut
public void zoomOut() -
zoom100Percent
public void zoom100Percent() -
screen2real
public org.pentaho.di.core.gui.Point screen2real(int x, int y) -
real2screen
public org.pentaho.di.core.gui.Point real2screen(int x, int y) -
setFocus
public boolean setFocus()- Overrides:
setFocusin classorg.eclipse.swt.widgets.Composite
-
forceFocus
public boolean forceFocus()- Overrides:
forceFocusin classorg.eclipse.swt.widgets.Control
-
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
Show the ChangedWarning and return the users selection- Returns:
- int Value of SWT.YES, SWT.NO, SWT.CANCEL
- Throws:
org.pentaho.di.core.exception.KettleException
-
showChangedWarning
public int showChangedWarning() throws org.pentaho.di.core.exception.KettleException- Throws:
org.pentaho.di.core.exception.KettleException
-
dispose
public void dispose()- Overrides:
disposein classorg.eclipse.swt.widgets.Widget
-