|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--org.moyoman.client.reference.debug.DebugPanel
Provides a debug panel base class.
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private ActionManager |
_actionManager
Handle to the action manager. |
private Board |
_board
Board. |
protected JLabel |
_dataLabel
Data label. |
protected JList |
_dataUI
Data list. |
private Debug |
_debugInfo
Current debug info. |
private DebugType |
_debugType
The debug type. |
private String |
_header
Debug header. |
private JLabel |
_headerUI
The header widget. |
private JButton |
_infoUI
Debug information widget. |
private String |
_module
The module. |
Fields inherited from class javax.swing.JPanel |
|
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.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface org.moyoman.client.reference.util.IGUIConstants |
DEBUG, DIRTY_PROPERTY, GAP, MARGIN, TRANSPARENT_COLOR |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
protected |
DebugPanel()
Construct this panel. |
Method Summary | |
void |
clear()
Clear the data from this panel. |
protected void |
clearAnnotations()
Clear the board annotations. |
static DebugPanel |
create(String module,
DebugType debugType,
String header)
Factory method to create new debug panels based upon the given debug type and given module. |
protected void |
createBoard()
Create the board. |
protected JComponent |
createEastComponent()
Create the East component. |
protected JPanel |
createHeaderPanel()
Create the header panel. |
void |
debugInfoActionPerformed(ActionEvent event)
Callback for the debug info action. |
protected ActionManager |
getActionManager()
Return the action manager, creating it if necessary. |
protected Board |
getBoard()
Return the board. |
DebugType |
getDebugType()
Return the debug type. |
protected Color |
getForegroundFor(Stone stone)
Return the appropriate foreground color based upon the given stone. |
String |
getHeader()
Return the debug header. |
protected abstract String |
getHelpTextKey()
Return the key for the help text. |
protected Action |
getInfoAction()
Return the info action. |
String |
getModule()
Return the module. |
protected void |
init()
Initialize this panel. |
void |
setBoardState(List state)
Set board state. |
void |
setDebugInfo(Debug debugInfo)
Set the debug info. |
void |
setDebugType(DebugType debugType)
Set the debug type. |
void |
setEnabled(boolean isEnabled)
Set the enabled state. |
void |
setHeader(String header)
Set the debug header. |
void |
setLanguageName(String languageName)
Set the language name. |
protected void |
setListData(Object[] listData)
Set the list data. |
void |
setModule(String module)
Set the module. |
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 |
Field Detail |
protected JLabel _dataLabel
protected JList _dataUI
private ActionManager _actionManager
private Board _board
private Debug _debugInfo
private DebugType _debugType
private JButton _infoUI
private JLabel _headerUI
private String _header
private String _module
Constructor Detail |
protected DebugPanel()
Method Detail |
public void setBoardState(List state)
public void setDebugInfo(Debug debugInfo)
public void setDebugType(DebugType debugType)
public DebugType getDebugType()
public void setEnabled(boolean isEnabled)
setEnabled
in class JComponent
public void setHeader(String header)
public String getHeader()
public void setLanguageName(String languageName)
public void setModule(String module)
public String getModule()
public void clear()
public static DebugPanel create(String module, DebugType debugType, String header)
public void debugInfoActionPerformed(ActionEvent event)
protected Board getBoard()
protected abstract String getHelpTextKey()
protected ActionManager getActionManager()
protected Color getForegroundFor(Stone stone)
protected Action getInfoAction()
protected void setListData(Object[] listData)
protected void clearAnnotations()
protected void createBoard()
protected JComponent createEastComponent()
protected JPanel createHeaderPanel()
protected void init()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |