diff options
author | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-05-31 22:06:23 +0200 |
---|---|---|
committer | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-05-31 22:06:23 +0200 |
commit | 63192810a3fe4ec2c81b5b52dd0278d145324bfb (patch) | |
tree | 414c338e86bb4c31696293535a4ce80c3b7f404e /src/jrummikub/view | |
parent | d7aba3d722fbc4dacc94207e97098fd8e27933b4 (diff) | |
download | JRummikub-63192810a3fe4ec2c81b5b52dd0278d145324bfb.tar JRummikub-63192810a3fe4ec2c81b5b52dd0278d145324bfb.zip |
kleine fixes
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@364 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/view')
-rw-r--r-- | src/jrummikub/view/impl/TablePanel.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jrummikub/view/impl/TablePanel.java b/src/jrummikub/view/impl/TablePanel.java index 31f6296..7c53d28 100644 --- a/src/jrummikub/view/impl/TablePanel.java +++ b/src/jrummikub/view/impl/TablePanel.java @@ -147,8 +147,8 @@ class TablePanel extends AbstractStonePanel implements ITablePanel { if (p.getY() < miny) miny = p.getY(); - if (p.getX() + stoneSet.size() > maxx) - maxx = p.getX() + stoneSet.size(); + if (p.getX() + stoneSet.getSize() > maxx) + maxx = p.getX() + stoneSet.getSize(); if (p.getY() + 1 > maxy) maxy = p.getY() + 1; @@ -204,7 +204,7 @@ class TablePanel extends AbstractStonePanel implements ITablePanel { } // right connector - rect = new Rectangle2D.Float(x + stoneSet.size(), y, CONNECTOR_WIDTH, 1); + rect = new Rectangle2D.Float(x + stoneSet.getSize(), y, CONNECTOR_WIDTH, 1); if (rect.contains(pos.getX(), pos.getY())) { rightConnectorClickEvent.emit(stoneSet); return true; @@ -235,7 +235,7 @@ class TablePanel extends AbstractStonePanel implements ITablePanel { } // right connector - rect = new Rectangle2D.Float(x + stoneSet.size(), y, CONNECTOR_WIDTH, 1); + rect = new Rectangle2D.Float(x + stoneSet.getSize(), y, CONNECTOR_WIDTH, 1); if (rect.contains(pos.getX(), pos.getY())) { rightHoveredConnector = stoneSet; break; |