diff options
author | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-07-06 16:36:06 +0200 |
---|---|---|
committer | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-07-06 16:36:06 +0200 |
commit | 51b7fbe822bd9a3804c061f0b844884769d7ddba (patch) | |
tree | 152d79321131936d1bc49e959d2a7a2628c592cb /doc/jrummikub/view/impl/StonePainter.html | |
parent | 3193477354fc63477a3f42c94023fa84c129adf1 (diff) | |
download | JRummikub-51b7fbe822bd9a3804c061f0b844884769d7ddba.tar JRummikub-51b7fbe822bd9a3804c061f0b844884769d7ddba.zip |
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@609 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'doc/jrummikub/view/impl/StonePainter.html')
-rw-r--r-- | doc/jrummikub/view/impl/StonePainter.html | 599 |
1 files changed, 564 insertions, 35 deletions
diff --git a/doc/jrummikub/view/impl/StonePainter.html b/doc/jrummikub/view/impl/StonePainter.html index be9d94c..61a2c92 100644 --- a/doc/jrummikub/view/impl/StonePainter.html +++ b/doc/jrummikub/view/impl/StonePainter.html @@ -2,12 +2,12 @@ <!--NewPage--> <HTML> <HEAD> -<!-- Generated by javadoc (build 1.6.0_22) on Tue May 10 17:05:03 CEST 2011 --> +<!-- Generated by javadoc (build 1.6.0_22) on Tue Jul 05 21:51:59 CEST 2011 --> <TITLE> StonePainter </TITLE> -<META NAME="date" CONTENT="2011-05-10"> +<META NAME="date" CONTENT="2011-07-05"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> @@ -56,7 +56,7 @@ function windowTitle() <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../jrummikub/view/impl/StoneCollectionPanel.html" title="class in jrummikub.view.impl"><B>PREV CLASS</B></A> - <A HREF="../../../jrummikub/view/impl/TablePanel.html" title="class in jrummikub.view.impl"><B>NEXT CLASS</B></A></FONT></TD> + <A HREF="../../../jrummikub/view/impl/StonePainter.StoneState.html" title="enum in jrummikub.view.impl"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?jrummikub/view/impl/StonePainter.html" target="_top"><B>FRAMES</B></A> <A HREF="StonePainter.html" target="_top"><B>NO FRAMES</B></A> @@ -76,7 +76,7 @@ function windowTitle() </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> - SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> + SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> @@ -109,7 +109,24 @@ The StonePainter paints stones and converts between pixel and grid <HR> <P> -<!-- =========== FIELD SUMMARY =========== --> +<!-- ======== NESTED CLASS SUMMARY ======== --> + +<A NAME="nested_class_summary"><!-- --></A> +<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> +<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> +<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> +<B>Nested Class Summary</B></FONT></TH> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>(package private) static class</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.StoneState.html" title="enum in jrummikub.view.impl">StonePainter.StoneState</A></B></CODE> + +<BR> + </TD> +</TR> +</TABLE> + <!-- =========== FIELD SUMMARY =========== --> <A NAME="field_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> @@ -119,7 +136,71 @@ The StonePainter paints stones and converts between pixel and grid </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE>static float</CODE></FONT></TD> +<CODE>private static double</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#ASPECT_RATIO">ASPECT_RATIO</A></B></CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>private static java.awt.Color</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#BACKGROUND_COLOR">BACKGROUND_COLOR</A></B></CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>private static double</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#BRIGHTER_SCALE">BRIGHTER_SCALE</A></B></CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>private static double</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#CIRCLE_POS">CIRCLE_POS</A></B></CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>private static double</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#CIRCLE_WIDTH">CIRCLE_WIDTH</A></B></CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>private static double</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#DEFAULT_WIDTH">DEFAULT_WIDTH</A></B></CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>private java.util.Map<<A HREF="../../../jrummikub/view/impl/StonePainter.StoneState.html" title="enum in jrummikub.view.impl">StonePainter.StoneState</A>,java.util.Map<<A HREF="../../../jrummikub/model/StoneColor.html" title="enum in jrummikub.model">StoneColor</A>,java.util.Map<java.lang.Integer,java.awt.image.BufferedImage>>></CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#defaultStones">defaultStones</A></B></CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>private static double</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#FACE_WIDTH">FACE_WIDTH</A></B></CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>(package private) static double</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#HEIGHT_SCALE">HEIGHT_SCALE</A></B></CODE> <BR> @@ -127,7 +208,47 @@ The StonePainter paints stones and converts between pixel and grid </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE>static float</CODE></FONT></TD> +<CODE>private static double</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#HOVER_RATIO">HOVER_RATIO</A></B></CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>private java.util.Map<<A HREF="../../../jrummikub/view/impl/StonePainter.StoneState.html" title="enum in jrummikub.view.impl">StonePainter.StoneState</A>,java.util.Map<<A HREF="../../../jrummikub/model/StoneColor.html" title="enum in jrummikub.model">StoneColor</A>,java.util.Map<java.lang.Integer,java.awt.image.BufferedImage>>></CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#hoveredStones">hoveredStones</A></B></CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>private static double</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#REDDEN_RATIO">REDDEN_RATIO</A></B></CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>private double</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#scale">scale</A></B></CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>private static double</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#TEXT_POS">TEXT_POS</A></B></CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>(package private) static double</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#WIDTH_SCALE">WIDTH_SCALE</A></B></CODE> <BR> @@ -144,7 +265,7 @@ The StonePainter paints stones and converts between pixel and grid <B>Constructor Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> -<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#StonePainter(float)">StonePainter</A></B>(float scale)</CODE> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#StonePainter(double)">StonePainter</A></B>(double scale)</CODE> <BR> </TD> @@ -161,7 +282,15 @@ The StonePainter paints stones and converts between pixel and grid </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../jrummikub/model/Position.html" title="class in jrummikub.model">Position</A></CODE></FONT></TD> +<CODE>private static java.awt.Color</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#brighter(java.awt.Color)">brighter</A></B>(java.awt.Color color)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>(package private) <A HREF="../../../jrummikub/model/Position.html" title="class in jrummikub.model">Position</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#calculatePosition(int, int)">calculatePosition</A></B>(int x, int y)</CODE> @@ -170,7 +299,23 @@ The StonePainter paints stones and converts between pixel and grid </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> int</CODE></FONT></TD> +<CODE>private static int</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#even(double)">even</A></B>(double f)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>(package private) static java.awt.Color</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#getColor(jrummikub.model.StoneColor)">getColor</A></B>(<A HREF="../../../jrummikub/model/StoneColor.html" title="enum in jrummikub.model">StoneColor</A> color)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>(package private) int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#getStoneHeight()">getStoneHeight</A></B>()</CODE> <BR> @@ -178,7 +323,18 @@ The StonePainter paints stones and converts between pixel and grid </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> int</CODE></FONT></TD> +<CODE>private java.awt.image.BufferedImage</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#getStoneImage(jrummikub.model.StoneColor, int, jrummikub.view.impl.StonePainter.StoneState, boolean)">getStoneImage</A></B>(<A HREF="../../../jrummikub/model/StoneColor.html" title="enum in jrummikub.model">StoneColor</A> color, + int value, + <A HREF="../../../jrummikub/view/impl/StonePainter.StoneState.html" title="enum in jrummikub.view.impl">StonePainter.StoneState</A> state, + boolean hovered)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>(package private) int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#getStoneWidth()">getStoneWidth</A></B>()</CODE> <BR> @@ -186,11 +342,48 @@ The StonePainter paints stones and converts between pixel and grid </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> void</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#paintStone(java.awt.Graphics2D, jrummikub.model.Stone, jrummikub.model.Position, boolean, boolean)">paintStone</A></B>(java.awt.Graphics2D g, +<CODE>private static java.awt.Color</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#hover(java.awt.Color)">hover</A></B>(java.awt.Color color)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>private void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#paintCircle(java.awt.Graphics2D, java.awt.Rectangle, java.awt.Color)">paintCircle</A></B>(java.awt.Graphics2D g, + java.awt.Rectangle r, + java.awt.Color background)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>private void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#paintJoker(java.awt.Graphics2D, java.awt.Rectangle, java.awt.Color)">paintJoker</A></B>(java.awt.Graphics2D g, + java.awt.Rectangle r, + java.awt.Color color)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>private void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#paintJokerFace(java.awt.Graphics2D, java.awt.Rectangle)">paintJokerFace</A></B>(java.awt.Graphics2D g, + java.awt.Rectangle r)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>(package private) void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#paintStone(java.awt.Graphics2D, jrummikub.model.Stone, jrummikub.model.Position, jrummikub.view.impl.StonePainter.StoneState, boolean)">paintStone</A></B>(java.awt.Graphics2D g, <A HREF="../../../jrummikub/model/Stone.html" title="class in jrummikub.model">Stone</A> stone, <A HREF="../../../jrummikub/model/Position.html" title="class in jrummikub.model">Position</A> p, - boolean selected, + <A HREF="../../../jrummikub/view/impl/StonePainter.StoneState.html" title="enum in jrummikub.view.impl">StonePainter.StoneState</A> state, boolean hovered)</CODE> <BR> @@ -198,8 +391,55 @@ The StonePainter paints stones and converts between pixel and grid </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> void</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#setScale(float)">setScale</A></B>(float scale)</CODE> +<CODE>private void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#paintStoneBackground(java.awt.Graphics2D, java.awt.Rectangle, java.awt.Color)">paintStoneBackground</A></B>(java.awt.Graphics2D g, + java.awt.Rectangle r, + java.awt.Color background)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>private void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#paintStoneValue(java.awt.Graphics2D, java.awt.Rectangle, java.awt.Color, int)">paintStoneValue</A></B>(java.awt.Graphics2D g, + java.awt.Rectangle r, + java.awt.Color color, + int v)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>private java.awt.image.BufferedImage</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#prepaintStone(java.awt.Color, java.awt.Color, int)">prepaintStone</A></B>(java.awt.Color fg, + java.awt.Color bg, + int value)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>private static java.awt.Color</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#redden(java.awt.Color)">redden</A></B>(java.awt.Color color)</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>private void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#resetPrepaint()">resetPrepaint</A></B>()</CODE> + +<BR> + </TD> +</TR> +<TR BGCOLOR="white" CLASS="TableRowColor"> +<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> +<CODE>(package private) void</CODE></FONT></TD> +<TD><CODE><B><A HREF="../../../jrummikub/view/impl/StonePainter.html#setScale(double)">setScale</A></B>(double scale)</CODE> <BR> Sets the new grid scale</TD> @@ -227,10 +467,130 @@ The StonePainter paints stones and converts between pixel and grid </TR> </TABLE> +<A NAME="ASPECT_RATIO"><!-- --></A><H3> +ASPECT_RATIO</H3> +<PRE> +private static final double <B>ASPECT_RATIO</B></PRE> +<DL> +<DL> +<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#jrummikub.view.impl.StonePainter.ASPECT_RATIO">Constant Field Values</A></DL> +</DL> +<HR> + +<A NAME="DEFAULT_WIDTH"><!-- --></A><H3> +DEFAULT_WIDTH</H3> +<PRE> +private static final double <B>DEFAULT_WIDTH</B></PRE> +<DL> +<DL> +<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#jrummikub.view.impl.StonePainter.DEFAULT_WIDTH">Constant Field Values</A></DL> +</DL> +<HR> + +<A NAME="TEXT_POS"><!-- --></A><H3> +TEXT_POS</H3> +<PRE> +private static final double <B>TEXT_POS</B></PRE> +<DL> +<DL> +<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#jrummikub.view.impl.StonePainter.TEXT_POS">Constant Field Values</A></DL> +</DL> +<HR> + +<A NAME="FACE_WIDTH"><!-- --></A><H3> +FACE_WIDTH</H3> +<PRE> +private static final double <B>FACE_WIDTH</B></PRE> +<DL> +<DL> +<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#jrummikub.view.impl.StonePainter.FACE_WIDTH">Constant Field Values</A></DL> +</DL> +<HR> + +<A NAME="CIRCLE_POS"><!-- --></A><H3> +CIRCLE_POS</H3> +<PRE> +private static final double <B>CIRCLE_POS</B></PRE> +<DL> +<DL> +<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#jrummikub.view.impl.StonePainter.CIRCLE_POS">Constant Field Values</A></DL> +</DL> +<HR> + +<A NAME="CIRCLE_WIDTH"><!-- --></A><H3> +CIRCLE_WIDTH</H3> +<PRE> +private static final double <B>CIRCLE_WIDTH</B></PRE> +<DL> +<DL> +<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#jrummikub.view.impl.StonePainter.CIRCLE_WIDTH">Constant Field Values</A></DL> +</DL> +<HR> + +<A NAME="BACKGROUND_COLOR"><!-- --></A><H3> +BACKGROUND_COLOR</H3> +<PRE> +private static final java.awt.Color <B>BACKGROUND_COLOR</B></PRE> +<DL> +<DL> +</DL> +</DL> +<HR> + +<A NAME="BRIGHTER_SCALE"><!-- --></A><H3> +BRIGHTER_SCALE</H3> +<PRE> +private static final double <B>BRIGHTER_SCALE</B></PRE> +<DL> +<DL> +<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#jrummikub.view.impl.StonePainter.BRIGHTER_SCALE">Constant Field Values</A></DL> +</DL> +<HR> + +<A NAME="HOVER_RATIO"><!-- --></A><H3> +HOVER_RATIO</H3> +<PRE> +private static final double <B>HOVER_RATIO</B></PRE> +<DL> +<DL> +<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#jrummikub.view.impl.StonePainter.HOVER_RATIO">Constant Field Values</A></DL> +</DL> +<HR> + +<A NAME="REDDEN_RATIO"><!-- --></A><H3> +REDDEN_RATIO</H3> +<PRE> +private static final double <B>REDDEN_RATIO</B></PRE> +<DL> +<DL> +<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#jrummikub.view.impl.StonePainter.REDDEN_RATIO">Constant Field Values</A></DL> +</DL> +<HR> + +<A NAME="defaultStones"><!-- --></A><H3> +defaultStones</H3> +<PRE> +private java.util.Map<<A HREF="../../../jrummikub/view/impl/StonePainter.StoneState.html" title="enum in jrummikub.view.impl">StonePainter.StoneState</A>,java.util.Map<<A HREF="../../../jrummikub/model/StoneColor.html" title="enum in jrummikub.model">StoneColor</A>,java.util.Map<java.lang.Integer,java.awt.image.BufferedImage>>> <B>defaultStones</B></PRE> +<DL> +<DL> +</DL> +</DL> +<HR> + +<A NAME="hoveredStones"><!-- --></A><H3> +hoveredStones</H3> +<PRE> +private java.util.Map<<A HREF="../../../jrummikub/view/impl/StonePainter.StoneState.html" title="enum in jrummikub.view.impl">StonePainter.StoneState</A>,java.util.Map<<A HREF="../../../jrummikub/model/StoneColor.html" title="enum in jrummikub.model">StoneColor</A>,java.util.Map<java.lang.Integer,java.awt.image.BufferedImage>>> <B>hoveredStones</B></PRE> +<DL> +<DL> +</DL> +</DL> +<HR> + <A NAME="WIDTH_SCALE"><!-- --></A><H3> WIDTH_SCALE</H3> <PRE> -public static final float <B>WIDTH_SCALE</B></PRE> +static final double <B>WIDTH_SCALE</B></PRE> <DL> <DD>The width of one pixel in the scale of 1.0 <P> @@ -242,13 +602,23 @@ public static final float <B>WIDTH_SCALE</B></PRE> <A NAME="HEIGHT_SCALE"><!-- --></A><H3> HEIGHT_SCALE</H3> <PRE> -public static final float <B>HEIGHT_SCALE</B></PRE> +static final double <B>HEIGHT_SCALE</B></PRE> <DL> <DD>The height of one pixel in the scale of 1.0 <P> <DL> <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#jrummikub.view.impl.StonePainter.HEIGHT_SCALE">Constant Field Values</A></DL> </DL> +<HR> + +<A NAME="scale"><!-- --></A><H3> +scale</H3> +<PRE> +private double <B>scale</B></PRE> +<DL> +<DL> +</DL> +</DL> <!-- ========= CONSTRUCTOR DETAIL ======== --> @@ -260,10 +630,10 @@ public static final float <B>HEIGHT_SCALE</B></PRE> </TR> </TABLE> -<A NAME="StonePainter(float)"><!-- --></A><H3> +<A NAME="StonePainter(double)"><!-- --></A><H3> StonePainter</H3> <PRE> -<B>StonePainter</B>(float scale)</PRE> +<B>StonePainter</B>(double scale)</PRE> <DL> <DL> <DT><B>Parameters:</B><DD><CODE>scale</CODE> - the scaling factor for the grid coordinates</DL> @@ -279,10 +649,65 @@ StonePainter</H3> </TR> </TABLE> -<A NAME="setScale(float)"><!-- --></A><H3> +<A NAME="even(double)"><!-- --></A><H3> +even</H3> +<PRE> +private static int <B>even</B>(double f)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="brighter(java.awt.Color)"><!-- --></A><H3> +brighter</H3> +<PRE> +private static java.awt.Color <B>brighter</B>(java.awt.Color color)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="hover(java.awt.Color)"><!-- --></A><H3> +hover</H3> +<PRE> +private static java.awt.Color <B>hover</B>(java.awt.Color color)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="redden(java.awt.Color)"><!-- --></A><H3> +redden</H3> +<PRE> +private static java.awt.Color <B>redden</B>(java.awt.Color color)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="getColor(jrummikub.model.StoneColor)"><!-- --></A><H3> +getColor</H3> +<PRE> +static java.awt.Color <B>getColor</B>(<A HREF="../../../jrummikub/model/StoneColor.html" title="enum in jrummikub.model">StoneColor</A> color)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="setScale(double)"><!-- --></A><H3> setScale</H3> <PRE> -public void <B>setScale</B>(float scale)</PRE> +void <B>setScale</B>(double scale)</PRE> <DL> <DD>Sets the new grid scale <P> @@ -295,8 +720,8 @@ public void <B>setScale</B>(float scale)</PRE> <A NAME="calculatePosition(int, int)"><!-- --></A><H3> calculatePosition</H3> <PRE> -public <A HREF="../../../jrummikub/model/Position.html" title="class in jrummikub.model">Position</A> <B>calculatePosition</B>(int x, - int y)</PRE> +<A HREF="../../../jrummikub/model/Position.html" title="class in jrummikub.model">Position</A> <B>calculatePosition</B>(int x, + int y)</PRE> <DL> <DD><DL> <DT><B>Parameters:</B><DD><CODE>x</CODE> - x position in screen coordinates<DD><CODE>y</CODE> - y position in screen coordinates @@ -308,7 +733,7 @@ public <A HREF="../../../jrummikub/model/Position.html" title="class in jrummiku <A NAME="getStoneWidth()"><!-- --></A><H3> getStoneWidth</H3> <PRE> -public int <B>getStoneWidth</B>()</PRE> +int <B>getStoneWidth</B>()</PRE> <DL> <DD><DL> @@ -320,7 +745,7 @@ public int <B>getStoneWidth</B>()</PRE> <A NAME="getStoneHeight()"><!-- --></A><H3> getStoneHeight</H3> <PRE> -public int <B>getStoneHeight</B>()</PRE> +int <B>getStoneHeight</B>()</PRE> <DL> <DD><DL> @@ -329,19 +754,123 @@ public int <B>getStoneHeight</B>()</PRE> </DL> <HR> -<A NAME="paintStone(java.awt.Graphics2D, jrummikub.model.Stone, jrummikub.model.Position, boolean, boolean)"><!-- --></A><H3> +<A NAME="prepaintStone(java.awt.Color, java.awt.Color, int)"><!-- --></A><H3> +prepaintStone</H3> +<PRE> +private java.awt.image.BufferedImage <B>prepaintStone</B>(java.awt.Color fg, + java.awt.Color bg, + int value)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="getStoneImage(jrummikub.model.StoneColor, int, jrummikub.view.impl.StonePainter.StoneState, boolean)"><!-- --></A><H3> +getStoneImage</H3> +<PRE> +private java.awt.image.BufferedImage <B>getStoneImage</B>(<A HREF="../../../jrummikub/model/StoneColor.html" title="enum in jrummikub.model">StoneColor</A> color, + int value, + <A HREF="../../../jrummikub/view/impl/StonePainter.StoneState.html" title="enum in jrummikub.view.impl">StonePainter.StoneState</A> state, + boolean hovered)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="resetPrepaint()"><!-- --></A><H3> +resetPrepaint</H3> +<PRE> +private void <B>resetPrepaint</B>()</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="paintStoneBackground(java.awt.Graphics2D, java.awt.Rectangle, java.awt.Color)"><!-- --></A><H3> +paintStoneBackground</H3> +<PRE> +private void <B>paintStoneBackground</B>(java.awt.Graphics2D g, + java.awt.Rectangle r, + java.awt.Color background)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="paintJokerFace(java.awt.Graphics2D, java.awt.Rectangle)"><!-- --></A><H3> +paintJokerFace</H3> +<PRE> +private void <B>paintJokerFace</B>(java.awt.Graphics2D g, + java.awt.Rectangle r)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="paintJoker(java.awt.Graphics2D, java.awt.Rectangle, java.awt.Color)"><!-- --></A><H3> +paintJoker</H3> +<PRE> +private void <B>paintJoker</B>(java.awt.Graphics2D g, + java.awt.Rectangle r, + java.awt.Color color)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="paintStoneValue(java.awt.Graphics2D, java.awt.Rectangle, java.awt.Color, int)"><!-- --></A><H3> +paintStoneValue</H3> +<PRE> +private void <B>paintStoneValue</B>(java.awt.Graphics2D g, + java.awt.Rectangle r, + java.awt.Color color, + int v)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="paintCircle(java.awt.Graphics2D, java.awt.Rectangle, java.awt.Color)"><!-- --></A><H3> +paintCircle</H3> +<PRE> +private void <B>paintCircle</B>(java.awt.Graphics2D g, + java.awt.Rectangle r, + java.awt.Color background)</PRE> +<DL> +<DD><DL> +</DL> +</DD> +</DL> +<HR> + +<A NAME="paintStone(java.awt.Graphics2D, jrummikub.model.Stone, jrummikub.model.Position, jrummikub.view.impl.StonePainter.StoneState, boolean)"><!-- --></A><H3> paintStone</H3> <PRE> -public void <B>paintStone</B>(java.awt.Graphics2D g, - <A HREF="../../../jrummikub/model/Stone.html" title="class in jrummikub.model">Stone</A> stone, - <A HREF="../../../jrummikub/model/Position.html" title="class in jrummikub.model">Position</A> p, - boolean selected, - boolean hovered)</PRE> +void <B>paintStone</B>(java.awt.Graphics2D g, + <A HREF="../../../jrummikub/model/Stone.html" title="class in jrummikub.model">Stone</A> stone, + <A HREF="../../../jrummikub/model/Position.html" title="class in jrummikub.model">Position</A> p, + <A HREF="../../../jrummikub/view/impl/StonePainter.StoneState.html" title="enum in jrummikub.view.impl">StonePainter.StoneState</A> state, + boolean hovered)</PRE> <DL> <DD>Paints a stone <P> <DD><DL> -<DT><B>Parameters:</B><DD><CODE>g</CODE> - the graphics context to paint the stone on<DD><CODE>stone</CODE> - the stone to paint<DD><CODE>p</CODE> - the position of the stone<DD><CODE>selected</CODE> - if selected is true the stone will be painted darker<DD><CODE>hovered</CODE> - if hovered is true the stone will be painted brighter</DL> +<DT><B>Parameters:</B><DD><CODE>g</CODE> - the graphics context to paint the stone on<DD><CODE>stone</CODE> - the stone to paint<DD><CODE>p</CODE> - the position of the stone<DD><CODE>state</CODE> - if the stone is selected the stone will be painted darker, if + it is invalid it will be painted in red<DD><CODE>hovered</CODE> - if hovered is true the stone will be painted brighter</DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> @@ -376,7 +905,7 @@ public void <B>paintStone</B>(java.awt.Graphics2D g, <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../jrummikub/view/impl/StoneCollectionPanel.html" title="class in jrummikub.view.impl"><B>PREV CLASS</B></A> - <A HREF="../../../jrummikub/view/impl/TablePanel.html" title="class in jrummikub.view.impl"><B>NEXT CLASS</B></A></FONT></TD> + <A HREF="../../../jrummikub/view/impl/StonePainter.StoneState.html" title="enum in jrummikub.view.impl"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?jrummikub/view/impl/StonePainter.html" target="_top"><B>FRAMES</B></A> <A HREF="StonePainter.html" target="_top"><B>NO FRAMES</B></A> @@ -396,7 +925,7 @@ public void <B>paintStone</B>(java.awt.Graphics2D g, </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> - SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> + SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> |