public class VisualizePanel extends PrintablePanel
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
VisualizePanel()
Constructor
|
VisualizePanel(VisualizePanelListener ls)
This constructor allows a VisualizePanelListener to be set.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(java.awt.event.ActionListener act)
Add a listener for this visualize panel
|
void |
addPlot(PlotData2D newPlot)
Set a new plot to the visualize panel
|
void |
applySettings(Settings settings,
java.lang.String ownerID)
Apply settings
|
int |
getCIndex()
Get the index of the attribute selected for coloring
|
Instances |
getInstances()
Get the master plot's instances
|
java.lang.String |
getName()
Returns the name associated with this plot.
|
weka.gui.visualize.VisualizePanel.PlotPanel |
getPlotPanel()
Returns the underlying plot panel.
|
boolean |
getShowAttBars()
Gets whether or not attribute bars are being displayed.
|
boolean |
getShowClassPanel()
Gets whether or not the class panel is being displayed.
|
int |
getSIndex()
Get the index of the shape selected for creating splits.
|
int |
getXIndex()
Get the index of the attribute on the x axis
|
int |
getYIndex()
Get the index of the attribute on the y axis
|
static void |
main(java.lang.String[] args)
Main method for testing this class
|
void |
removeAllPlots()
Removes all the plots.
|
void |
setColourIndex(int index)
Sets the index used for colouring.
|
void |
setColourIndex(int index,
boolean enableCombo)
Set the index for colouring.
|
void |
setInstances(Instances inst)
Tells the panel to use a new set of instances.
|
void |
setLog(Logger newLog)
Sets the Logger to receive informational messages
|
void |
setMasterPlot(PlotData2D newPlot)
Set the master plot for the visualize panel
|
void |
setName(java.lang.String plotName)
Set a name for this plot
|
void |
setShapes(java.util.ArrayList<java.util.ArrayList<java.lang.Double>> l)
This will set the shapes for the instances.
|
void |
setShowAttBars(boolean sab)
Set whether the attribute bars should be shown or not.
|
void |
setShowClassPanel(boolean scp)
Set whether the class panel should be shown or not.
|
void |
setSIndex(int index)
Set the shape for creating splits.
|
void |
setUpComboBoxes(Instances inst)
initializes the comboboxes based on the data
|
void |
setXIndex(int index)
Set the index of the attribute for the x axis
|
void |
setYIndex(int index)
Set the index of the attribute for the y axis
|
getSaveDialogTitle, getWriter, getWriters, getXScale, getYScale, saveComponent, setSaveDialogTitle, setScalegetAccessibleContext, 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, 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, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic VisualizePanel(VisualizePanelListener ls)
ls - the listener to usepublic VisualizePanel()
public void setLog(Logger newLog)
newLog - the Logger that will now get info messagespublic void setShowAttBars(boolean sab)
sab - false if attribute bars are not to be displayed.public boolean getShowAttBars()
public void setShowClassPanel(boolean scp)
scp - false if class panel is not to be displayedpublic boolean getShowClassPanel()
public void applySettings(Settings settings, java.lang.String ownerID)
settings - the settings to applyownerID - the ID of the owner perspective, panel etc. to use when
looking up settingspublic void setColourIndex(int index,
boolean enableCombo)
index - the index of the attribute to use for colouringenableCombo - false if the colouring combo box should be disabledpublic void setColourIndex(int index)
index - the index of the attribute to use for colouringpublic void setXIndex(int index)
throws java.lang.Exception
index - the index for the x axisjava.lang.Exception - if index is out of range.public int getXIndex()
public void setYIndex(int index)
throws java.lang.Exception
index - the index for the y axisjava.lang.Exception - if index is out of range.public int getYIndex()
public int getCIndex()
public int getSIndex()
public void setSIndex(int index)
throws java.lang.Exception
index - The index of the shape.java.lang.Exception - if index is out of range.public void addActionListener(java.awt.event.ActionListener act)
act - an ActionListenerpublic void setName(java.lang.String plotName)
setName in class java.awt.ComponentplotName - the name for the plotpublic java.lang.String getName()
getName in class java.awt.Componentpublic Instances getInstances()
public void setShapes(java.util.ArrayList<java.util.ArrayList<java.lang.Double>> l)
l - A list of the shapes, providing that the objects in the lists are
non editable the data will be kept intact.public void setInstances(Instances inst)
inst - a set of Instancespublic void setUpComboBoxes(Instances inst)
inst - the data to base the combobox-setup onpublic void removeAllPlots()
public void setMasterPlot(PlotData2D newPlot) throws java.lang.Exception
newPlot - the new master plotjava.lang.Exception - if the master plot could not be setpublic void addPlot(PlotData2D newPlot) throws java.lang.Exception
newPlot - the new plot to addjava.lang.Exception - if the plot could not be addedpublic weka.gui.visualize.VisualizePanel.PlotPanel getPlotPanel()
public static void main(java.lang.String[] args)
args - the commandline parameters