From: Erik V. <ev...@us...> - 2009-12-28 14:52:14
|
Update of /cvsroot/rails/18xx/rails/ui/swing/hexmap In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv27440/rails/ui/swing/hexmap Modified Files: GUIHex.java Log Message: Minor cleanup Index: GUIHex.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/ui/swing/hexmap/GUIHex.java,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** GUIHex.java 20 Dec 2009 15:03:11 -0000 1.31 --- GUIHex.java 28 Dec 2009 14:52:05 -0000 1.32 *************** *** 343,348 **** p = getTokenCenter (1, 0, getHexModel().getCities().size(), city.getNumber()-1); - //log.debug("+++ Home of "+company.getName()+" hex"+getName()+" city"+city.getName() - // + " x="+(p.x)+" y="+(p.y)); drawHome (g2, company, p); } --- 343,346 ---- *************** *** 358,369 **** if (getHexModel().equals(hex)) { g2.drawString( ! "(" + p.getName() + ")", ! rectBound.x ! + (rectBound.width - fontMetrics.stringWidth("(" ! + p.getName() ! + ")")) ! * 1 / 2, ! rectBound.y ! + ((fontMetrics.getHeight() + rectBound.height) * 5 / 15)); } } --- 356,367 ---- if (getHexModel().equals(hex)) { g2.drawString( ! "(" + p.getName() + ")", ! rectBound.x ! + (rectBound.width - fontMetrics.stringWidth("(" ! + p.getName() ! + ")")) ! * 1 / 2, ! rectBound.y ! + ((fontMetrics.getHeight() + rectBound.height) * 5 / 15)); } } |