|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
adams.gui.core.BasePanel
adams.gui.visualization.core.PaintablePanel
adams.gui.visualization.container.DataContainerPanel<T,M>
adams.gui.visualization.container.DataContainerPanelWithSidePanel<Instance,InstanceContainerManager>
adams.gui.visualization.instance.InstancePanel
public class InstancePanel
A panel for displaying instances.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected boolean |
m_AdjustToVisibleData
whether to adjust to visible data or not. |
protected CoordinatesPaintlet |
m_CoordinatesPaintlet
paintlet for drawing the X-axis. |
protected InstanceContainerList |
m_InstanceContainerList
the instance ID list. |
protected InstanceLinePaintlet |
m_InstancePaintlet
paintlet for drawing the graph. |
protected InstancePointHitDetector |
m_InstancePointHitDetector
the hit detector for the tooltip. |
protected InstanceZoomOverviewPanel |
m_PanelZoomOverview
the zoom overview panel. |
protected int |
m_ToolTipMaxColumns
the maximum number of columns for the tooltip. |
protected Undo |
m_Undo
the undo manager. |
| Fields inherited from class adams.gui.visualization.container.DataContainerPanelWithSidePanel |
|---|
m_FirstRevalidate, m_SidePanel, m_SplitPane |
| Fields inherited from class adams.gui.visualization.container.DataContainerPanel |
|---|
m_DatabaseConnection, m_DataChangeListeners, m_Manager, m_PanelProperties, m_PlotPanel, m_PlotWrapperPanel, m_StatusMessageHandler, m_Title |
| Fields inherited from class adams.gui.visualization.core.PaintablePanel |
|---|
m_Paintlets |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
InstancePanel()
Initializes the panel. |
|
InstancePanel(String title)
Initializes the panel. |
|
| Method Summary | |
|---|---|
protected boolean |
canPaint(Graphics g)
Returns true if the paintlets can be executed. |
void |
cleanUp()
Cleans up data structures, frees up memory. |
void |
customizePopupMenu(MouseEvent e,
JPopupMenu menu)
Optional customizing of the menu that is about to be popped up. |
boolean |
getAdjustToVisibleData()
Returns whether the display is adjusted to only the visible spectrums or all of them. |
JPopupMenu |
getContainerListPopupMenu(ContainerTable<InstanceContainerManager,InstanceContainer> table,
int row)
Returns a popup menu for the table of the spectrum list. |
InstanceLinePaintlet |
getContainerPaintlet()
Returns the paintlet used for painting the containers. |
protected AbstractDatabaseConnection |
getDefaultDatabaseConnection()
Returns the default database connection. |
InstanceContainerList |
getInstanceContainerList()
Returns the panel with the instance list. |
InstanceLinePaintlet |
getInstancePaintlet()
Returns the paintlet for painting the instance. |
weka.core.Instances |
getInstances()
Returns the currently visible instances. |
AbstractScriptingEngine |
getScriptingEngine()
Returns the current scripting engine, can be null. |
ContainerManager |
getSequenceManager()
Returns the current container manager. |
Undo |
getUndo()
Returns the current undo manager, can be null. |
protected void |
initGUI()
Initializes the GUI. |
protected void |
initialize()
Initializes the members. |
boolean |
isUndoSupported()
Returns whether an Undo manager is currently available. |
boolean |
isZoomOverviewPanelVisible()
Returns whether the zoom overview panel is visible or not. |
protected InstanceContainerManager |
newContainerManager()
Returns the container manager to use. |
protected void |
postUpdate()
Hook method, called after the update was performed. |
void |
prepareUpdate()
Updates the axes with the min/max of the new data. |
String |
processTipText(PlotPanel panel,
Point mouse,
String tiptext)
Processes the given tip text. |
void |
setAdjustToVisibleData(boolean value)
Sets whether the display is adjusted to only the visible data or everything currently loaded. |
void |
setUndo(Undo value)
Sets the undo manager to use, can be null if no undo-support wanted. |
void |
setZoomOverviewPanelVisible(boolean value)
Sets the zoom overview panel visible or hides it. |
| Methods inherited from class adams.gui.visualization.container.DataContainerPanelWithSidePanel |
|---|
getDividerLocation, getSidePanel, isSidePanelVisible, revalidate, setDividerLocation, setDividerLocation, setSidePanelVisible |
| Methods inherited from class adams.gui.visualization.container.DataContainerPanel |
|---|
databaseConnectionStateChanged, dataChanged, finishInit, getBackgroundColor, getContainerManager, getDatabaseConnection, getForegroundColor, getPlot, getProperties, getSendToClasses, getSendToItem, getStatusMessageHandler, getTitle, hasSendToItem, reset, setBackgroundColor, setContainerManager, setDatabaseConnection, setForegroundColor, setStatusMessageHandler, setTitle, showStatus |
| Methods inherited from class adams.gui.visualization.core.PaintablePanel |
|---|
addPaintlet, paint, painted, paintlets, performUpdate, removePaintlet, update |
| Methods inherited from class adams.gui.core.BasePanel |
|---|
afterHide, afterShow, beforeHide, beforeShow, closeParent, getParentChild, getParentDialog, getParentFrame, getParentInternalFrame, getParentTitle, main, setParentTitle, setVisible |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface adams.gui.event.PaintListener |
|---|
painted |
| Field Detail |
|---|
protected InstanceContainerList m_InstanceContainerList
protected InstanceLinePaintlet m_InstancePaintlet
protected CoordinatesPaintlet m_CoordinatesPaintlet
protected Undo m_Undo
protected boolean m_AdjustToVisibleData
protected InstancePointHitDetector m_InstancePointHitDetector
protected int m_ToolTipMaxColumns
protected InstanceZoomOverviewPanel m_PanelZoomOverview
| Constructor Detail |
|---|
public InstancePanel()
public InstancePanel(String title)
title - the title for the panel| Method Detail |
|---|
protected void initialize()
initialize in class DataContainerPanelWithSidePanel<Instance,InstanceContainerManager>protected AbstractDatabaseConnection getDefaultDatabaseConnection()
getDefaultDatabaseConnection in class DataContainerPanel<Instance,InstanceContainerManager>protected InstanceContainerManager newContainerManager()
newContainerManager in class DataContainerPanel<Instance,InstanceContainerManager>public InstanceLinePaintlet getContainerPaintlet()
getContainerPaintlet in class DataContainerPanel<Instance,InstanceContainerManager>protected void initGUI()
initGUI in class DataContainerPanelWithSidePanel<Instance,InstanceContainerManager>public ContainerManager getSequenceManager()
public void setUndo(Undo value)
value - the undo manager to usepublic Undo getUndo()
public boolean isUndoSupported()
protected boolean canPaint(Graphics g)
canPaint in class PaintablePanelg - the graphics context
public void prepareUpdate()
prepareUpdate in class PaintablePanel
public void customizePopupMenu(MouseEvent e,
JPopupMenu menu)
customizePopupMenu in interface PopupMenuCustomizere - the mous eventmenu - the menu to customize
public JPopupMenu getContainerListPopupMenu(ContainerTable<InstanceContainerManager,InstanceContainer> table,
int row)
getContainerListPopupMenu in interface ContainerListPopupMenuSupplier<InstanceContainerManager,InstanceContainer>table - the affected tablerow - the row the mouse is currently over
public void setZoomOverviewPanelVisible(boolean value)
value - if true then the panel is displayedpublic boolean isZoomOverviewPanelVisible()
public void setAdjustToVisibleData(boolean value)
value - if true then plot is adjusted to visible datapublic boolean getAdjustToVisibleData()
public InstanceLinePaintlet getInstancePaintlet()
public InstanceContainerList getInstanceContainerList()
public weka.core.Instances getInstances()
public String processTipText(PlotPanel panel,
Point mouse,
String tiptext)
processTipText in interface TipTextCustomizerpanel - the content panel that initiated this callmouse - the mouse positiontiptext - the tiptext so far
public AbstractScriptingEngine getScriptingEngine()
getScriptingEngine in interface ScriptingEngineHandlergetScriptingEngine in class DataContainerPanel<Instance,InstanceContainerManager>protected void postUpdate()
postUpdate in class PaintablePanelpublic void cleanUp()
cleanUp in interface CleanUpHandlercleanUp in class DataContainerPanel<Instance,InstanceContainerManager>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||