public class KnowledgeFlowApp.MainKFPerspective extends javax.swing.JPanel implements KnowledgeFlowApp.KFPerspective
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
MainKFPerspective() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsInstances()
Returns true if this perspective accepts instances
|
void |
addTab(java.lang.String tabTitle) |
weka.gui.beans.KnowledgeFlowApp.BeanLayout |
getBeanLayout(int index) |
weka.gui.beans.KnowledgeFlowApp.BeanLayout |
getCurrentBeanLayout() |
weka.gui.beans.KnowledgeFlowApp.KFLogPanel |
getCurrentLogPanel() |
int |
getCurrentTabIndex() |
int |
getCurrentZoomSetting() |
boolean |
getEditedStatus()
Get the edited status of the currently selected tab.
|
boolean |
getEditedStatus(int index)
Get the edited status of the tab at the supplied index.
|
Environment |
getEnvironmentSettings() |
Environment |
getEnvironmentSettings(int index) |
boolean |
getExecuting() |
boolean |
getExecuting(int index) |
weka.gui.beans.KnowledgeFlowApp.RunThread |
getExecutionThread() |
weka.gui.beans.KnowledgeFlowApp.RunThread |
getExecutionThread(int index) |
java.io.File |
getFlowFile() |
java.io.File |
getFlowFile(int index) |
weka.gui.beans.KnowledgeFlowApp.KFLogPanel |
getLogPanel(int index) |
int |
getNumTabs() |
javax.swing.Icon |
getPerspectiveIcon()
Get the icon for this perspective
|
java.lang.String |
getPerspectiveTipText()
Get the tool tip text for this perspective
|
java.lang.String |
getPerspectiveTitle()
Get the title of this perspective
|
java.util.Vector<java.lang.Object> |
getSelectedBeans() |
java.util.Vector<java.lang.Object> |
getSelectedBeans(int index) |
javax.swing.JTabbedPane |
getTabbedPane() |
java.lang.String |
getTabTitle(int index) |
java.util.Stack<java.io.File> |
getUndoBuffer() |
java.util.Stack<java.io.File> |
getUndoBuffer(int index) |
int |
getZoomSetting(int index) |
void |
removeTab(int tabIndex) |
void |
setActive(boolean active)
Set active status of this perspective.
|
void |
setActiveTab(int index) |
void |
setCurrentZoomSetting(int z) |
void |
setEditedStatus(boolean status) |
void |
setEditedStatus(int index,
boolean status) |
void |
setExecuting(boolean executing) |
void |
setExecuting(int index,
boolean executing) |
void |
setExecutionThread(int index,
weka.gui.beans.KnowledgeFlowApp.RunThread execution) |
void |
setExecutionThread(weka.gui.beans.KnowledgeFlowApp.RunThread execution) |
void |
setFlowFile(java.io.File flowFile) |
void |
setFlowFile(int index,
java.io.File flowFile) |
void |
setInstances(Instances insts)
Set instances (if the perspective accepts them)
|
void |
setLoaded(boolean loaded)
Set whether this perspective is "loaded" - i.e.
|
void |
setMainKFPerspective(KnowledgeFlowApp.MainKFPerspective main)
Set a reference to the main KnowledgeFlow perspective - i.e.
|
void |
setSelectedBeans(int index,
java.util.Vector<java.lang.Object> beans) |
void |
setSelectedBeans(java.util.Vector<java.lang.Object> beans) |
void |
setTabTitle(int index,
java.lang.String title) |
void |
setTabTitle(java.lang.String title) |
void |
setUndoBuffer(int index,
java.util.Stack<java.io.File> buffer) |
void |
setUndoBuffer(java.util.Stack<java.io.File> buffer) |
void |
setZoomSetting(int index,
int z) |
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
addAncestorListener, 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, update
add, 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, validate
action, 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, transferFocusUpCycle
public void setActive(boolean active)
KnowledgeFlowApp.KFPerspective
setActive
in interface KnowledgeFlowApp.KFPerspective
active
- true if this perspective is the active onepublic void setLoaded(boolean loaded)
KnowledgeFlowApp.KFPerspective
setLoaded
in interface KnowledgeFlowApp.KFPerspective
loaded
- true if the perspective is available in the perspective
toolbar of the KnowledgeFlowpublic void setMainKFPerspective(KnowledgeFlowApp.MainKFPerspective main)
KnowledgeFlowApp.KFPerspective
setMainKFPerspective
in interface KnowledgeFlowApp.KFPerspective
main
- the main KnowledgeFlow perspective.public javax.swing.JTabbedPane getTabbedPane()
public int getNumTabs()
public java.lang.String getTabTitle(int index)
public int getCurrentTabIndex()
public weka.gui.beans.KnowledgeFlowApp.KFLogPanel getCurrentLogPanel()
public weka.gui.beans.KnowledgeFlowApp.KFLogPanel getLogPanel(int index)
public weka.gui.beans.KnowledgeFlowApp.BeanLayout getCurrentBeanLayout()
public weka.gui.beans.KnowledgeFlowApp.BeanLayout getBeanLayout(int index)
public int getCurrentZoomSetting()
public int getZoomSetting(int index)
public void setCurrentZoomSetting(int z)
public void setZoomSetting(int index, int z)
public void setActiveTab(int index)
public void setExecuting(boolean executing)
public void setExecuting(int index, boolean executing)
public boolean getExecuting()
public boolean getExecuting(int index)
public void setExecutionThread(weka.gui.beans.KnowledgeFlowApp.RunThread execution)
public void setExecutionThread(int index, weka.gui.beans.KnowledgeFlowApp.RunThread execution)
public weka.gui.beans.KnowledgeFlowApp.RunThread getExecutionThread()
public weka.gui.beans.KnowledgeFlowApp.RunThread getExecutionThread(int index)
public java.io.File getFlowFile()
public java.io.File getFlowFile(int index)
public void setFlowFile(java.io.File flowFile)
public void setFlowFile(int index, java.io.File flowFile)
public void setTabTitle(java.lang.String title)
public void setTabTitle(int index, java.lang.String title)
public void setEditedStatus(boolean status)
public void setEditedStatus(int index, boolean status)
public boolean getEditedStatus()
public boolean getEditedStatus(int index)
index
- the index of the tab to checkpublic void setUndoBuffer(java.util.Stack<java.io.File> buffer)
public void setUndoBuffer(int index, java.util.Stack<java.io.File> buffer)
public java.util.Stack<java.io.File> getUndoBuffer()
public java.util.Stack<java.io.File> getUndoBuffer(int index)
public java.util.Vector<java.lang.Object> getSelectedBeans()
public java.util.Vector<java.lang.Object> getSelectedBeans(int index)
public void setSelectedBeans(java.util.Vector<java.lang.Object> beans)
public void setSelectedBeans(int index, java.util.Vector<java.lang.Object> beans)
public Environment getEnvironmentSettings()
public Environment getEnvironmentSettings(int index)
public void setInstances(Instances insts)
KnowledgeFlowApp.KFPerspective
setInstances
in interface KnowledgeFlowApp.KFPerspective
insts
- the instancespublic boolean acceptsInstances()
KnowledgeFlowApp.KFPerspective
acceptsInstances
in interface KnowledgeFlowApp.KFPerspective
public java.lang.String getPerspectiveTitle()
getPerspectiveTitle
in interface KnowledgeFlowApp.KFPerspective
public java.lang.String getPerspectiveTipText()
getPerspectiveTipText
in interface KnowledgeFlowApp.KFPerspective
public javax.swing.Icon getPerspectiveIcon()
getPerspectiveIcon
in interface KnowledgeFlowApp.KFPerspective
public void removeTab(int tabIndex)
public void addTab(java.lang.String tabTitle)