From: Martin S. <sch...@us...> - 2005-02-16 18:39:06
|
Update of /cvsroot/magicmap/magicmapclient/src/net/sf/magicmap/client/views In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5504/src/net/sf/magicmap/client/views Modified Files: MapView.java Log Message: +Fix text color bug Index: MapView.java =================================================================== RCS file: /cvsroot/magicmap/magicmapclient/src/net/sf/magicmap/client/views/MapView.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** MapView.java 13 Feb 2005 21:36:39 -0000 1.2 --- MapView.java 16 Feb 2005 18:38:49 -0000 1.3 *************** *** 173,176 **** --- 173,199 ---- } + public Color getFgColorForNode(Node node){ + if (node == null) return null; + switch (node.getType()) { + case NodeModel.NODETYPE_CLIENT : + if (!showClients) { + return null; + } + return Color.BLACK; + case NodeModel.NODETYPE_ACCESSPOINT : + if (!showAccessPoints) { + return null; + } + return Color.BLACK; + case NodeModel.NODETYPE_LOCATION : + if (!showLocations) { + return null; + } + return Color.BLACK; + default : + return Color.BLACK; + } + } + public Color getBgColorForNode(Node node){ if (node == null) return null; *************** *** 389,393 **** public Color getForeColor(Vertex v){ ! return null; } --- 412,417 ---- public Color getForeColor(Vertex v){ ! Node node = findNode(v); ! return getFgColorForNode(node); } |