From 670fcf2613f6db2a4bfdaa91ac9d90001a90359e Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Tue, 10 May 2011 16:59:40 +0200 Subject: docs fertig und vorher repariert git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@232 72836036-5685-4462-b002-a69064685172 --- doc/jrummikub/view/impl/AbstractStonePanel.html | 707 +++++++++++++++++++++ doc/jrummikub/view/impl/HandPanel.html | 516 +++++++++++++++ doc/jrummikub/view/impl/PlayerPanel.html | 521 +++++++++++++++ doc/jrummikub/view/impl/StartTurnPanel.html | 412 ++++++++++++ doc/jrummikub/view/impl/StoneCollectionPanel.html | 513 +++++++++++++++ doc/jrummikub/view/impl/StonePainter.html | 410 ++++++++++++ doc/jrummikub/view/impl/TablePanel.html | 702 ++++++++++++++++++++ doc/jrummikub/view/impl/View.html | 646 +++++++++++++++++++ doc/jrummikub/view/impl/WinPanel.html | 432 +++++++++++++ .../view/impl/class-use/AbstractStonePanel.html | 196 ++++++ doc/jrummikub/view/impl/class-use/HandPanel.html | 180 ++++++ doc/jrummikub/view/impl/class-use/PlayerPanel.html | 144 +++++ .../view/impl/class-use/StartTurnPanel.html | 144 +++++ .../view/impl/class-use/StoneCollectionPanel.html | 144 +++++ .../view/impl/class-use/StonePainter.html | 180 ++++++ doc/jrummikub/view/impl/class-use/TablePanel.html | 144 +++++ doc/jrummikub/view/impl/class-use/View.html | 144 +++++ doc/jrummikub/view/impl/class-use/WinPanel.html | 144 +++++ doc/jrummikub/view/impl/package-frame.html | 48 ++ doc/jrummikub/view/impl/package-summary.html | 190 ++++++ doc/jrummikub/view/impl/package-tree.html | 181 ++++++ doc/jrummikub/view/impl/package-use.html | 183 ++++++ 22 files changed, 6881 insertions(+) create mode 100644 doc/jrummikub/view/impl/AbstractStonePanel.html create mode 100644 doc/jrummikub/view/impl/HandPanel.html create mode 100644 doc/jrummikub/view/impl/PlayerPanel.html create mode 100644 doc/jrummikub/view/impl/StartTurnPanel.html create mode 100644 doc/jrummikub/view/impl/StoneCollectionPanel.html create mode 100644 doc/jrummikub/view/impl/StonePainter.html create mode 100644 doc/jrummikub/view/impl/TablePanel.html create mode 100644 doc/jrummikub/view/impl/View.html create mode 100644 doc/jrummikub/view/impl/WinPanel.html create mode 100644 doc/jrummikub/view/impl/class-use/AbstractStonePanel.html create mode 100644 doc/jrummikub/view/impl/class-use/HandPanel.html create mode 100644 doc/jrummikub/view/impl/class-use/PlayerPanel.html create mode 100644 doc/jrummikub/view/impl/class-use/StartTurnPanel.html create mode 100644 doc/jrummikub/view/impl/class-use/StoneCollectionPanel.html create mode 100644 doc/jrummikub/view/impl/class-use/StonePainter.html create mode 100644 doc/jrummikub/view/impl/class-use/TablePanel.html create mode 100644 doc/jrummikub/view/impl/class-use/View.html create mode 100644 doc/jrummikub/view/impl/class-use/WinPanel.html create mode 100644 doc/jrummikub/view/impl/package-frame.html create mode 100644 doc/jrummikub/view/impl/package-summary.html create mode 100644 doc/jrummikub/view/impl/package-tree.html create mode 100644 doc/jrummikub/view/impl/package-use.html (limited to 'doc/jrummikub/view/impl') diff --git a/doc/jrummikub/view/impl/AbstractStonePanel.html b/doc/jrummikub/view/impl/AbstractStonePanel.html new file mode 100644 index 0000000..ba29bdf --- /dev/null +++ b/doc/jrummikub/view/impl/AbstractStonePanel.html @@ -0,0 +1,707 @@ + + + + + + +AbstractStonePanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view.impl +
+Class AbstractStonePanel

+
+java.lang.Object
+  extended by java.awt.Component
+      extended by java.awt.Container
+          extended by javax.swing.JComponent
+              extended by javax.swing.JPanel
+                  extended by jrummikub.view.impl.AbstractStonePanel
+
+
+
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, IClickable, IStonePanel
+
+
+
Direct Known Subclasses:
HandPanel, StoneCollectionPanel, TablePanel
+
+
+
+
abstract class AbstractStonePanel
extends javax.swing.JPanel
implements IStonePanel, IClickable
+ + +

+Base class for panels that draw stones +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
+  + + + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
+  + + + + + + + +
+Field Summary
+ + + + + + + +
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
AbstractStonePanel() + +
+          Create a new StonePanel with default scale factor
AbstractStonePanel(float scale) + +
+          Create a new StonePanel with a given scale factor
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidclickAt(java.awt.Point p, + int clickCount, + boolean shift, + boolean control, + boolean alt) + +
+          clickAt is called when a click has occurred
+ Event1<Position>getClickEvent() + +
+          the click event is emitted when the player clicks on the table/hand/etc.
+protected  StonegetHoveredStone() + +
+          Returns the stone the mouse pointer is hovering over
+ Event2<Stone,java.lang.Boolean>getRangeClickEvent() + +
+          the range click event is emitted when the player clicks on the table/hand/ + etc. and wants to select a range instead of a single stone
+ Event2<Stone,java.lang.Boolean>getSetClickEvent() + +
+          the set click event is emitted when the player clicks on the table/hand/ + etc. and wants to select a whole set instead of a single stone
+ Event2<Stone,java.lang.Boolean>getStoneClickEvent() + +
+          the click event is emitted when the player clicks on the table/hand/etc.
+protected  StonePaintergetStonePainter() + +
+           
+protected  java.lang.Iterable<Pair<Stone,Position>>getStones() + +
+          Returns the list of stones and positions currently set
+protected  Pair<java.lang.Integer,java.lang.Integer>getTranslation() + +
+          Returns the translation in pixels the stones in this panel are painted with
+protected  booleanhandleOtherClickEvent(Position pos) + +
+          Overwrite this method to signal if special zone was clicked
+protected  voidhandleOtherMoveEvent(Position pos) + +
+          Overwrite this method to signal if special zone was hovered
+protected  voidsetStones(java.lang.Iterable<Pair<Stone,Position>> stones) + +
+          Sets the list of stones that can be clicked on
+ + + + + + + +
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
+ + + + + + + +
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
+ + + + + + + +
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
+ + + + + + + +
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, hide, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+AbstractStonePanel

