kleine fixes
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@364 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
d7aba3d722
commit
63192810a3
6 changed files with 71 additions and 62 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue