From: <db...@sv...> - 2006-04-18 19:12:50
|
Author: dblasby Date: 2006-04-18 12:11:58 -0700 (Tue, 18 Apr 2006) New Revision: 19220 Modified: geotools/trunk/gt/module/main/src/org/geotools/styling/StyleAttributeE= xtractor.java Log: added javadoc Modified: geotools/trunk/gt/module/main/src/org/geotools/styling/StyleAtt= ributeExtractor.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- geotools/trunk/gt/module/main/src/org/geotools/styling/StyleAttribute= Extractor.java 2006-04-18 19:10:35 UTC (rev 19219) +++ geotools/trunk/gt/module/main/src/org/geotools/styling/StyleAttribute= Extractor.java 2006-04-18 19:11:58 UTC (rev 19220) @@ -28,26 +28,35 @@ * @author wolf * @source $URL$ */ + + +/** + * =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D + * if you're modifying this, you probably should also take a look at St= yleAttributeExtractorTruncated + * =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D + * + */ + public class StyleAttributeExtractor extends FilterAttributeExtractor implements StyleVisitor { -=09 -=09 + + /** * if the default geometry is used, this will be true. See GEOS-469 */ boolean defaultGeometryUsed =3D false; -=09 + /** * reads the read-only-property. * See GEOS-469 - *=20 + * * @return true if any of the symbolizers visted use the default geomet= ry. */ public boolean getDefaultGeometryUsed() { return defaultGeometryUsed; } -=09 + /** * @see org.geotools.styling.StyleVisitor#visit(org.geotools.styling= .Style) */ @@ -209,11 +218,11 @@ { this.defaultGeometryUsed =3D true; // they want the default geo= metry (see GEOS-469) } - =20 + if (ps.getGraphic() !=3D null) { ps.getGraphic().accept(this); } - =20 + } =20 /** @@ -227,7 +236,7 @@ { this.defaultGeometryUsed =3D true; // they want the default geo= metry (see GEOS-469) } - =20 + if (line.getStroke() !=3D null) { line.getStroke().accept(this); } @@ -265,7 +274,7 @@ { this.defaultGeometryUsed =3D true; // they want the default geo= metry (see GEOS-469) } - =20 + if (text instanceof TextSymbolizer2) { if ( ((TextSymbolizer2)text).getGraphic() !=3Dnull) @@ -474,7 +483,7 @@ =20 public void visit(ColorMap map) { ColorMapEntry[] entries =3D map.getColorMapEntries(); - =09 + for (int i =3D 0; i < entries.length; i++) { entries[i].accept(this); } |