+
+public AbstractStonePanel()
+
+
Create a new StonePanel with default scale factor +

+

+
+ +

+AbstractStonePanel

+
+public AbstractStonePanel(float scale)
+
+
Create a new StonePanel with a given scale factor +

+

+
Parameters:
scale - the grid scale
+
+ + + + + + + + +
+Method Detail
+ +

+getStonePainter

+
+protected StonePainter getStonePainter()
+
+
+
+
+
+ +
Returns:
the stone painter
+
+
+
+ +

+clickAt

+
+protected void clickAt(java.awt.Point p,
+                       int clickCount,
+                       boolean shift,
+                       boolean control,
+                       boolean alt)
+
+
clickAt is called when a click has occurred +

+

+
+
+
+
Parameters:
p - the point in component coordinates
clickCount - the click count
shift - is shift down?
control - is control down?
alt - is alt down?
+
+
+
+ +

+getHoveredStone

+
+protected Stone getHoveredStone()
+
+
Returns the stone the mouse pointer is hovering over +

+

+
+
+
+ +
Returns:
the hovered stone
+
+
+
+ +

+handleOtherClickEvent

+
+protected boolean handleOtherClickEvent(Position pos)
+
+
Overwrite this method to signal if special zone was clicked +

+

+
+
+
+
Parameters:
pos - the clicked position +
Returns:
special zone clicked
+
+
+
+ +

+handleOtherMoveEvent

+
+protected void handleOtherMoveEvent(Position pos)
+
+
Overwrite this method to signal if special zone was hovered +

+

+
+
+
+
Parameters:
pos - the hovered position
+
+
+
+ +

+setStones

+
+protected void setStones(java.lang.Iterable<Pair<Stone,Position>> stones)
+
+
Sets the list of stones that can be clicked on +

+

+
+
+
+
Parameters:
stones - the stones and positions
+
+
+
+ +

+getTranslation

+
+protected Pair<java.lang.Integer,java.lang.Integer> getTranslation()
+
+
Returns the translation in pixels the stones in this panel are painted with +

+

+
+
+
+ +
Returns:
the translation
+
+
+
+ +

+getStones

+
+protected java.lang.Iterable<Pair<Stone,Position>> getStones()
+
+
Returns the list of stones and positions currently set +

+

+
+
+
+ +
Returns:
the stones
+
+
+
+ +

+getClickEvent

+
+public Event1<Position> getClickEvent()
+
+
Description copied from interface: IClickable
+
the click event is emitted when the player clicks on the table/hand/etc. +

+

+
Specified by:
getClickEvent in interface IClickable
+
+
+ +
Returns:
the event; the first parameter is the position of the click in grid + coordinates, the second is true when the player wants to add stones + to his selection instead of replacing them
+
+
+
+ +

+getStoneClickEvent

+
+public Event2<Stone,java.lang.Boolean> getStoneClickEvent()
+
+
Description copied from interface: IStonePanel
+
the click event is emitted when the player clicks on the table/hand/etc. +

+

+
Specified by:
getStoneClickEvent in interface IStonePanel
+
+
+ +
Returns:
the event; the first parameter is the position of the click in grid + coordinates, the second is true when the player wants to add stones + to his selection instead of replacing them
+
+
+
+ +

+getRangeClickEvent

+
+public Event2<Stone,java.lang.Boolean> getRangeClickEvent()
+
+
Description copied from interface: IStonePanel
+
the range click event is emitted when the player clicks on the table/hand/ + etc. and wants to select a range instead of a single stone +

+

+
Specified by:
getRangeClickEvent in interface IStonePanel
+
+
+ +
Returns:
the event; the first parameter is the position of the click in grid + coordinates, the second is true when the player wants to add stones + to his selection instead of replacing them
+
+
+
+ +

+getSetClickEvent

+
+public Event2<Stone,java.lang.Boolean> getSetClickEvent()
+
+
Description copied from interface: IStonePanel
+
the set click event is emitted when the player clicks on the table/hand/ + etc. and wants to select a whole set instead of a single stone +

+

+
Specified by:
getSetClickEvent in interface IStonePanel
+
+
+ +
Returns:
the event; the first parameter is the position of the click in grid + coordinates, the second is true when the player wants to add stones + to his selection instead of replacing them
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/HandPanel.html b/doc/jrummikub/view/impl/HandPanel.html new file mode 100644 index 0000000..9fc0c2f --- /dev/null +++ b/doc/jrummikub/view/impl/HandPanel.html @@ -0,0 +1,516 @@ + + + + + + +HandPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view.impl +
+Class HandPanel

+
+java.lang.Object
+  extended by java.awt.Component
+      extended by java.awt.Container
+          extended by javax.swing.JComponent
+              extended by javax.swing.JPanel
+                  extended by jrummikub.view.impl.AbstractStonePanel
+                      extended by jrummikub.view.impl.HandPanel
+
+
+
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, IClickable, IHandPanel, IStonePanel
+
+
+
+
 class HandPanel
extends AbstractStonePanel
implements IHandPanel
+ + +

