public class TransGraph extends AbstractGraph implements org.pentaho.ui.xul.impl.XulEventHandler, Redrawable, TabItemInterface, LogParentProvidedInterface, org.eclipse.swt.events.MouseListener, org.eclipse.swt.events.MouseMoveListener, org.eclipse.swt.events.MouseTrackListener, org.eclipse.swt.events.MouseWheelListener, org.eclipse.swt.events.KeyListener
| Modifier and Type | Field and Description |
|---|---|
protected TransHopMeta |
currentHop |
protected int |
currentMouseX |
protected int |
currentMouseY |
protected StepMeta |
currentStep |
List<StepSelectionListener> |
currentStepListeners |
org.eclipse.swt.widgets.Composite |
extraViewComposite |
org.eclipse.swt.custom.CTabFolder |
extraViewTabFolder |
static String |
LOAD_TAB |
protected NotePadMeta |
ni |
static String |
PAUSE_TEXT |
static String |
PREVIEW_TRANS |
static String |
RESUME_TEXT |
static String |
START_TEXT |
List<SelectedStepListener> |
stepListeners |
static String |
STOP_TEXT |
Trans |
trans |
static String |
TRANS_GRAPH_ENTRY_AGAIN |
static String |
TRANS_GRAPH_ENTRY_SNIFF |
TransGridDelegate |
transGridDelegate |
TransHistoryDelegate |
transHistoryDelegate |
TransLogDelegate |
transLogDelegate |
TransMetricsDelegate |
transMetricsDelegate |
TransPerfDelegate |
transPerfDelegate |
TransPreviewDelegate |
transPreviewDelegate |
canvas, hori, iconoffset, magnification, noteoffset, offset, vert, xulDomContainer, zoomLabel| Constructor and Description |
|---|
TransGraph(org.eclipse.swt.widgets.Composite parent,
Spoon spoon,
TransMeta transMeta) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllTabs() |
void |
addCurrentStepListener(StepSelectionListener stepSelectionListener) |
void |
addExtraView()
Add an extra view to the main composite SashForm
|
protected void |
addHop(StreamInterface stream) |
void |
addSelectedStepListener(SelectedStepListener selectedStepListener) |
void |
addStepToChain(PluginInterface stepPlugin,
boolean shift) |
void |
addUndoPosition(Object[] obj,
int[] pos,
Point[] prev,
Point[] curr) |
void |
addUndoPosition(Object[] obj,
int[] pos,
Point[] prev,
Point[] curr,
boolean nextAlso) |
void |
allignbottom() |
void |
allignleft() |
void |
allignright() |
void |
alligntop() |
void |
analyseImpact() |
boolean |
applyChanges() |
RowDistributionInterface |
askUserForCustomDistributionMethod() |
protected void |
asyncRedraw() |
void |
autoLayout()
Perform an automatic layout of a transformation based on "Force-based algorithms".
|
void |
browseVersionHistory() |
boolean |
canBeClosed()
Closes the content behind the tab, de-allocates resources.
|
boolean |
canHandleSave() |
void |
checkEmptyExtraView()
If the extra tab view at the bottom is empty, we close it.
|
void |
checkErrors()
Deprecated.
Deprecated as of 8.0. Seems unused; will be to remove in 8.1 (ccaspanello)
|
void |
checkSelectedSteps() |
void |
checkTrans() |
void |
clearSelection() |
void |
clearSettings() |
void |
clustering() |
void |
copies() |
void |
copies(StepMeta stepMeta) |
void |
copyStep() |
void |
debug(TransExecutionConfiguration executionConfiguration,
TransDebugMeta transDebugMeta) |
void |
debugFile() |
void |
deleteHop() |
void |
deleteNote() |
void |
delSelected() |
void |
delSelected(StepMeta stMeta) |
void |
detachStep() |
void |
disableHopsBetweenSelectedSteps() |
void |
disableHopsDownstream() |
void |
distributehorizontal() |
void |
distributevertical() |
void |
dumpLoggingRegistry() |
void |
dupeStep() |
void |
editDescription() |
void |
editDescription(StepMeta stepMeta) |
void |
editHop() |
void |
editNote() |
static boolean |
editProperties(TransMeta transMeta,
Spoon spoon,
Repository rep,
boolean allowDirectoryChange) |
static boolean |
editProperties(TransMeta transMeta,
Spoon spoon,
Repository rep,
boolean allowDirectoryChange,
TransDialog.Tabs currentTab) |
void |
editStep() |
void |
enableDisableHopsDownstream(boolean enabled) |
void |
enableHop() |
void |
enableHopsBetweenSelectedSteps() |
void |
enableHopsBetweenSelectedSteps(boolean enabled)
This method enables or disables all the hops between the selected steps.
|
void |
enableHopsDownstream() |
void |
errorHandling() |
void |
exploreDatabase() |
void |
fieldsAfter() |
void |
fieldsBefore() |
void |
fieldsLineage() |
protected TransHopMeta |
findHop(int x,
int y)
See if location (x,y) is on a line between two steps: the hop!
|
void |
flipHopDirection() |
void |
generateMappingToThisStep() |
TransHopMeta |
getCurrentHop() |
NotePadMeta |
getCurrentNote() |
StepMeta |
getCurrentStep() |
String[] |
getDropStrings(String str,
String sep) |
List<DatabaseImpact> |
getImpact() |
Point |
getLastMove() |
TransDebugMeta |
getLastTransDebugMeta() |
HasLogChannelInterface |
getLogChannelProvider() |
TransMeta |
getManagedObject() |
EngineMetaInterface |
getMeta() |
String |
getName() |
protected Point |
getOffset() |
Point |
getRealPosition(org.eclipse.swt.widgets.Composite canvas,
int x,
int y) |
List<CheckResultInterface> |
getRemarks() |
Spoon |
getSpoon() |
void |
getSQL() |
Map<StepMeta,String> |
getStepLogMap() |
org.pentaho.ui.xul.containers.XulToolbar |
getToolbar() |
Trans |
getTrans() |
org.eclipse.swt.graphics.Image |
getTransformationImage(org.eclipse.swt.graphics.Device device,
int x,
int y,
float magnificationFactor) |
TransMeta |
getTransMeta() |
AreaOwner |
getVisibleAreaOwner(int x,
int y) |
org.pentaho.ui.xul.XulDomContainer |
getXulDomContainer() |
void |
handleTransMetaChanges(TransMeta transMeta) |
boolean |
hasContentChanged() |
void |
hideStep() |
protected void |
hideToolTips() |
protected void |
initializeXulMenu(org.pentaho.ui.xul.dom.Document doc,
List<StepMeta> selection,
StepMeta stepMeta) |
boolean |
isExecutionResultsPaneVisible() |
boolean |
isHalting() |
boolean |
isImpactFinished() |
boolean |
isRunning() |
void |
keyPressed(org.eclipse.swt.events.KeyEvent e) |
void |
keyReleased(org.eclipse.swt.events.KeyEvent e) |
void |
lowerNote() |
void |
mouseDoubleClick(org.eclipse.swt.events.MouseEvent e) |
void |
mouseDown(org.eclipse.swt.events.MouseEvent e) |
void |
mouseEnter(org.eclipse.swt.events.MouseEvent arg0) |
void |
mouseExit(org.eclipse.swt.events.MouseEvent arg0) |
void |
mouseHover(org.eclipse.swt.events.MouseEvent e) |
void |
mouseMove(org.eclipse.swt.events.MouseEvent e) |
void |
mouseScrolled(org.eclipse.swt.events.MouseEvent e) |
void |
mouseUp(org.eclipse.swt.events.MouseEvent e) |
void |
newHopChoice() |
void |
newNote() |
void |
newProps() |
void |
newStep(String description) |
void |
openFile() |
void |
openMapping()
XUL dummy menu entry
|
void |
openMapping(StepMeta stepMeta,
int index)
Open the transformation mentioned in the mapping...
|
void |
paintControl(org.eclipse.swt.events.PaintEvent e) |
void |
partitioning() |
void |
paste() |
void |
pauseResume() |
void |
pauseTransformation() |
void |
preview() |
void |
previewFile() |
void |
printFile() |
void |
raiseNote() |
void |
renameStep(StepMeta stepMeta,
String stepname) |
void |
runOptionsTransformation() |
void |
runTransformation() |
void |
safeStop() |
void |
saveFile() |
void |
saveFileAs() |
void |
saveXMLFileToVfs() |
void |
selectAll() |
void |
selectInRect(TransMeta transMeta,
Rectangle rect)
Select all the steps in a certain (screen) rectangle
|
void |
setControlStates() |
void |
setCopies() |
void |
setCurrentHop(TransHopMeta currentHop) |
void |
setCurrentNote(NotePadMeta ni) |
void |
setCurrentStep(StepMeta currentStep) |
void |
setCustomRowDistribution() |
void |
setDistributes() |
void |
setHalting(boolean halting) |
void |
setImpact(List<DatabaseImpact> impact) |
void |
setImpactFinished(boolean impactHasRun) |
void |
setName(String arg0) |
void |
setRemarks(List<CheckResultInterface> remarks) |
void |
setRunning(boolean running) |
void |
setSpoon(Spoon spoon) |
void |
setStepLogMap(Map<StepMeta,String> stepLogMap) |
void |
settings() |
void |
setToolbar(org.pentaho.ui.xul.containers.XulToolbar toolbar) |
void |
setTrans(Trans trans) |
void |
setTransMeta(TransMeta transMeta) |
void |
setXulDomContainer(org.pentaho.ui.xul.XulDomContainer xulDomContainer) |
int |
showChangedWarning() |
void |
showExecutionResults() |
void |
showLastPreviewResults() |
void |
showPreview(TransDebugMeta transDebugMeta,
StepDebugMeta stepDebugMeta,
RowMetaInterface rowBufferMeta,
List<Object[]> rowBuffer) |
void |
showSaveFileMessage() |
void |
showTooltip(String label,
org.eclipse.swt.graphics.Image image,
int screenX,
int screenY) |
void |
snaptogrid() |
void |
sniff(boolean input,
boolean output,
boolean error) |
void |
sniffError() |
void |
sniffInput() |
void |
sniffOutput() |
void |
start(TransExecutionConfiguration executionConfiguration) |
void |
stop() |
protected void |
stopRedrawTimer() |
void |
stopTransformation() |
void |
transReplay() |
dispose, doRightClickSelection, forceFocus, getArea, getChangedWarning, getOffset, getThumb, magnifyPoint, real2screen, redraw, screen2real, setFocus, setZoomLabel, showChangedWarning, sign, zoom100Percent, zoomIn, zoomOutchanged, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setLayout, setLayoutDeferred, setTabListcomputeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBaraddControlListener, 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, updateaddDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitredrawgetChangedWarning, setFocuspublic static final String LOAD_TAB
public static final String PREVIEW_TRANS
public static final String START_TEXT
public static final String PAUSE_TEXT
public static final String RESUME_TEXT
public static final String STOP_TEXT
public static final String TRANS_GRAPH_ENTRY_SNIFF
public static final String TRANS_GRAPH_ENTRY_AGAIN
public Trans trans
protected int currentMouseX
protected int currentMouseY
protected NotePadMeta ni
protected TransHopMeta currentHop
protected StepMeta currentStep
public org.eclipse.swt.widgets.Composite extraViewComposite
public org.eclipse.swt.custom.CTabFolder extraViewTabFolder
public TransLogDelegate transLogDelegate
public TransGridDelegate transGridDelegate
public TransHistoryDelegate transHistoryDelegate
public TransPerfDelegate transPerfDelegate
public TransMetricsDelegate transMetricsDelegate
public TransPreviewDelegate transPreviewDelegate
public List<SelectedStepListener> stepListeners
public List<StepSelectionListener> currentStepListeners
public void setCurrentNote(NotePadMeta ni)
public NotePadMeta getCurrentNote()
public TransHopMeta getCurrentHop()
public void setCurrentHop(TransHopMeta currentHop)
public StepMeta getCurrentStep()
public void setCurrentStep(StepMeta currentStep)
public void addSelectedStepListener(SelectedStepListener selectedStepListener)
public void addCurrentStepListener(StepSelectionListener stepSelectionListener)
public void mouseDoubleClick(org.eclipse.swt.events.MouseEvent e)
mouseDoubleClick in interface org.eclipse.swt.events.MouseListenerpublic void mouseDown(org.eclipse.swt.events.MouseEvent e)
mouseDown in interface org.eclipse.swt.events.MouseListenerpublic void mouseUp(org.eclipse.swt.events.MouseEvent e)
mouseUp in interface org.eclipse.swt.events.MouseListenerpublic void mouseMove(org.eclipse.swt.events.MouseEvent e)
mouseMove in interface org.eclipse.swt.events.MouseMoveListenerpublic void mouseHover(org.eclipse.swt.events.MouseEvent e)
mouseHover in interface org.eclipse.swt.events.MouseTrackListenerpublic void mouseScrolled(org.eclipse.swt.events.MouseEvent e)
mouseScrolled in interface org.eclipse.swt.events.MouseWheelListenerprotected void addHop(StreamInterface stream)
public void mouseEnter(org.eclipse.swt.events.MouseEvent arg0)
mouseEnter in interface org.eclipse.swt.events.MouseTrackListenerpublic void mouseExit(org.eclipse.swt.events.MouseEvent arg0)
mouseExit in interface org.eclipse.swt.events.MouseTrackListenerprotected void asyncRedraw()
protected void hideToolTips()
public void selectInRect(TransMeta transMeta, Rectangle rect)
rect - The selection area as a rectanglepublic void keyPressed(org.eclipse.swt.events.KeyEvent e)
keyPressed in interface org.eclipse.swt.events.KeyListenerpublic void keyReleased(org.eclipse.swt.events.KeyEvent e)
keyReleased in interface org.eclipse.swt.events.KeyListenerpublic void clearSettings()
public Point getRealPosition(org.eclipse.swt.widgets.Composite canvas, int x, int y)
protected TransHopMeta findHop(int x, int y)
x - y - public void hideStep()
public void checkSelectedSteps()
public void detachStep()
public void generateMappingToThisStep()
public void partitioning()
public void clustering()
public void errorHandling()
public void newHopChoice()
public void editStep()
public void editDescription()
public void setDistributes()
public void setCustomRowDistribution()
public RowDistributionInterface askUserForCustomDistributionMethod()
public void setCopies()
public void copies()
public void copies(StepMeta stepMeta)
public void dupeStep()
public void copyStep()
public void delSelected()
public void fieldsBefore()
public void fieldsAfter()
public void fieldsLineage()
public void editHop()
public void flipHopDirection()
public void enableHop()
public void deleteHop()
public void enableHopsBetweenSelectedSteps()
public void disableHopsBetweenSelectedSteps()
public void enableHopsBetweenSelectedSteps(boolean enabled)
public void enableHopsDownstream()
public void disableHopsDownstream()
public void enableDisableHopsDownstream(boolean enabled)
public void editNote()
public void deleteNote()
public void raiseNote()
public void lowerNote()
public void newNote()
public void paste()
public void settings()
public void newStep(String description)
public void selectAll()
public void clearSelection()
protected void initializeXulMenu(org.pentaho.ui.xul.dom.Document doc,
List<StepMeta> selection,
StepMeta stepMeta)
throws KettleException
KettleExceptionpublic void showTooltip(String label, org.eclipse.swt.graphics.Image image, int screenX, int screenY)
public AreaOwner getVisibleAreaOwner(int x, int y)
public void delSelected(StepMeta stMeta)
public void editDescription(StepMeta stepMeta)
public void paintControl(org.eclipse.swt.events.PaintEvent e)
public org.eclipse.swt.graphics.Image getTransformationImage(org.eclipse.swt.graphics.Device device,
int x,
int y,
float magnificationFactor)
protected Point getOffset()
getOffset in class AbstractGraphpublic void snaptogrid()
public void allignleft()
public void allignright()
public void alligntop()
public void allignbottom()
public void distributehorizontal()
public void distributevertical()
public void preview()
public void newProps()
public EngineMetaInterface getMeta()
getMeta in interface TabItemInterfacepublic void setTransMeta(TransMeta transMeta)
transMeta - the transMeta to setpublic void addUndoPosition(Object[] obj, int[] pos, Point[] prev, Point[] curr, boolean nextAlso)
public boolean applyChanges()
throws KettleException
applyChanges in interface TabItemInterfaceKettleExceptionpublic boolean canBeClosed()
TabItemInterfacecanBeClosed in interface TabItemInterfacepublic TransMeta getManagedObject()
getManagedObject in interface TabItemInterfacepublic boolean hasContentChanged()
hasContentChanged in interface TabItemInterfacepublic List<CheckResultInterface> getRemarks()
public void setRemarks(List<CheckResultInterface> remarks)
public List<DatabaseImpact> getImpact()
public void setImpact(List<DatabaseImpact> impact)
public boolean isImpactFinished()
public void setImpactFinished(boolean impactHasRun)
public Point getLastMove()
public static boolean editProperties(TransMeta transMeta, Spoon spoon, Repository rep, boolean allowDirectoryChange)
public static boolean editProperties(TransMeta transMeta, Spoon spoon, Repository rep, boolean allowDirectoryChange, TransDialog.Tabs currentTab)
public void openFile()
public void saveFile()
throws KettleException
KettleExceptionpublic void saveFileAs()
throws KettleException
KettleExceptionpublic void saveXMLFileToVfs()
public void printFile()
public void runTransformation()
public void runOptionsTransformation()
public void pauseTransformation()
public void stopTransformation()
public void previewFile()
public void debugFile()
public void transReplay()
public void checkTrans()
public void analyseImpact()
public void getSQL()
public void exploreDatabase()
public boolean isExecutionResultsPaneVisible()
public void showExecutionResults()
public void browseVersionHistory()
public void checkEmptyExtraView()
public org.pentaho.ui.xul.containers.XulToolbar getToolbar()
public void setToolbar(org.pentaho.ui.xul.containers.XulToolbar toolbar)
toolbar - the toolbar to setpublic void addExtraView()
@Deprecated public void checkErrors()
public void start(TransExecutionConfiguration executionConfiguration) throws KettleException
KettleExceptionpublic void showSaveFileMessage()
public void addAllTabs()
public void debug(TransExecutionConfiguration executionConfiguration, TransDebugMeta transDebugMeta)
public void showPreview(TransDebugMeta transDebugMeta, StepDebugMeta stepDebugMeta, RowMetaInterface rowBufferMeta, List<Object[]> rowBuffer)
public void stop()
public void safeStop()
public void pauseResume()
public void setControlStates()
setControlStates in interface TabItemInterfaceprotected void stopRedrawTimer()
public void showLastPreviewResults()
public void openMapping()
public void openMapping(StepMeta stepMeta, int index)
public boolean isRunning()
public void setRunning(boolean running)
running - the running to setpublic TransDebugMeta getLastTransDebugMeta()
public boolean isHalting()
public void setHalting(boolean halting)
halting - the halting to setpublic void setStepLogMap(Map<StepMeta,String> stepLogMap)
stepLogMap - the stepLogMap to setpublic void dumpLoggingRegistry()
public HasLogChannelInterface getLogChannelProvider()
getLogChannelProvider in interface LogParentProvidedInterfacepublic void setTrans(Trans trans)
public void sniffInput()
public void sniffOutput()
public void sniffError()
public void sniff(boolean input,
boolean output,
boolean error)
public String getName()
getName in interface org.pentaho.ui.xul.impl.XulEventHandlerpublic org.pentaho.ui.xul.XulDomContainer getXulDomContainer()
getXulDomContainer in interface org.pentaho.ui.xul.impl.XulEventHandlerpublic void setName(String arg0)
setName in interface org.pentaho.ui.xul.impl.XulEventHandlerpublic void setXulDomContainer(org.pentaho.ui.xul.XulDomContainer xulDomContainer)
setXulDomContainer in interface org.pentaho.ui.xul.impl.XulEventHandlerpublic boolean canHandleSave()
canHandleSave in interface TabItemInterfacepublic int showChangedWarning()
throws KettleException
showChangedWarning in interface TabItemInterfaceshowChangedWarning in class AbstractGraphKettleExceptionpublic void autoLayout()
public void handleTransMetaChanges(TransMeta transMeta) throws KettleException
KettleExceptionpublic void addStepToChain(PluginInterface stepPlugin, boolean shift)
public Spoon getSpoon()
public void setSpoon(Spoon spoon)
public TransMeta getTransMeta()
public Trans getTrans()
Copyright © 2019 Hitachi Vantara. All rights reserved.