Changeset 144 in josm for src/org/openstreetmap/josm/data
- Timestamp:
- 2006-10-01T19:45:33+02:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/data/osm/visitor/SimplePaintVisitor.java
r100 r144 27 27 * The environment to paint to. 28 28 */ 29 pr ivate finalGraphics g;29 protected Graphics g; 30 30 /** 31 31 * MapView to get screen coordinates. 32 32 */ 33 private final NavigatableComponent nc; 34 private static final double PHI = Math.toRadians(20); 33 protected NavigatableComponent nc; 35 34 36 /** 37 * Construct the painter visitor. 38 * @param g The graphics to draw to. 39 * @param mv The view to get screen coordinates from. 40 */ 41 public SimplePaintVisitor(Graphics g, NavigatableComponent mv) { 42 this.g = g; 43 this.nc = mv; 44 } 35 protected static final double PHI = Math.toRadians(20); 45 36 46 37 /** … … 97 88 * Draw a line with the given color. 98 89 */ 99 pr ivatevoid drawSegment(Segment ls, Color col) {90 protected void drawSegment(Segment ls, Color col) { 100 91 if (ls.incomplete) 101 92 return; … … 122 113 return ColorHelper.html2color(colStr); 123 114 } 115 116 117 public void setGraphics(Graphics g) { 118 this.g = g; 119 } 120 121 public void setNavigatableComponent(NavigatableComponent nc) { 122 this.nc = nc; 123 } 124 124 }
Note:
See TracChangeset
for help on using the changeset viewer.