Changeset 1635 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2009-06-06T13:33:27+02:00 (17 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/mappaint
- Files:
-
- 2 edited
-
ElemStyleHandler.java (modified) (1 diff)
-
LineElemStyle.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyleHandler.java
r1629 r1635 105 105 try 106 106 { 107 line.dashed=Integer.parseInt(atts.getValue(count)); 107 String[] parts = atts.getValue(count).split(","); 108 line.dashed = new float[parts.length]; 109 for (int i = 0; i < parts.length; i++) { 110 line.dashed[i] = (float)(Integer.parseInt(parts[i])); 111 } 108 112 } catch (NumberFormatException nfe) { 109 113 boolean dashed=Boolean.parseBoolean(atts.getValue(count)); 110 114 if(dashed) { 111 line.dashed = 9;115 line.dashed = new float[]{9}; 112 116 } 113 117 } -
trunk/src/org/openstreetmap/josm/gui/mappaint/LineElemStyle.java
r1340 r1635 9 9 public int realWidth; //the real width of this line in meter 10 10 public Color color; 11 public intdashed;11 public float[] dashed; 12 12 public Color dashedColor; 13 13 … … 57 57 width = 1; 58 58 realWidth = 0; 59 dashed = 0;59 dashed = new float[0]; 60 60 dashedColor = null; 61 61 priority = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
