/[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 405 by alfonx, Mon Sep 14 15:43:28 2009 UTC revision 409 by alfonx, Fri Sep 18 15:00:29 2009 UTC
# Line 980  public class StyledLayerUtil { Line 980  public class StyledLayerUtil {
980                                  hbox.add(iconLabel);                                  hbox.add(iconLabel);
981                                  hbox.add(Box.createHorizontalStrut(3));                                  hbox.add(Box.createHorizontalStrut(3));
982    
                                 // ****************************************************************************  
                                 // The labeltext is read from the SLD. Its either the title  
                                 // directly, or interpreted as OneLine Code  
                                 // ****************************************************************************  
                                 // final String rawText =  
                                 // rule.getDescription().getTitle().toString();  
                                 final String rawText = rule.getDescription().getTitle()  
                                                 .toString();  
   
983                                  Translation labelT = new Translation();                                  Translation labelT = new Translation();
984                                  labelT.fromOneLine(rawText);                                  labelT.fromOneLine(rule.getDescription().getTitle());
985    
986                                  final JLabel classTitleLabel = new JLabel(labelT.toString());                                  final JLabel classTitleLabel = new JLabel(labelT.toString());
987                                  hbox.add(classTitleLabel);                                  hbox.add(classTitleLabel);
# Line 1020  public class StyledLayerUtil { Line 1011  public class StyledLayerUtil {
1011                   */                   */
1012                  ColorModel colorModel = null;                  ColorModel colorModel = null;
1013                  if (!isStyleable(styledRaster)                  if (!isStyleable(styledRaster)
1014                                  || (isStyleable(styledRaster) && styledRaster.getStyle() != null)) {                                  || (isStyleable(styledRaster) && styledRaster.getStyle() == null)) {
1015                          colorModel = getColorModel(styledRaster);                          colorModel = getColorModel(styledRaster);
1016                  }                  }
1017    

Legend:
Removed from v.405  
changed lines
  Added in v.409

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26