public class GoGui extends javax.swing.JFrame implements AnalyzeDialog.Listener, GuiBoard.Listener, GameTreeViewer.Listener, GtpShell.Listener, ScoreDialog.Listener, GoGuiMenuBar.Listener, ContextMenu.Listener, LiveGfx.Listener
| Modifier and Type | Class and Description |
|---|---|
static class |
GoGui.ShowVariations |
javax.swing.JFrame.AccessibleJFramejava.awt.Window.AccessibleAWTWindow, java.awt.Window.TypeaccessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabledCROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Constructor and Description |
|---|
GoGui(java.lang.String program,
java.io.File file,
int move,
java.lang.String time,
boolean verbose,
boolean initComputerColor,
boolean computerBlack,
boolean computerWhite,
boolean auto,
boolean register,
java.lang.String gtpFile,
java.lang.String gtpCommand,
java.io.File analyzeCommandsFile) |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic GoGui(java.lang.String program,
java.io.File file,
int move,
java.lang.String time,
boolean verbose,
boolean initComputerColor,
boolean computerBlack,
boolean computerWhite,
boolean auto,
boolean register,
java.lang.String gtpFile,
java.lang.String gtpCommand,
java.io.File analyzeCommandsFile)
throws GtpError,
ErrorMessage
GtpErrorErrorMessagepublic void actionAbout()
public void actionAddBookmark()
public void actionAttachProgram(int index)
actionAttachProgram in interface GoGuiMenuBar.Listenerpublic void actionAttachProgram(Program program)
public void actionBackToMainVariation()
public void actionBackward(int n)
public void actionBeginning()
public void actionBoardSize(int size)
public void actionBoardSizeOther()
public void actionClearAnalyzeCommand()
actionClearAnalyzeCommand in interface AnalyzeDialog.Listenerpublic void actionClockHalt()
public void actionClockResume()
public void actionClockStart()
public void actionComputerColor(boolean isBlack,
boolean isWhite)
public void actionDeleteSideVariations()
public void actionDetachProgram()
public void actionDisposeAnalyzeDialog()
public void actionDisposeTree()
public void actionHelp()
public void actionEditBookmarks()
public void actionEditLabel(GoPoint point)
actionEditLabel in interface ContextMenu.Listenerpublic void actionEditPrograms()
public void actionEnd()
public void actionExportLatexMainVariation()
public void actionExportLatexPosition()
public void actionExportSgfPosition()
public void actionExportTextPosition()
public void actionExportPng()
public void actionExportTextPositionToClipboard()
public void actionFind()
public void actionFindNext()
public void actionFindNextComment()
public void actionForward(int n)
public void actionGameInfo()
public void actionGotoBookmark(int i)
actionGotoBookmark in interface GoGuiMenuBar.Listenerpublic void actionGotoMove()
public void actionGotoNode(ConstNode node)
actionGotoNode in interface GameTreeViewer.Listenerpublic void actionGotoVariation()
public void actionHandicap(int handicap)
public void actionImportSgfFromClipboard()
public void actionImportTextPosition()
public void actionImportTextPositionFromClipboard()
public void actionInterrupt()
public void actionKeepOnlyPosition()
public void actionMainWindowActivate()
public void actionMakeMainVariation()
public void actionMark(GoPoint point, MarkType type, boolean mark)
actionMark in interface ContextMenu.Listenerpublic void actionNewGame()
public void actionNewGame(int size)
public void actionNewProgram()
public void actionNextEarlierVariation()
public void actionNextVariation()
public void actionOpen()
public void actionOpenFile(java.io.File file)
public void actionPass()
public void actionPlay(boolean isSingleMove)
public void actionPreviousEarlierVariation()
public void actionPreviousVariation()
public void actionPrint()
public void actionReattachProgram()
public void actionReattachWithParameters()
public void actionRestoreParameters()
public void actionSave()
public void actionSaveAs()
public void actionSaveCommands()
public void actionSaveLog()
public void actionSaveParameters()
public void actionSnapshotParameters()
public void actionScore()
public void actionScoreDone(Score score)
actionScoreDone in interface ScoreDialog.Listenerpublic void actionSendCommand(java.lang.String command,
boolean isCritical,
boolean showError)
actionSendCommand in interface GtpShell.Listenerpublic void actionSendFile()
public void actionSendFile(java.io.File file)
public void actionSetAnalyzeCommand(AnalyzeCommand command)
public void actionSetAnalyzeCommand(AnalyzeCommand command, boolean autoRun, boolean clearBoard, boolean oneRunOnly, boolean reuseTextWindow)
actionSetAnalyzeCommand in interface AnalyzeDialog.Listenerpublic void actionSetShowVariations(GoGui.ShowVariations mode)
public void actionSetTimeLeft()
public void actionSetup(GoColor color)
public void actionShowAnalyzeDialog()
public void actionShowShell()
public void actionShowTree()
public void actionToggleBeepAfterMove()
public void actionToggleAutoNumber()
public void actionToggleCommentMonoFont()
public void actionToggleCompletion()
public void actionToggleShowCursor()
public void actionToggleShowGrid()
public void actionToggleShowInfoPanel()
public void actionToggleShowLastMove()
public void actionToggleShowMoveNumbers()
public void actionToggleShowSubtreeSizes()
public void actionToggleShowToolbar()
public void actionToggleTimeStamp()
public void actionTreeLabels(GameTreePanel.Label mode)
public void actionTreeSize(GameTreePanel.Size mode)
public void actionTruncate()
public void actionTruncateChildren()
public void actionQuit()
public boolean getAutoNumber()
public boolean getBeepAfterMove()
public boolean getCommentMonoFont()
public boolean getCompletion()
public java.lang.String getProgramName()
public int getNumberPrograms()
public java.lang.String getProgramLabel()
public GoColor getSetupColor()
public boolean getShowLastMove()
public boolean getShowMoveNumbers()
public boolean getShowSubtreeSizes()
public GoGui.ShowVariations getShowVariations()
public boolean getTimeStamp()
public GameTreePanel.Label getTreeLabels()
public GameTreePanel.Size getTreeSize()
public boolean hasParameterCommands()
public boolean hasParameterSnapshot()
public boolean isAnalyzeDialogShown()
public boolean isCommandInProgress()
public boolean isComputerColor(GoColor color)
public boolean isInfoPanelShown()
public boolean isShellShown()
public boolean isToolbarShown()
public boolean isTreeShown()
public void contextMenu(GoPoint point, java.awt.Component invoker, int x, int y)
GuiBoard.ListenercontextMenu in interface GuiBoard.Listenerpoint - The point clicked.invoker - The awt.Component that was clicked on.x - The x coordinate on the invoker component.y - The y coordinate on the invoker component.public void fieldClicked(GoPoint p, boolean modifiedSelect)
GuiBoard.ListenerfieldClicked in interface GuiBoard.Listenerp - The point clicked.modifiedSelect - Modified select. True if the click was a
double click or with the right mouse button or if a modifier key
(Ctrl, Alt, Meta) was pressed while clicking, as long as it was
not a (platform-dependent) popup menu trigger.public GoGuiActions getActions()
public java.io.File getFile()
public ConstGame getGame()
public ConstGuiBoard getGuiBoard()
public int getHandicapDefault()
public boolean getMonoFont()
public java.util.regex.Pattern getPattern()
public boolean isInSetupMode()
public void textSelected(java.lang.String text)
textSelected in interface GtpShell.Listenerpublic void initAnalyzeCommand(AnalyzeCommand command, boolean autoRun, boolean clearBoard, boolean reuseTextWindow)
public boolean isInterruptSupported()
public boolean isModified()
public boolean isProgramAttached()
public boolean isProgramDead()
public void showLiveGfx(java.lang.String text)
showLiveGfx in interface LiveGfx.Listener