/[schmitzm]/trunk/src/skrueger/geotools/StyledLayerUtil.java
ViewVC logotype

Diff of /trunk/src/skrueger/geotools/StyledLayerUtil.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 824 by alfonx, Wed May 5 10:44:01 2010 UTC revision 1203 by alfonx, Tue Nov 2 22:53:55 2010 UTC
# Line 25  Line 25 
25   *   *
26   * Contributors:   * Contributors:
27   *     Martin O. J. Schmitz - initial API and implementation   *     Martin O. J. Schmitz - initial API and implementation
28   *     Stefan A. Krüger - additional utility classes   *     Stefan A. Tzeggai - additional utility classes
29   ******************************************************************************/   ******************************************************************************/
30  package skrueger.geotools;  package skrueger.geotools;
31    
# Line 285  public class StyledLayerUtil { Line 285  public class StyledLayerUtil {
285           */           */
286          public static AttributeMetadataImpl parseAttributeMetaData(          public static AttributeMetadataImpl parseAttributeMetaData(
287                          final Element element) {                          final Element element) {
288                  final String namespace = String.valueOf(element                  final String namespace = element.getAttributeValue("namespace");
289                                  .getAttributeValue("namespace"));                  final String localname = element.getAttributeValue("localname");
                 final String localname = String.valueOf(element  
                                 .getAttributeValue("localname"));  
290                  final NameImpl aName = new NameImpl(namespace, localname);                  final NameImpl aName = new NameImpl(namespace, localname);
291                  final Boolean visible = Boolean.valueOf(element                  final Boolean visible = Boolean.valueOf(element
292                                  .getAttributeValue("visible"));                                  .getAttributeValue("visible"));
# Line 937  public class StyledLayerUtil { Line 935  public class StyledLayerUtil {
935           *            If this a legend for Point, Polygon or Line?           *            If this a legend for Point, Polygon or Line?
936           *           *
937           * @author <a href="mailto:[email protected]">Stefan Alfons           * @author <a href="mailto:[email protected]">Stefan Alfons
938           *         Kr&uuml;ger</a>           *         Tzeggai</a>
939           */           */
940          public static JPanel createLegendSwingPanel(Style style,          public static JPanel createLegendSwingPanel(Style style,
941                          final SimpleFeatureType featureType, final int iconWidth,                          final SimpleFeatureType featureType, final int iconWidth,
# Line 1153  public class StyledLayerUtil { Line 1151  public class StyledLayerUtil {
1151                          if (geoObject instanceof GridCoverage2D) {                          if (geoObject instanceof GridCoverage2D) {
1152                                  final GridCoverage2D cov = (GridCoverage2D) geoObject;                                  final GridCoverage2D cov = (GridCoverage2D) geoObject;
1153                                  colorModel = cov.getRenderedImage().getColorModel();                                  colorModel = cov.getRenderedImage().getColorModel();
1154                          } else if (styledGrid instanceof StyledRasterPyramidInterface) {                          } else if (styledGrid instanceof StyledGridCoverageReaderInterface) {
1155    
1156                                  final Parameter readGG = new Parameter(                                  final Parameter readGG = new Parameter(
1157                                                  AbstractGridFormat.READ_GRIDGEOMETRY2D);                                                  AbstractGridFormat.READ_GRIDGEOMETRY2D);

Legend:
Removed from v.824  
changed lines
  Added in v.1203

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26