+Implementation of the board +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
+  + + + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
+  + + + + + + + +
+Field Summary
+ + + + + + + +
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
HandPanel() + +
+          Creates a new Board instance
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+protected  voidpaintComponent(java.awt.Graphics g1) + +
+           
+ voidsetHandHeight(int height) + +
+          Set the number of stones that fit on the hand vertically
+ voidsetHandWidth(int width) + +
+          Set the number of stones that fit on the hand horizontally
+(package private)  voidsetSelectedStones(java.util.Collection<Stone> stones) + +
+          Sets the stones that are to be painted selected
+ voidsetStones(java.lang.Iterable<Pair<Stone,Position>> stones) + +
+          Sets the list of stones that can be clicked on
+ + + + + + + +
Methods inherited from class jrummikub.view.impl.AbstractStonePanel
clickAt, getClickEvent, getHoveredStone, getRangeClickEvent, getSetClickEvent, getStoneClickEvent, getStonePainter, getStones, getTranslation, handleOtherClickEvent, handleOtherMoveEvent
+ + + + + + + +
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
+ + + + + + + +
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
+ + + + + + + +
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
+ + + + + + + +
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, hide, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface jrummikub.view.IStonePanel
getRangeClickEvent, getSetClickEvent, getStoneClickEvent
+ + + + + + + +
Methods inherited from interface jrummikub.view.IClickable
getClickEvent
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+HandPanel

+
+HandPanel()
+
+
Creates a new Board instance +

+

+ + + + + + + + +
+Method Detail
+ +

+setHandWidth

+
+public void setHandWidth(int width)
+
+
Description copied from interface: IHandPanel
+
Set the number of stones that fit on the hand horizontally +

+

+
Specified by:
setHandWidth in interface IHandPanel
+
+
+
Parameters:
width - number of stones
+
+
+
+ +

+setHandHeight

+
+public void setHandHeight(int height)
+
+
Description copied from interface: IHandPanel
+
Set the number of stones that fit on the hand vertically +

+

+
Specified by:
setHandHeight in interface IHandPanel
+
+
+
Parameters:
height - number of stones
+
+
+
+ +

+paintComponent

+
+protected void paintComponent(java.awt.Graphics g1)
+
+
+
Overrides:
paintComponent in class javax.swing.JComponent
+
+
+
+
+
+
+ +

+setStones

+
+public void setStones(java.lang.Iterable<Pair<Stone,Position>> stones)
+
+
Description copied from class: AbstractStonePanel
+
Sets the list of stones that can be clicked on +

+

+
Specified by:
setStones in interface IHandPanel
Overrides:
setStones in class AbstractStonePanel
+
+
+
Parameters:
stones - the stones and positions
+
+
+
+ +

+setSelectedStones

+
+void setSelectedStones(java.util.Collection<Stone> stones)
+
+
Sets the stones that are to be painted selected +

+

+
+
+
+
Parameters:
stones - the selected stones
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/PlayerPanel.html b/doc/jrummikub/view/impl/PlayerPanel.html new file mode 100644 index 0000000..ee9ab4e --- /dev/null +++ b/doc/jrummikub/view/impl/PlayerPanel.html @@ -0,0 +1,521 @@ + + + + + + +PlayerPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view.impl +
+Class PlayerPanel

+
+java.lang.Object
+  extended by java.awt.Component
+      extended by java.awt.Container
+          extended by javax.swing.JComponent
+              extended by javax.swing.JPanel
+                  extended by jrummikub.view.impl.PlayerPanel
+
+
+
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, IPlayerPanel
+
+
+
+
 class PlayerPanel
extends javax.swing.JPanel
implements IPlayerPanel
+ + +

+Implementation of the player panel +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
+  + + + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
+  + + + + + + + +
+Field Summary
+ + + + + + + +
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
PlayerPanel() + +
+          Creates a new PlayerPanel instance
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ IEventgetEndTurnEvent() + +
+          The end turn event is emitted when the player wants to end his turn
+ HandPanelgetHandPanel() + +
+           
+ IEventgetSortByGroupsEvent() + +
+          The sort by groups event is emitted when the player wants to sort his + stones by groups
+ IEventgetSortByRunsEvent() + +
+          The sort by runs event is emitted when the player wants to sort his stones + by runs
+(package private)  voidsetCurrentPlayerName(java.lang.String playerName) + +
+          Sets the current player name
+ voidsetTimeLeft(int time) + +
+          Sets the time the player has left for his turn
+ + + + + + + +
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
+ + + + + + + +
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
+ + + + + + + +
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
+ + + + + + + +
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, hide, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+PlayerPanel

+
+PlayerPanel()
+
+
Creates a new PlayerPanel instance +

+

+ + + + + + + + +
+Method Detail
+ +

+getHandPanel

+
+public HandPanel getHandPanel()
+
+
+
Specified by:
getHandPanel in interface IPlayerPanel
+
+
+ +
Returns:
the board where the players hand stones are displayed
+
+
+
+ +

+setCurrentPlayerName

+
+void setCurrentPlayerName(java.lang.String playerName)
+
+
Sets the current player name +

+

+
+
+
+
Parameters:
playerName - the player name
+
+
+
+ +

+setTimeLeft

+
+public void setTimeLeft(int time)
+
+
Description copied from interface: IPlayerPanel
+
Sets the time the player has left for his turn +

+

+
Specified by:
setTimeLeft in interface IPlayerPanel
+
+
+
Parameters:
time - the time left
+
+
+
+ +

+getSortByGroupsEvent

+
+public IEvent getSortByGroupsEvent()
+
+
Description copied from interface: IPlayerPanel
+
The sort by groups event is emitted when the player wants to sort his + stones by groups +

+

+
Specified by:
getSortByGroupsEvent in interface IPlayerPanel
+
+
+ +
Returns:
the event
+
+
+
+ +

+getSortByRunsEvent

+
+public IEvent getSortByRunsEvent()
+
+
Description copied from interface: IPlayerPanel
+
The sort by runs event is emitted when the player wants to sort his stones + by runs +

+

+
Specified by:
getSortByRunsEvent in interface IPlayerPanel
+
+
+ +
Returns:
the event
+
+
+
+ +

+getEndTurnEvent

+
+public IEvent getEndTurnEvent()
+
+
Description copied from interface: IPlayerPanel
+
The end turn event is emitted when the player wants to end his turn +

+

+
Specified by:
getEndTurnEvent in interface IPlayerPanel
+
+
+ +
Returns:
the event
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/StartTurnPanel.html b/doc/jrummikub/view/impl/StartTurnPanel.html new file mode 100644 index 0000000..1de5d67 --- /dev/null +++ b/doc/jrummikub/view/impl/StartTurnPanel.html @@ -0,0 +1,412 @@ + + + + + + +StartTurnPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view.impl +
+Class StartTurnPanel

