public class VisibleLayout extends JPanel
JComponent.AccessibleJComponentComponent.BaselineResizeBehaviorTOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
VisibleLayout(MainKFPerspective mainPerspective)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectSteps(StepManagerImpl source,
StepManagerImpl target,
String connectionType)
Connect the supplied source step to the supplied target step using the
specified connection type
|
String |
environmentSubstitute(String source) |
void |
executeFlow(boolean sequential)
Execute the flow managed by this layout
|
boolean |
getEdited()
Get whether this flow has been altered since the last save operation
|
Environment |
getEnvironment()
Get the environment variables being used by this layout
|
File |
getFilePath()
Get the current path (if any) of the flow being edited in this layout
|
Flow |
getFlow()
Get the flow being edited by this layout
|
FlowExecutor |
getFlowExecutor()
Get the
FlowExecutor being used for execution of this flow |
weka.gui.knowledgeflow.VisibleLayout.KFLogPanel |
getLogPanel()
Get the log panel in use by this layout
|
int |
getZoomSetting()
Get the current zoom setting for this layout
|
boolean |
isExecuting()
Returns true if the flow managed by this layout is currently executing
|
static String |
serializeStepsToJSON(List<StepVisual> steps,
String name)
Utility method to serialize a list of steps (encapsulated in StepVisuals)
to a JSON flow.
|
void |
setEdited(boolean edited)
Set the edited status of this flow
|
void |
setEnvironment(Environment env)
Set the environment variables to use with this layout
|
void |
setFilePath(File path)
Set the file path for the flow being edited by this layout
|
void |
setFlow(Flow flow)
Set the flow to edit in this layout
|
void |
setFlowExecutor(FlowExecutor executor)
Set the
FlowExcecutor to use for executing the flow |
void |
setZoomSetting(int zoom)
Set the current zoom setting for this layout
|
void |
stopFlow()
Stop the flow from executing
|
getAccessibleContext, getUI, getUIClassID, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic VisibleLayout(MainKFPerspective mainPerspective)
mainPerspective - the main Knowledge Flow perspectivepublic Flow getFlow()
public void setFlow(Flow flow)
flow - the flow to edit in this layoutpublic void connectSteps(StepManagerImpl source, StepManagerImpl target, String connectionType)
source - the StepManager instance managing the source steptarget - the StepManager instance managing the target stepconnectionType - the connection type to usepublic Environment getEnvironment()
public void setEnvironment(Environment env)
env - the environment variables to usepublic FlowExecutor getFlowExecutor()
FlowExecutor being used for execution of this flowFlowExecutor in use by this layoutpublic void setFlowExecutor(FlowExecutor executor)
FlowExcecutor to use for executing the flowexecutor - the FlowExecutor to use for executing the flow in
this layoutpublic File getFilePath()
public void setFilePath(File path)
path - the path on disk for the flow being editedpublic weka.gui.knowledgeflow.VisibleLayout.KFLogPanel getLogPanel()
public int getZoomSetting()
public void setZoomSetting(int zoom)
zoom - the current zoom settingpublic boolean getEdited()
public void setEdited(boolean edited)
edited - true if the flow has been alteredpublic boolean isExecuting()
public void executeFlow(boolean sequential)
throws WekaException
sequential - true if the flow's start points are to be launched
sequentially rather than in parallelWekaException - if a problem occurspublic void stopFlow()
public static String serializeStepsToJSON(List<StepVisual> steps, String name) throws WekaException
steps - the steps to serializename - the name to set in the encapsulating Flow before serializingWekaException - if a problem occursCopyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.