Changeset 31028 in osm for applications/editors/josm/plugins/seachart/src/render
- Timestamp:
- 2015-02-20T01:43:42+01:00 (10 years ago)
- Location:
- applications/editors/josm/plugins/seachart/src/render
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/src/render/Renderer.java
r31027 r31028 19 19 import s57.S57val.*; 20 20 import s57.S57map; 21 import s57.S57obj.Obj;22 21 import s57.S57map.*; 23 22 import symbols.Areas; … … 37 36 static int zoom; 38 37 39 public static void reRender(Graphics2D g, int z, double factor, S57map m, ChartContext c) { 38 public static void reRender(Graphics2D g, Rectangle rect, int z, double factor, S57map m, ChartContext c) { 40 39 g2 = g; 41 40 zoom = z; … … 44 43 sScale = symbolScale[zoom] * factor; 45 44 if (map != null) { 45 g2.setBackground(Rules.Bwater); 46 g2.clearRect(rect.x, rect.y, rect.width, rect.height); 46 47 g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); 47 48 g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_GASP); -
applications/editors/josm/plugins/seachart/src/render/Rules.java
r31027 r31028 282 282 switch (feature.type) { 283 283 case BUAARE: 284 Renderer.lineVector(feature, new LineStyle(new Color(0x 40000000, true)));284 Renderer.lineVector(feature, new LineStyle(new Color(0x20000000, true))); 285 285 break; 286 286 case COALNE: … … 289 289 case DEPARE: 290 290 Double depmax = 0.0; 291 if (((depmax = (Double) getAttVal(feature, feature.type, 0, Att.DRVAL2)) != null) && (depmax <= 0.0)) {291 if (((depmax = (Double) getAttVal(feature, Obj.DEPARE, 0, Att.DRVAL2)) != null) && (depmax <= 0.0)) { 292 292 Renderer.lineVector(feature, new LineStyle(Gdries)); 293 293 }
Note:
See TracChangeset
for help on using the changeset viewer.