+
+java.lang.Object
+  extended by java.awt.Component
+      extended by java.awt.Container
+          extended by javax.swing.JComponent
+              extended by javax.swing.JPanel
+                  extended by jrummikub.view.impl.StartTurnPanel
+
+
+
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
+
+
+
+
 class StartTurnPanel
extends javax.swing.JPanel
+ + +

+A panel that is displayed before a player's turn +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
+  + + + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
+  + + + + + + + +
+Field Summary
+ + + + + + + +
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
StartTurnPanel() + +
+          Creates a new StartTurnPanel
+  + + + + + + + + + + + + + + + +
+Method Summary
+(package private)  IEventgetStartTurnEvent() + +
+          The start turn event is emitted when the current player has clicked the + start turn button
+(package private)  voidsetCurrentPlayerName(java.lang.String playerName) + +
+          Sets the current player name
+ + + + + + + +
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
+ + + + + + + +
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
+ + + + + + + +
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
+ + + + + + + +
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, hide, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+StartTurnPanel

+
+StartTurnPanel()
+
+
Creates a new StartTurnPanel +

+

+ + + + + + + + +
+Method Detail
+ +

+setCurrentPlayerName

+
+void setCurrentPlayerName(java.lang.String playerName)
+
+
Sets the current player name +

+

+
Parameters:
playerName - the player name
+
+
+
+ +

+getStartTurnEvent

+
+IEvent getStartTurnEvent()
+
+
The start turn event is emitted when the current player has clicked the + start turn button +

+

+ +
Returns:
the event
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/StoneCollectionPanel.html b/doc/jrummikub/view/impl/StoneCollectionPanel.html new file mode 100644 index 0000000..cb2d49e --- /dev/null +++ b/doc/jrummikub/view/impl/StoneCollectionPanel.html @@ -0,0 +1,513 @@ + + + + + + +StoneCollectionPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view.impl +
+Class StoneCollectionPanel

+
+java.lang.Object
+  extended by java.awt.Component
+      extended by java.awt.Container
+          extended by javax.swing.JComponent
+              extended by javax.swing.JPanel
+                  extended by jrummikub.view.impl.AbstractStonePanel
+                      extended by jrummikub.view.impl.StoneCollectionPanel
+
+
+
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, IClickable, IStoneCollectionPanel, IStonePanel
+
+
+
+
 class StoneCollectionPanel
extends AbstractStonePanel
implements IStoneCollectionPanel
+ + +

+Implementation of the stone collection (selection) +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
+  + + + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
+  + + + + + + + +
+Field Summary
+ + + + + + + +
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
StoneCollectionPanel() + +
+          Creates a new StoneCollection instance
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+(package private)  IEvent1<java.awt.Point>getOtherClickEvent() + +
+          The other click event is emitted by the stone collection when the player + has clicked on it, but hasn't hit a stone.
+protected  Pair<java.lang.Integer,java.lang.Integer>getTranslation() + +
+          Returns the translation in pixels the stones in this panel are painted with
+protected  booleanhandleOtherClickEvent(Position pos) + +
+          Overwrite this method to signal if special zone was clicked
+ voidpaintComponent(java.awt.Graphics g1) + +
+           
+(package private)  voidsetSelectedStones(java.util.Collection<Stone> selectedStones) + +
+          Sets the stones to be shown in the collection
+ + + + + + + +
Methods inherited from class jrummikub.view.impl.AbstractStonePanel
clickAt, getClickEvent, getHoveredStone, getRangeClickEvent, getSetClickEvent, getStoneClickEvent, getStonePainter, getStones, handleOtherMoveEvent, setStones
+ + + + + + + +
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
+ + + + + + + +
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
+ + + + + + + +
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
+ + + + + + + +
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, hide, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface jrummikub.view.IStonePanel
getRangeClickEvent, getSetClickEvent, getStoneClickEvent
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+StoneCollectionPanel

+
+StoneCollectionPanel()
+
+
Creates a new StoneCollection instance +

+

+ + + + + + + + +
+Method Detail
+ +

+setSelectedStones

+
+void setSelectedStones(java.util.Collection<Stone> selectedStones)
+
+
Sets the stones to be shown in the collection +

+

+
+
+
+
Parameters:
selectedStones - the selected stones
+
+
+
+ +

+getTranslation

+
+protected Pair<java.lang.Integer,java.lang.Integer> getTranslation()
+
+
Description copied from class: AbstractStonePanel
+
Returns the translation in pixels the stones in this panel are painted with +

+

+
Overrides:
getTranslation in class AbstractStonePanel
+
+
+ +
Returns:
the translation
+
+
+
+ +

+getOtherClickEvent

+
+IEvent1<java.awt.Point> getOtherClickEvent()
+
+
The other click event is emitted by the stone collection when the player + has clicked on it, but hasn't hit a stone. This is rather probable as the + stone collection panel is filling the whole table width while being mostly + invisible. +

+

+
+
+
+ +
Returns:
the event
+
+
+
+ +

+handleOtherClickEvent

+
+protected boolean handleOtherClickEvent(Position pos)
+
+
Description copied from class: AbstractStonePanel
+
Overwrite this method to signal if special zone was clicked +

+

+
Overrides:
handleOtherClickEvent in class AbstractStonePanel
+
+
+
Parameters:
pos - the clicked position +
Returns:
special zone clicked
+
+
+
+ +

+paintComponent

+
+public void paintComponent(java.awt.Graphics g1)
+
+
+
Overrides:
paintComponent in class javax.swing.JComponent
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/StonePainter.html b/doc/jrummikub/view/impl/StonePainter.html new file mode 100644 index 0000000..36669ce --- /dev/null +++ b/doc/jrummikub/view/impl/StonePainter.html @@ -0,0 +1,410 @@ + + + + + + +StonePainter + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view.impl +
+Class StonePainter

+
+java.lang.Object
+  extended by jrummikub.view.impl.StonePainter
+
+
+
+
 class StonePainter
extends java.lang.Object
+ + +

