249 |
public static AttributeMetadataMap getVisibleAttributeMetaData( |
public static AttributeMetadataMap getVisibleAttributeMetaData( |
250 |
final AttributeMetadataMap amdMap, final boolean visible) { |
final AttributeMetadataMap amdMap, final boolean visible) { |
251 |
|
|
252 |
final AttributeMetadataMap filteredMap = new AttributeMetadataMap(); |
final AttributeMetadataMap filteredMap = new AttributeMetadataMap(amdMap.getLanguages()); |
253 |
for (final AttributeMetadata amd : amdMap.values()) |
for (final AttributeMetadata amd : amdMap.values()) |
254 |
if (amd.isVisible() == visible) |
if (amd.isVisible() == visible) |
255 |
filteredMap.put(amd.getName(), amd); |
filteredMap.put(amd.getName(), amd); |
1145 |
public static boolean isStyleable( |
public static boolean isStyleable( |
1146 |
final StyledRasterInterface<?> styledRaster) { |
final StyledRasterInterface<?> styledRaster) { |
1147 |
final ColorModel colorModel = getColorModel(styledRaster); |
final ColorModel colorModel = getColorModel(styledRaster); |
1148 |
|
|
1149 |
LOGGER.info("The colormodel of " + styledRaster.getTitle() + " is " |
// LOGGER.info("The colormodel of " + styledRaster.getTitle() + " is " |
1150 |
+ colorModel.getClass().getSimpleName()); |
// + colorModel != null ? colorModel.getClass().getSimpleName() : "NULL"); |
1151 |
|
|
1152 |
if (colorModel == null) |
if (colorModel == null) |
1153 |
return true; |
return true; |
1189 |
|
|
1190 |
return true; |
return true; |
1191 |
|
|
1192 |
} else return false; |
} else { |
1193 |
|
return false; |
1194 |
|
} |
1195 |
} |
} |
1196 |
|
|
1197 |
} |
} |