Changeset 8308 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
- Timestamp:
- 2015-05-02T00:55:19+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawAction.java
r8285 r8308 76 76 private final Cursor cursorJoinWay; 77 77 78 private Node lastUsedNode = null;78 private transient Node lastUsedNode = null; 79 79 private static final double PHI = Math.toRadians(90); 80 80 private double toleranceMultiplier; 81 81 82 private Node mouseOnExistingNode;83 private Set<Way> mouseOnExistingWays = new HashSet<>();82 private transient Node mouseOnExistingNode; 83 private transient Set<Way> mouseOnExistingWays = new HashSet<>(); 84 84 // old highlights store which primitives are currently highlighted. This 85 85 // is true, even if target highlighting is disabled since the status bar 86 86 // derives its information from this list as well. 87 private Set<OsmPrimitive> oldHighlights = new HashSet<>();87 private transient Set<OsmPrimitive> oldHighlights = new HashSet<>(); 88 88 // new highlights contains a list of primitives that should be highlighted 89 89 // but haven’t been so far. The idea is to compare old and new and only 90 90 // repaint if there are changes. 91 private Set<OsmPrimitive> newHighlights = new HashSet<>();91 private transient Set<OsmPrimitive> newHighlights = new HashSet<>(); 92 92 private boolean drawHelperLine; 93 93 private boolean wayIsFinished = false; … … 97 97 private Color rubberLineColor; 98 98 99 private Node currentBaseNode;100 private Node previousNode;99 private transient Node currentBaseNode; 100 private transient Node previousNode; 101 101 private EastNorth currentMouseEastNorth; 102 102 103 private final SnapHelper snapHelper = new SnapHelper();104 105 private final Shortcut backspaceShortcut;103 private final transient SnapHelper snapHelper = new SnapHelper(); 104 105 private final transient Shortcut backspaceShortcut; 106 106 private final BackSpaceAction backspaceAction; 107 private final Shortcut snappingShortcut;107 private final transient Shortcut snappingShortcut; 108 108 private boolean ignoreNextKeyRelease; 109 109 … … 111 111 private final JCheckBoxMenuItem snapCheckboxMenuItem; 112 112 private boolean useRepeatedShortcut; 113 private Stroke rubberLineStroke;113 private transient Stroke rubberLineStroke; 114 114 private static final BasicStroke BASIC_STROKE = new BasicStroke(1); 115 115
Note:
See TracChangeset
for help on using the changeset viewer.