+The StonePainter paints stones and converts between pixel and grid + coordinates +

+ +

+


+ +

+ + + + + + + + + + + + + + + +
+Field Summary
+static floatHEIGHT_SCALE + +
+          The height of one pixel in the scale of 1.0
+static floatWIDTH_SCALE + +
+          The width of one pixel in the scale of 1.0
+  + + + + + + + + + + +
+Constructor Summary
StonePainter(float scale) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ PositioncalculatePosition(int x, + int y) + +
+           
+ intgetStoneHeight() + +
+           
+ intgetStoneWidth() + +
+           
+ voidpaintStone(java.awt.Graphics2D g, + Stone stone, + Position p, + boolean selected, + boolean hovered) + +
+          Paints a stone
+ voidsetScale(float scale) + +
+          Sets the new grid scale
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+WIDTH_SCALE

+
+public static final float WIDTH_SCALE
+
+
The width of one pixel in the scale of 1.0 +

+

+
See Also:
Constant Field Values
+
+
+ +

+HEIGHT_SCALE

+
+public static final float HEIGHT_SCALE
+
+
The height of one pixel in the scale of 1.0 +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+StonePainter

+
+StonePainter(float scale)
+
+
+
Parameters:
scale - the scaling factor for the grid coordinates
+
+ + + + + + + + +
+Method Detail
+ +

+setScale

+
+public void setScale(float scale)
+
+
Sets the new grid scale +

+

+
Parameters:
scale - the new scale
+
+
+
+ +

+calculatePosition

+
+public Position calculatePosition(int x,
+                                  int y)
+
+
+
Parameters:
x - x position in screen coordinates
y - y position in screen coordinates +
Returns:
position in grid coordinates
+
+
+
+ +

+getStoneWidth

+
+public int getStoneWidth()
+
+
+ +
Returns:
the width of a stone in the current scale in pixels
+
+
+
+ +

+getStoneHeight

+
+public int getStoneHeight()
+
+
+ +
Returns:
the height of a stone in the current scale in pixels
+
+
+
+ +

+paintStone

+
+public void paintStone(java.awt.Graphics2D g,
+                       Stone stone,
+                       Position p,
+                       boolean selected,
+                       boolean hovered)
+
+
Paints a stone +

+

+
Parameters:
g - the graphics context to paint the stone on
stone - the stone to paint
p - the position of the stone
selected - if selected is true the stone will be painted darker
hovered - if hovered is true the stone will be painted brighter
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/TablePanel.html b/doc/jrummikub/view/impl/TablePanel.html new file mode 100644 index 0000000..f4eaa8a --- /dev/null +++ b/doc/jrummikub/view/impl/TablePanel.html @@ -0,0 +1,702 @@ + + + + + + +TablePanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view.impl +
+Class TablePanel

+
+java.lang.Object
+  extended by java.awt.Component
+      extended by java.awt.Container
+          extended by javax.swing.JComponent
+              extended by javax.swing.JPanel
+                  extended by jrummikub.view.impl.AbstractStonePanel
+                      extended by jrummikub.view.impl.TablePanel
+
+
+
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, IClickable, IStonePanel, ITablePanel
+
+
+
+
 class TablePanel
extends AbstractStonePanel
implements ITablePanel
+ + +

+The implementation of the table +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
+  + + + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
+  + + + + + + + +
+Field Summary
+ + + + + + + +
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
TablePanel() + +
+          Creates a new Table instance
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ Event1<StoneSet>getLeftConnectorClickEvent() + +
+          the left connector click event is emitted when the player clicks on a left + connector of a stone set on the table .
+ Event1<StoneSet>getRightConnectorClickEvent() + +
+          the right connector click event is emitted when the player clicks on a + right connector of a stone set on the table .
+ IStoneCollectionPanelgetStoneCollectionPanel() + +
+          Returns the stone collection (the panel showing the stones currently + selected)
+protected  Pair<java.lang.Integer,java.lang.Integer>getTranslation() + +
+          Returns the translation in pixels the stones in this panel are painted with
+protected  booleanhandleOtherClickEvent(Position pos) + +
+          Overwrite this method to signal if special zone was clicked
+protected  voidhandleOtherMoveEvent(Position pos) + +
+          Overwrite this method to signal if special zone was hovered
+protected  voidpaintComponent(java.awt.Graphics g1) + +
+           
+ voidsetLeftPlayerName(java.lang.String playerName) + +
+          Sets the player name on the left label
+ voidsetRightPlayerName(java.lang.String playerName) + +
+          Sets the player name on the right label
+(package private)  voidsetSelectedStones(java.util.Collection<Stone> stones) + +
+          Sets the currently selected stones
+ voidsetStoneSets(java.lang.Iterable<Pair<StoneSet,Position>> stoneSets) + +
+          Sets the stone sets lying on the table
+ voidsetTopPlayerName(java.lang.String playerName) + +
+          Sets the player name on the top label
+ + + + + + + +
Methods inherited from class jrummikub.view.impl.AbstractStonePanel
clickAt, getClickEvent, getHoveredStone, getRangeClickEvent, getSetClickEvent, getStoneClickEvent, getStonePainter, getStones, setStones
+ + + + + + + +
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
+ + + + + + + +
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
+ + + + + + + +
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
+ + + + + + + +
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, hide, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface jrummikub.view.IStonePanel
getRangeClickEvent, getSetClickEvent, getStoneClickEvent
+ + + + + + + +
Methods inherited from interface jrummikub.view.IClickable
getClickEvent
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+TablePanel

+
+TablePanel()
+
+
Creates a new Table instance +

+

+ + + + + + + + +
+Method Detail
+ +

+setLeftPlayerName

+
+public void setLeftPlayerName(java.lang.String playerName)
+
+
Description copied from interface: ITablePanel
+
Sets the player name on the left label +

+

+
Specified by:
setLeftPlayerName in interface ITablePanel
+
+
+
Parameters:
playerName - the name to set
+
+
+
+ +

+setTopPlayerName

+
+public void setTopPlayerName(java.lang.String playerName)
+
+
Description copied from interface: ITablePanel
+
Sets the player name on the top label +

+

