From 51b7fbe822bd9a3804c061f0b844884769d7ddba Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Wed, 6 Jul 2011 16:36:06 +0200 Subject: Javadoc git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@609 72836036-5685-4462-b002-a69064685172 --- doc/jrummikub/view/impl/HandPanel.html | 427 +++++++++++++++++++++++++++++---- 1 file changed, 383 insertions(+), 44 deletions(-) (limited to 'doc/jrummikub/view/impl/HandPanel.html') diff --git a/doc/jrummikub/view/impl/HandPanel.html b/doc/jrummikub/view/impl/HandPanel.html index 033fccc..22b1264 100644 --- a/doc/jrummikub/view/impl/HandPanel.html +++ b/doc/jrummikub/view/impl/HandPanel.html @@ -2,12 +2,12 @@ - + HandPanel - + @@ -55,8 +55,8 @@ function windowTitle() PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS FRAMES    NO FRAMES   @@ -76,9 +76,9 @@ function windowTitle() - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD @@ -173,6 +173,86 @@ Implementation of the board Field Summary + + +private static java.awt.image.BufferedImage +BACKGROUND + +
+            + + + +private  int +currentRow + +
+            + + + +private static java.awt.image.BufferedImage +DARK_BACKGROUND + +
+            + + + +private static int +HEIGHT + +
+            + + + +private  int +maxRow + +
+            + + + +private  PlayerPanel +playerPanel + +
+            + + + +private  boolean +repaintAll + +
+            + + + +private  java.awt.image.BufferedImage +scaledBackground + +
+            + + + +private  java.awt.image.BufferedImage +scaledDarkBackground + +
+            + + + +private  java.util.Collection<Stone> +selectedStones + +
+            +   @@ -198,7 +278,7 @@ Implementation of the board - +
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHABORT, ALLBITS, ERROR, FRAMEBITS, PROPERTIES, SOMEBITS, WIDTH
  @@ -211,7 +291,7 @@ Implementation of the board Constructor Summary -HandPanel() +HandPanel(PlayerPanel playerPanel)
          Creates a new Board instance @@ -228,6 +308,40 @@ Implementation of the board +(package private)  boolean +canRowDown() + +
+          Is there a lower row than the current row + + + +(package private)  boolean +canRowUp() + +
+          Is there a higher row than the current row + + + +private  java.awt.image.BufferedImage +getScaledBackground(int size, + java.awt.image.BufferedImage background) + +
+            + + + + Pair<java.lang.Integer,java.lang.Integer> +getTranslation() + +
+          Returns the translation in pixels the stones in this panel are painted + with + + + protected  void paintComponent(java.awt.Graphics g1) @@ -236,19 +350,35 @@ Implementation of the board - void -setHandHeight(int height) +(package private)  int +rescale(int height)
-          Set the number of stones that fit on the hand vertically +          Rescales the hand panel according to window size  void -setHandWidth(int width) +resetCurrentRow()
-          Set the number of stones that fit on the hand horizontally +          Resets the rows currently displayed + + + +(package private)  void +rowDown() + +
+          Updates panel after visible row changed + + + +(package private)  void +rowUp() + +
+          Updates panel after visible row changed @@ -273,7 +403,7 @@ Implementation of the board Methods inherited from class jrummikub.view.impl.AbstractStonePanel -clickAt, getClickEvent, getHoveredStone, getRangeClickEvent, getSetClickEvent, getStoneClickEvent, getStonePainter, getStones, getTranslation, handleOtherClickEvent, handleOtherMoveEvent +clickAt, getClickEvent, getHoveredStone, getRangeClickEvent, getSetClickEvent, getStoneClickEvent, getStonePainter, getStones, handleOtherClickEvent, handleOtherMoveEvent   @@ -342,6 +472,115 @@ Implementation of the board  

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

+HEIGHT

+
+private static final int HEIGHT
+
+
+
See Also:
Constant Field Values
+
+
+ +

+BACKGROUND

+
+private static final java.awt.image.BufferedImage BACKGROUND
+
+
+
+
+
+ +

+DARK_BACKGROUND

+
+private static final java.awt.image.BufferedImage DARK_BACKGROUND
+
+
+
+
+
+ +

+scaledBackground

+
+private java.awt.image.BufferedImage scaledBackground
+
+
+
+
+
+ +

+scaledDarkBackground

+
+private java.awt.image.BufferedImage scaledDarkBackground
+
+
+
+
+
+ +

+playerPanel

+
+private PlayerPanel playerPanel
+
+
+
+
+
+ +

+currentRow

+
+private int currentRow
+
+
+
+
+
+ +

+maxRow

+
+private int maxRow
+
+
+
+
+
+ +

+repaintAll

+
+private boolean repaintAll
+
+
+
+
+
+ +

+selectedStones

+
+private java.util.Collection<Stone> selectedStones
+
+
+
+
+ @@ -352,10 +591,10 @@ Implementation of the board -

+

HandPanel

-HandPanel()
+HandPanel(PlayerPanel playerPanel)
Creates a new Board instance

@@ -371,36 +610,17 @@ HandPanel -

-setHandWidth

+

+getScaledBackground

-public void setHandWidth(int width)
+private java.awt.image.BufferedImage getScaledBackground(int size, + java.awt.image.BufferedImage background)
-
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
+

@@ -436,6 +656,108 @@ public void setStones(java.lang.Iterable<

+rowUp

+
+void rowUp()
+
+
Updates panel after visible row changed +

+

+
+
+
+
+
+
+
+ +

+rowDown

+
+void rowDown()
+
+
Updates panel after visible row changed +

+

+
+
+
+
+
+
+
+ +

+resetCurrentRow

+
+public void resetCurrentRow()
+
+
Description copied from interface: IHandPanel
+
Resets the rows currently displayed +

+

+
Specified by:
resetCurrentRow in interface IHandPanel
+
+
+
+
+
+
+ +

+canRowUp

+
+boolean canRowUp()
+
+
Is there a higher row than the current row +

+

+
+
+
+ +
Returns:
higher row present
+
+
+
+ +

+canRowDown

+
+boolean canRowDown()
+
+
Is there a lower row than the current row +

+

+
+
+
+ +
Returns:
higher row present
+
+
+
+ +

+getTranslation

+
+public 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
+
+
+
+

setSelectedStones

@@ -450,6 +772,23 @@ void setSelectedStones(java.util.Collection<

+rescale

+
+int rescale(int height)
+
+
Rescales the hand panel according to window size +

+

+
+
+
+
Parameters:
height - of hand panel +
Returns:
width of hand panel
+
+

@@ -481,8 +820,8 @@ void setSelectedStones(java.util.Collection<PREV CLASS  - NEXT CLASSPREV CLASS  + NEXT CLASS
FRAMES    NO FRAMES   @@ -502,9 +841,9 @@ void setSelectedStones(java.util.Collection< - SUMMARY: NESTED | FIELD | CONSTR | METHOD + SUMMARY: NESTED | FIELD | CONSTR | METHOD -DETAIL: FIELD | CONSTR | METHOD +DETAIL: FIELD | CONSTR | METHOD -- cgit v1.2.3