Changeset 32343 in osm for applications/editors/josm/plugins/graphview
- Timestamp:
- 2016-06-20T23:31:41+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/graphview
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/graphview/build.xml
r31926 r32343 2 2 <project name="graphview" default="dist" basedir="."> 3 3 <property name="commit.message" value="option to change graph colors; closes ticket 5523 in JOSM Trac"/> 4 <property name="plugin.main.version" value=" 7001"/>4 <property name="plugin.main.version" value="10031"/> 5 5 6 6 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/GraphViewPlugin.java
r30737 r32343 178 178 179 179 if (graphViewLayer != null) { 180 Main.panel.repaint();180 graphViewLayer.invalidate(); 181 181 } 182 182 -
applications/editors/josm/plugins/graphview/src/org/openstreetmap/josm/plugins/graphview/plugin/layer/GraphViewLayer.java
r26481 r32343 46 46 * layer for displaying the graph visualization 47 47 */ 48 public class GraphViewLayer extends Layer implements LayerChangeListener,WayGraphObserver {48 public class GraphViewLayer extends Layer implements WayGraphObserver { 49 49 50 50 private static final int NODE_RADIUS = 5; … … 98 98 public GraphViewLayer() { 99 99 super("Graph view"); 100 MapView.addLayerChangeListener(this);101 100 } 102 101 … … 115 114 public void setColorScheme(ColorScheme colorScheme) { 116 115 this.colorScheme = colorScheme; 117 Main.panel.repaint();116 invalidate(); 118 117 } 119 118 … … 122 121 assert arrowheadPlacement >= 0 && arrowheadPlacement <= 1; 123 122 this.arrowheadPlacement = arrowheadPlacement; 124 Main.panel.repaint();123 invalidate(); 125 124 } 126 125 … … 134 133 this.nodePositioner = new NonMovingNodePositioner(); 135 134 } 136 Main.panel.repaint();135 invalidate(); 137 136 } 138 137 … … 408 407 public void update(WayGraph wayGraph) { 409 408 assert wayGraph == this.wayGraph; 410 Main.panel.repaint(); 411 } 412 413 public void activeLayerChange(Layer oldLayer, Layer newLayer) { 414 //do nothing 415 } 416 public void layerAdded(Layer newLayer) { 417 //do nothing 418 } 419 public void layerRemoved(Layer oldLayer) { 420 if (oldLayer == this) { 421 MapView.removeLayerChangeListener(this); 422 } 409 invalidate(); 423 410 } 424 411 }
Note:
See TracChangeset
for help on using the changeset viewer.