+
Specified by:
setTopPlayerName in interface ITablePanel
+
+
+
Parameters:
playerName - the name to set
+
+
+
+ +

+setRightPlayerName

+
+public void setRightPlayerName(java.lang.String playerName)
+
+
Description copied from interface: ITablePanel
+
Sets the player name on the right label +

+

+
Specified by:
setRightPlayerName in interface ITablePanel
+
+
+
Parameters:
playerName - the name to set
+
+
+
+ +

+getLeftConnectorClickEvent

+
+public Event1<StoneSet> getLeftConnectorClickEvent()
+
+
Description copied from interface: ITablePanel
+
the left connector click event is emitted when the player clicks on a left + connector of a stone set on the table . +

+

+
Specified by:
getLeftConnectorClickEvent in interface ITablePanel
+
+
+ +
Returns:
the event
+
+
+
+ +

+getRightConnectorClickEvent

+
+public Event1<StoneSet> getRightConnectorClickEvent()
+
+
Description copied from interface: ITablePanel
+
the right connector click event is emitted when the player clicks on a + right connector of a stone set on the table . +

+

+
Specified by:
getRightConnectorClickEvent in interface ITablePanel
+
+
+ +
Returns:
the event
+
+
+
+ +

+setStoneSets

+
+public void setStoneSets(java.lang.Iterable<Pair<StoneSet,Position>> stoneSets)
+
+
Description copied from interface: ITablePanel
+
Sets the stone sets lying on the table +

+

+
Specified by:
setStoneSets in interface ITablePanel
+
+
+
Parameters:
stoneSets - set stone sets on the table
+
+
+
+ +

+getStoneCollectionPanel

+
+public IStoneCollectionPanel getStoneCollectionPanel()
+
+
Description copied from interface: ITablePanel
+
Returns the stone collection (the panel showing the stones currently + selected) +

+

+
Specified by:
getStoneCollectionPanel in interface ITablePanel
+
+
+ +
Returns:
the stone collection
+
+
+
+ +

+setSelectedStones

+
+void setSelectedStones(java.util.Collection<Stone> stones)
+
+
Sets the currently selected stones +

+

+
+
+
+
Parameters:
stones - the selected stones
+
+
+
+ +

+handleOtherClickEvent

+
+protected boolean handleOtherClickEvent(Position pos)
+
+
Description copied from class: AbstractStonePanel
+
Overwrite this method to signal if special zone was clicked +

+

+
Overrides:
handleOtherClickEvent in class AbstractStonePanel
+
+
+
Parameters:
pos - the clicked position +
Returns:
special zone clicked
+
+
+
+ +

+handleOtherMoveEvent

+
+protected void handleOtherMoveEvent(Position pos)
+
+
Description copied from class: AbstractStonePanel
+
Overwrite this method to signal if special zone was hovered +

+

+
Overrides:
handleOtherMoveEvent in class AbstractStonePanel
+
+
+
Parameters:
pos - the hovered position
+
+
+
+ +

+getTranslation

+
+protected Pair<java.lang.Integer,java.lang.Integer> getTranslation()
+
+
Description copied from class: AbstractStonePanel
+
Returns the translation in pixels the stones in this panel are painted with +

+

+
Overrides:
getTranslation in class AbstractStonePanel
+
+
+ +
Returns:
the translation
+
+
+
+ +

+paintComponent

+
+protected void paintComponent(java.awt.Graphics g1)
+
+
+
Overrides:
paintComponent in class javax.swing.JComponent
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/View.html b/doc/jrummikub/view/impl/View.html new file mode 100644 index 0000000..7d0e5f8 --- /dev/null +++ b/doc/jrummikub/view/impl/View.html @@ -0,0 +1,646 @@ + + + + + + +View + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view.impl +
+Class View

+
+java.lang.Object
+  extended by java.awt.Component
+      extended by java.awt.Container
+          extended by java.awt.Window
+              extended by java.awt.Frame
+                  extended by javax.swing.JFrame
+                      extended by jrummikub.view.impl.View
+
+
+
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants, IView
+
+
+
+
public class View
extends javax.swing.JFrame
implements IView
+ + +

+Implementation of the top-level view interface +

+ +

+

+
See Also:
Serialized Form
+
+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
+  + + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
+ + + + + + + +
Fields inherited from class java.awt.Frame
CROSSHAIR_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_CURSOR
+ + + + + + + +
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
+ + + + + + + +
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
+ + + + + + + +
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
+  + + + + + + + + + + +
+Constructor Summary
View() + +
+          Create a new instance of the view
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidenableStartTurnPanel(boolean enable) + +
+          Enables or disables the player's StartTurnPanel
+ voidenableWinPanel(boolean enable) + +
+          Enables or disables the panel shown when a player has won
+ IEventgetNewGameEvent() + +
+          The new game event is emitted when the player wants to start a new game
+ IPlayerPanelgetPlayerPanel() + +
+          Returns the player panel
+ IEventgetQuitEvent() + +
+          The quit event is emitted when the player wants to quit the game
+ IEventgetStartTurnEvent() + +
+          The start turn event is emitted when the player wants to start his turn
+ ITablePanelgetTablePanel() + +
+          Returns the table
+ voidsetCurrentPlayerName(java.lang.String playerName) + +
+          Sets the current player's name
+ voidsetSelectedStones(java.util.Collection<Stone> stones) + +
+          Sets the stones that are to be painted selected
+ + + + + + + +
Methods inherited from class javax.swing.JFrame
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, update
+ + + + + + + +
Methods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
+ + + + + + + +
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setVisible, show, toBack, toFront
+ + + + + + + +
Methods inherited from class java.awt.Container
add, 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, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
+ + + + + + + +
Methods inherited from class java.awt.Component
action, 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, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, 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, isOpaque, 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, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+View

+
+public View()
+
+
Create a new instance of the view +

+

+ + + + + + + + +
+Method Detail
+ +

+getTablePanel

+
+public ITablePanel getTablePanel()
+
+
Description copied from interface: IView
+
Returns the table +

+

+
Specified by:
getTablePanel in interface IView
+
+
+ +
Returns:
the table
+
+
+
+ +

+getPlayerPanel

+
+public IPlayerPanel getPlayerPanel()
+
+
Description copied from interface: IView
+
Returns the player panel +

