summaryrefslogtreecommitdiffstats
path: root/doc/jrummikub/view/impl/AbstractStonePanel.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/jrummikub/view/impl/AbstractStonePanel.html')
-rw-r--r--doc/jrummikub/view/impl/AbstractStonePanel.html210
1 files changed, 198 insertions, 12 deletions
diff --git a/doc/jrummikub/view/impl/AbstractStonePanel.html b/doc/jrummikub/view/impl/AbstractStonePanel.html
index 545d616..3edfcb0 100644
--- a/doc/jrummikub/view/impl/AbstractStonePanel.html
+++ b/doc/jrummikub/view/impl/AbstractStonePanel.html
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_22) on Tue May 10 17:04:59 CEST 2011 -->
+<!-- Generated by javadoc (build 1.6.0_22) on Tue Jul 05 21:51:55 CEST 2011 -->
<TITLE>
AbstractStonePanel
</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">
&nbsp;PREV CLASS&nbsp;
-&nbsp;<A HREF="../../../jrummikub/view/impl/HandPanel.html" title="class in jrummikub.view.impl"><B>NEXT CLASS</B></A></FONT></TD>
+&nbsp;<A HREF="../../../jrummikub/view/impl/ConnectPanel.html" title="class 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/AbstractStonePanel.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="AbstractStonePanel.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
@@ -76,9 +76,9 @@ function windowTitle()
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_javax.swing.JPanel">NESTED</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.JComponent">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+ SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_javax.swing.JPanel">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
-DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
@@ -175,6 +175,62 @@ Base class for panels that draw stones
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;<A HREF="../../../jrummikub/util/Event1.html" title="class in jrummikub.util">Event1</A>&lt;<A HREF="../../../jrummikub/model/Position.html" title="class in jrummikub.model">Position</A>&gt;</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../jrummikub/view/impl/AbstractStonePanel.html#clickEvent">clickEvent</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;<A HREF="../../../jrummikub/model/Stone.html" title="class in jrummikub.model">Stone</A></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../jrummikub/view/impl/AbstractStonePanel.html#hoveredStone">hoveredStone</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;<A HREF="../../../jrummikub/util/Event2.html" title="class in jrummikub.util">Event2</A>&lt;<A HREF="../../../jrummikub/model/Stone.html" title="class in jrummikub.model">Stone</A>,java.lang.Boolean&gt;</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../jrummikub/view/impl/AbstractStonePanel.html#rangeClickEvent">rangeClickEvent</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;<A HREF="../../../jrummikub/util/Event2.html" title="class in jrummikub.util">Event2</A>&lt;<A HREF="../../../jrummikub/model/Stone.html" title="class in jrummikub.model">Stone</A>,java.lang.Boolean&gt;</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../jrummikub/view/impl/AbstractStonePanel.html#setClickEvent">setClickEvent</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;<A HREF="../../../jrummikub/util/Event2.html" title="class in jrummikub.util">Event2</A>&lt;<A HREF="../../../jrummikub/model/Stone.html" title="class in jrummikub.model">Stone</A>,java.lang.Boolean&gt;</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../jrummikub/view/impl/AbstractStonePanel.html#stoneClickEvent">stoneClickEvent</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;<A HREF="../../../jrummikub/view/impl/StonePainter.html" title="class in jrummikub.view.impl">StonePainter</A></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../jrummikub/view/impl/AbstractStonePanel.html#stonePainter">stonePainter</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;java.lang.Iterable&lt;<A HREF="../../../jrummikub/util/Pair.html" title="class in jrummikub.util">Pair</A>&lt;<A HREF="../../../jrummikub/model/Stone.html" title="class in jrummikub.model">Stone</A>,<A HREF="../../../jrummikub/model/Position.html" title="class in jrummikub.model">Position</A>&gt;&gt;</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../jrummikub/view/impl/AbstractStonePanel.html#stones">stones</A></B></CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
+</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_javax.swing.JComponent"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
@@ -269,7 +325,7 @@ Base class for panels that draw stones
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the range click event is emitted when the player clicks on the table/hand/
- etc.</TD>
+ etc. and wants to select a range instead of a single stone</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
@@ -278,7 +334,15 @@ Base class for panels that draw stones
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the set click event is emitted when the player clicks on the table/hand/
- etc.</TD>
+ etc. and wants to select a whole set instead of a single stone</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;<A HREF="../../../jrummikub/model/Stone.html" title="class in jrummikub.model">Stone</A></CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../jrummikub/view/impl/AbstractStonePanel.html#getStoneAt(jrummikub.model.Position)">getStoneAt</A></B>(<A HREF="../../../jrummikub/model/Position.html" title="class in jrummikub.model">Position</A>&nbsp;pos)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the stone at the specified position</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
@@ -310,7 +374,8 @@ Base class for panels that draw stones
<TD><CODE><B><A HREF="../../../jrummikub/view/impl/AbstractStonePanel.html#getTranslation()">getTranslation</A></B>()</CODE>
<BR>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the translation in pixels the stones in this panel are painted with</TD>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the translation in pixels the stones in this panel are painted
+ with</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
@@ -330,6 +395,14 @@ Base class for panels that draw stones
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
+<CODE>private &nbsp;void</CODE></FONT></TD>
+<TD><CODE><B><A HREF="../../../jrummikub/view/impl/AbstractStonePanel.html#setHoveredStone(jrummikub.model.Stone)">setHoveredStone</A></B>(<A HREF="../../../jrummikub/model/Stone.html" title="class in jrummikub.model">Stone</A>&nbsp;stone)</CODE>
+
+<BR>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the stone over which the cursor hovers</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../jrummikub/view/impl/AbstractStonePanel.html#setStones(java.lang.Iterable)">setStones</A></B>(java.lang.Iterable&lt;<A HREF="../../../jrummikub/util/Pair.html" title="class in jrummikub.util">Pair</A>&lt;<A HREF="../../../jrummikub/model/Stone.html" title="class in jrummikub.model">Stone</A>,<A HREF="../../../jrummikub/model/Position.html" title="class in jrummikub.model">Position</A>&gt;&gt;&nbsp;stones)</CODE>
@@ -385,6 +458,85 @@ Base class for panels that draw stones
&nbsp;
<P>
+<!-- ============ FIELD DETAIL =========== -->
+
+<A NAME="field_detail"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
+<B>Field Detail</B></FONT></TH>
+</TR>
+</TABLE>
+
+<A NAME="stonePainter"><!-- --></A><H3>
+stonePainter</H3>
+<PRE>
+private <A HREF="../../../jrummikub/view/impl/StonePainter.html" title="class in jrummikub.view.impl">StonePainter</A> <B>stonePainter</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="clickEvent"><!-- --></A><H3>
+clickEvent</H3>
+<PRE>
+private <A HREF="../../../jrummikub/util/Event1.html" title="class in jrummikub.util">Event1</A>&lt;<A HREF="../../../jrummikub/model/Position.html" title="class in jrummikub.model">Position</A>&gt; <B>clickEvent</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="stoneClickEvent"><!-- --></A><H3>
+stoneClickEvent</H3>
+<PRE>
+private <A HREF="../../../jrummikub/util/Event2.html" title="class in jrummikub.util">Event2</A>&lt;<A HREF="../../../jrummikub/model/Stone.html" title="class in jrummikub.model">Stone</A>,java.lang.Boolean&gt; <B>stoneClickEvent</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="rangeClickEvent"><!-- --></A><H3>
+rangeClickEvent</H3>
+<PRE>
+private <A HREF="../../../jrummikub/util/Event2.html" title="class in jrummikub.util">Event2</A>&lt;<A HREF="../../../jrummikub/model/Stone.html" title="class in jrummikub.model">Stone</A>,java.lang.Boolean&gt; <B>rangeClickEvent</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="setClickEvent"><!-- --></A><H3>
+setClickEvent</H3>
+<PRE>
+private <A HREF="../../../jrummikub/util/Event2.html" title="class in jrummikub.util">Event2</A>&lt;<A HREF="../../../jrummikub/model/Stone.html" title="class in jrummikub.model">Stone</A>,java.lang.Boolean&gt; <B>setClickEvent</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="stones"><!-- --></A><H3>
+stones</H3>
+<PRE>
+private java.lang.Iterable&lt;<A HREF="../../../jrummikub/util/Pair.html" title="class in jrummikub.util">Pair</A>&lt;<A HREF="../../../jrummikub/model/Stone.html" title="class in jrummikub.model">Stone</A>,<A HREF="../../../jrummikub/model/Position.html" title="class in jrummikub.model">Position</A>&gt;&gt; <B>stones</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+<HR>
+
+<A NAME="hoveredStone"><!-- --></A><H3>
+hoveredStone</H3>
+<PRE>
+private <A HREF="../../../jrummikub/model/Stone.html" title="class in jrummikub.model">Stone</A> <B>hoveredStone</B></PRE>
+<DL>
+<DL>
+</DL>
+</DL>
+
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
@@ -461,6 +613,22 @@ protected void <B>clickAt</B>(java.awt.Point&nbsp;p,
</DL>
<HR>
+<A NAME="setHoveredStone(jrummikub.model.Stone)"><!-- --></A><H3>
+setHoveredStone</H3>
+<PRE>
+private void <B>setHoveredStone</B>(<A HREF="../../../jrummikub/model/Stone.html" title="class in jrummikub.model">Stone</A>&nbsp;stone)</PRE>
+<DL>
+<DD>Sets the stone over which the cursor hovers
+<P>
+<DD><DL>
+</DL>
+</DD>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>stone</CODE> - stone under cursor</DL>
+</DD>
+</DL>
+<HR>
+
<A NAME="getHoveredStone()"><!-- --></A><H3>
getHoveredStone</H3>
<PRE>
@@ -511,6 +679,23 @@ protected void <B>handleOtherMoveEvent</B>(<A HREF="../../../jrummikub/model/Pos
</DL>
<HR>
+<A NAME="getStoneAt(jrummikub.model.Position)"><!-- --></A><H3>
+getStoneAt</H3>
+<PRE>
+private <A HREF="../../../jrummikub/model/Stone.html" title="class in jrummikub.model">Stone</A> <B>getStoneAt</B>(<A HREF="../../../jrummikub/model/Position.html" title="class in jrummikub.model">Position</A>&nbsp;pos)</PRE>
+<DL>
+<DD>Gets the stone at the specified position
+<P>
+<DD><DL>
+</DL>
+</DD>
+<DD><DL>
+<DT><B>Parameters:</B><DD><CODE>pos</CODE> - position
+<DT><B>Returns:</B><DD>the stone</DL>
+</DD>
+</DL>
+<HR>
+
<A NAME="setStones(java.lang.Iterable)"><!-- --></A><H3>
setStones</H3>
<PRE>
@@ -532,7 +717,8 @@ getTranslation</H3>
<PRE>
protected <A HREF="../../../jrummikub/util/Pair.html" title="class in jrummikub.util">Pair</A>&lt;java.lang.Integer,java.lang.Integer&gt; <B>getTranslation</B>()</PRE>
<DL>
-<DD>Returns the translation in pixels the stones in this panel are painted with
+<DD>Returns the translation in pixels the stones in this panel are painted
+ with
<P>
<DD><DL>
</DL>
@@ -673,7 +859,7 @@ public <A HREF="../../../jrummikub/util/Event2.html" title="class in jrummikub.u
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV CLASS&nbsp;
-&nbsp;<A HREF="../../../jrummikub/view/impl/HandPanel.html" title="class in jrummikub.view.impl"><B>NEXT CLASS</B></A></FONT></TD>
+&nbsp;<A HREF="../../../jrummikub/view/impl/ConnectPanel.html" title="class 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/AbstractStonePanel.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="AbstractStonePanel.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
@@ -693,9 +879,9 @@ public <A HREF="../../../jrummikub/util/Event2.html" title="class in jrummikub.u
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_javax.swing.JPanel">NESTED</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.JComponent">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
+ SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_javax.swing.JPanel">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
-DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
+DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>