Changeset 32540 in osm for applications/editors
- Timestamp:
- 2016-07-03T02:49:50+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/gui/PTAssistantLayer.java
r32522 r32540 1 1 package org.openstreetmap.josm.plugins.pt_assistant.gui; 2 2 3 import java.awt.Graphics; 3 4 import java.awt.Graphics2D; 4 5 import java.awt.KeyboardFocusManager; … … 46 47 47 48 } 48 49 49 50 public void addPrimitive(OsmPrimitive primitive) { 50 51 this.primitives.add(primitive); … … 57 58 @Override 58 59 public void paint(final Graphics2D g, final MapView mv, Bounds bounds) { 59 60 60 61 paintVisitor = new PTAssistantPaintVisitor(g, mv); 62 61 63 for (OsmPrimitive primitive : primitives) { 62 64 paintVisitor.visit(primitive); … … 115 117 @Override 116 118 public void selectionChanged(Collection<? extends OsmPrimitive> newSelection) { 117 119 118 120 ArrayList<Relation> routes = new ArrayList<>(); 119 121 … … 162 164 if (!Main.getLayerManager().containsLayer(this)) { 163 165 Main.getLayerManager().addLayer(this); 164 Main.map.repaint(); 166 } 167 168 if (paintVisitor == null) { 169 Graphics g = Main.map.mapView.getGraphics(); 170 MapView mv = Main.map.mapView; 171 paintVisitor = new PTAssistantPaintVisitor(g, mv); 165 172 } 166 173 … … 168 175 paintVisitor.visit(primitive); 169 176 } 170 177 171 178 Main.map.repaint(); 172 179 } … … 189 196 @Override 190 197 public void layerRemoving(LayerRemoveEvent event) { 191 198 192 199 if (event.getRemovedLayer() instanceof OsmDataLayer) { 193 200 194 201 this.primitives.clear(); 195 202 Main.map.repaint(); -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/gui/PTAssistantPaintVisitor.java
r32522 r32540 318 318 parentsLabel = parentsLabel.substring(0, parentsLabel.length() - 1); 319 319 320 g.setColor(new Color( 128, 0, 128));320 g.setColor(new Color(255, 20, 147)); 321 321 Font parentLabelFont = new Font("SansSerif", Font.ITALIC, 20); 322 322 g.setFont(parentLabelFont); -
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/gui/ProceedDialog.java
r32522 r32540 59 59 label4.setAlignmentX(Component.LEFT_ALIGNMENT); 60 60 61 radioButtonFixAutomatically = new JRadioButton("Fix all errors automatically and proceed" , true);61 radioButtonFixAutomatically = new JRadioButton("Fix all errors automatically and proceed"); 62 62 radioButtonFixManually = new JRadioButton("I will fix the erros manually and click the button to proceed"); 63 radioButtonDontFix = new JRadioButton("Do not fix anything and proceed with further tests" );63 radioButtonDontFix = new JRadioButton("Do not fix anything and proceed with further tests", true); 64 64 ButtonGroup fixOptionButtonGroup = new ButtonGroup(); 65 65 fixOptionButtonGroup.add(radioButtonFixAutomatically);
Note:
See TracChangeset
for help on using the changeset viewer.