+

+
Specified by:
getPlayerPanel in interface IView
+
+
+ +
Returns:
the playerPanel
+
+
+
+ +

+setSelectedStones

+
+public void setSelectedStones(java.util.Collection<Stone> stones)
+
+
Description copied from interface: IView
+
Sets the stones that are to be painted selected +

+

+
Specified by:
setSelectedStones in interface IView
+
+
+
Parameters:
stones - the stones to be painted selected
+
+
+
+ +

+enableStartTurnPanel

+
+public void enableStartTurnPanel(boolean enable)
+
+
Description copied from interface: IView
+
Enables or disables the player's StartTurnPanel +

+

+
Specified by:
enableStartTurnPanel in interface IView
+
+
+
Parameters:
enable - enable/disable
+
+
+
+ +

+enableWinPanel

+
+public void enableWinPanel(boolean enable)
+
+
Description copied from interface: IView
+
Enables or disables the panel shown when a player has won +

+

+
Specified by:
enableWinPanel in interface IView
+
+
+
Parameters:
enable - enable/disable
+
+
+
+ +

+setCurrentPlayerName

+
+public void setCurrentPlayerName(java.lang.String playerName)
+
+
Description copied from interface: IView
+
Sets the current player's name +

+

+
Specified by:
setCurrentPlayerName in interface IView
+
+
+
Parameters:
playerName - the player name
+
+
+
+ +

+getStartTurnEvent

+
+public IEvent getStartTurnEvent()
+
+
Description copied from interface: IView
+
The start turn event is emitted when the player wants to start his turn +

+

+
Specified by:
getStartTurnEvent in interface IView
+
+
+ +
Returns:
the event
+
+
+
+ +

+getNewGameEvent

+
+public IEvent getNewGameEvent()
+
+
Description copied from interface: IView
+
The new game event is emitted when the player wants to start a new game +

+

+
Specified by:
getNewGameEvent in interface IView
+
+
+ +
Returns:
the event
+
+
+
+ +

+getQuitEvent

+
+public IEvent getQuitEvent()
+
+
Description copied from interface: IView
+
The quit event is emitted when the player wants to quit the game +

+

+
Specified by:
getQuitEvent in interface IView
+
+
+ +
Returns:
the event
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/WinPanel.html b/doc/jrummikub/view/impl/WinPanel.html new file mode 100644 index 0000000..cc701d8 --- /dev/null +++ b/doc/jrummikub/view/impl/WinPanel.html @@ -0,0 +1,432 @@ + + + + + + +WinPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +jrummikub.view.impl +
+Class WinPanel

+
+java.lang.Object
+  extended by java.awt.Component
+      extended by java.awt.Container
+          extended by javax.swing.JComponent
+              extended by javax.swing.JPanel
+                  extended by jrummikub.view.impl.WinPanel
+
+
+
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible
+
+
+
+
 class WinPanel
extends javax.swing.JPanel
+ + +

+A panel that is displayed when a player has won +

+ +

+


+ +

+ + + + + + + +
+Nested Class Summary
+ + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
+  + + + + + + + + +
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
+  + + + + + + + + +
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
+  + + + + + + + +
+Field Summary
+ + + + + + + +
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
WinPanel() + +
+          Creates a new WinPanel
+  + + + + + + + + + + + + + + + + + + + +
+Method Summary
+(package private)  IEventgetNewGameEvent() + +
+          The new game event is emitted when the player wants to start a new game
+(package private)  IEventgetQuitEvent() + +
+          The quit event is emitted when the player wants to quit the program
+(package private)  voidsetCurrentPlayerName(java.lang.String name) + +
+          Sets the name of the current player
+ + + + + + + +
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
+ + + + + + + +
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, 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, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
+ + + + + + + +
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
+ + + + + + + +
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, 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, hide, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, 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
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+WinPanel

+
+WinPanel()
+
+
Creates a new WinPanel +

+

+ + + + + + + + +
+Method Detail
+ +

+setCurrentPlayerName

+
+void setCurrentPlayerName(java.lang.String name)
+
+
Sets the name of the current player +

+

+
Parameters:
name - the player name
+
+
+
+ +

+getNewGameEvent

+
+IEvent getNewGameEvent()
+
+
The new game event is emitted when the player wants to start a new game +

+

+ +
Returns:
the event
+
+
+
+ +

+getQuitEvent

+
+IEvent getQuitEvent()
+
+
The quit event is emitted when the player wants to quit the program +

+

+ +
Returns:
the event
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/class-use/AbstractStonePanel.html b/doc/jrummikub/view/impl/class-use/AbstractStonePanel.html new file mode 100644 index 0000000..bd33100 --- /dev/null +++ b/doc/jrummikub/view/impl/class-use/AbstractStonePanel.html @@ -0,0 +1,196 @@ + + + + + + +Uses of Class jrummikub.view.impl.AbstractStonePanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
jrummikub.view.impl.AbstractStonePanel

+
+ + + + + + + + + +
+Packages that use AbstractStonePanel
jrummikub.view.impl  
+  +

+ + + + + +
+Uses of AbstractStonePanel in jrummikub.view.impl
+  +

+ + + + + + + + + + + + + + + + + +
Subclasses of AbstractStonePanel in jrummikub.view.impl
+(package private)  classHandPanel + +
+          Implementation of the board
+(package private)  classStoneCollectionPanel + +
+          Implementation of the stone collection (selection)
+(package private)  classTablePanel + +
+          The implementation of the table
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/class-use/HandPanel.html b/doc/jrummikub/view/impl/class-use/HandPanel.html new file mode 100644 index 0000000..4ad35e3 --- /dev/null +++ b/doc/jrummikub/view/impl/class-use/HandPanel.html @@ -0,0 +1,180 @@ + + + + + + +Uses of Class jrummikub.view.impl.HandPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
jrummikub.view.impl.HandPanel

+
+ + + + + + + + + +
+Packages that use HandPanel
jrummikub.view.impl  
+  +

+ + + + + +
+Uses of HandPanel in jrummikub.view.impl
+  +

+ + + + + + + + + +
Methods in jrummikub.view.impl that return HandPanel
+ HandPanelPlayerPanel.getHandPanel() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/class-use/PlayerPanel.html b/doc/jrummikub/view/impl/class-use/PlayerPanel.html new file mode 100644 index 0000000..795ee8a --- /dev/null +++ b/doc/jrummikub/view/impl/class-use/PlayerPanel.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class jrummikub.view.impl.PlayerPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
jrummikub.view.impl.PlayerPanel

+
+No usage of jrummikub.view.impl.PlayerPanel +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/class-use/StartTurnPanel.html b/doc/jrummikub/view/impl/class-use/StartTurnPanel.html new file mode 100644 index 0000000..22c81a1 --- /dev/null +++ b/doc/jrummikub/view/impl/class-use/StartTurnPanel.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class jrummikub.view.impl.StartTurnPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
jrummikub.view.impl.StartTurnPanel

+
+No usage of jrummikub.view.impl.StartTurnPanel +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/class-use/StoneCollectionPanel.html b/doc/jrummikub/view/impl/class-use/StoneCollectionPanel.html new file mode 100644 index 0000000..16c17ca --- /dev/null +++ b/doc/jrummikub/view/impl/class-use/StoneCollectionPanel.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class jrummikub.view.impl.StoneCollectionPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
jrummikub.view.impl.StoneCollectionPanel

+
+No usage of jrummikub.view.impl.StoneCollectionPanel +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/class-use/StonePainter.html b/doc/jrummikub/view/impl/class-use/StonePainter.html new file mode 100644 index 0000000..51ed4ae --- /dev/null +++ b/doc/jrummikub/view/impl/class-use/StonePainter.html @@ -0,0 +1,180 @@ + + + + + + +Uses of Class jrummikub.view.impl.StonePainter + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
jrummikub.view.impl.StonePainter

+
+ + + + + + + + + +
+Packages that use StonePainter
jrummikub.view.impl  
+  +

+ + + + + +
+Uses of StonePainter in jrummikub.view.impl
+  +

+ + + + + + + + + +
Methods in jrummikub.view.impl that return StonePainter
+protected  StonePainterAbstractStonePanel.getStonePainter() + +
+           
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/class-use/TablePanel.html b/doc/jrummikub/view/impl/class-use/TablePanel.html new file mode 100644 index 0000000..f9d57be --- /dev/null +++ b/doc/jrummikub/view/impl/class-use/TablePanel.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class jrummikub.view.impl.TablePanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
jrummikub.view.impl.TablePanel

+
+No usage of jrummikub.view.impl.TablePanel +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/class-use/View.html b/doc/jrummikub/view/impl/class-use/View.html new file mode 100644 index 0000000..e12e048 --- /dev/null +++ b/doc/jrummikub/view/impl/class-use/View.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class jrummikub.view.impl.View + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
jrummikub.view.impl.View

+
+No usage of jrummikub.view.impl.View +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/class-use/WinPanel.html b/doc/jrummikub/view/impl/class-use/WinPanel.html new file mode 100644 index 0000000..ee28a3a --- /dev/null +++ b/doc/jrummikub/view/impl/class-use/WinPanel.html @@ -0,0 +1,144 @@ + + + + + + +Uses of Class jrummikub.view.impl.WinPanel + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Class
jrummikub.view.impl.WinPanel

+
+No usage of jrummikub.view.impl.WinPanel +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/package-frame.html b/doc/jrummikub/view/impl/package-frame.html new file mode 100644 index 0000000..4f17fb6 --- /dev/null +++ b/doc/jrummikub/view/impl/package-frame.html @@ -0,0 +1,48 @@ + + + + + + +jrummikub.view.impl + + + + + + + + + + + +jrummikub.view.impl + + + + +
+Classes  + +
+AbstractStonePanel +
+HandPanel +
+PlayerPanel +
+StartTurnPanel +
+StoneCollectionPanel +
+StonePainter +
+TablePanel +
+View +
+WinPanel
+ + + + diff --git a/doc/jrummikub/view/impl/package-summary.html b/doc/jrummikub/view/impl/package-summary.html new file mode 100644 index 0000000..5908ea3 --- /dev/null +++ b/doc/jrummikub/view/impl/package-summary.html @@ -0,0 +1,190 @@ + + + + + + +jrummikub.view.impl + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+

+Package jrummikub.view.impl +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Class Summary
AbstractStonePanelBase class for panels that draw stones
HandPanelImplementation of the board
PlayerPanelImplementation of the player panel
StartTurnPanelA panel that is displayed before a player's turn
StoneCollectionPanelImplementation of the stone collection (selection)
StonePainterThe StonePainter paints stones and converts between pixel and grid + coordinates
TablePanelThe implementation of the table
ViewImplementation of the top-level view interface
WinPanelA panel that is displayed when a player has won
+  + +

+

+
+
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/package-tree.html b/doc/jrummikub/view/impl/package-tree.html new file mode 100644 index 0000000..94b6db8 --- /dev/null +++ b/doc/jrummikub/view/impl/package-tree.html @@ -0,0 +1,181 @@ + + + + + + +jrummikub.view.impl Class Hierarchy + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Hierarchy For Package jrummikub.view.impl +

+
+
+
Package Hierarchies:
All Packages
+
+

+Class Hierarchy +

+ +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + diff --git a/doc/jrummikub/view/impl/package-use.html b/doc/jrummikub/view/impl/package-use.html new file mode 100644 index 0000000..2c2e4f0 --- /dev/null +++ b/doc/jrummikub/view/impl/package-use.html @@ -0,0 +1,183 @@ + + + + + + +Uses of Package jrummikub.view.impl + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ + + +
+
+

+Uses of Package
jrummikub.view.impl

+
+ + + + + + + + + +
+Packages that use jrummikub.view.impl
jrummikub.view.impl  
+  +

+ + + + + + + + + + + + + + +
+Classes in jrummikub.view.impl used by jrummikub.view.impl
AbstractStonePanel + +
+          Base class for panels that draw stones
HandPanel + +
+          Implementation of the board
StonePainter + +
+          The StonePainter paints stones and converts between pixel and grid + coordinates
+  +

+


+ + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + -- cgit v1.2.3