Package org.gvsig.raster.lib.legend.api
Interface RasterLegendManager
public interface RasterLegendManager
- Author:
- fdiaz
-
Method Summary
Modifier and TypeMethodDescriptioncreateColorInterpretation(BufferedImage image, String prefix) createColorInterpretation(String definedColorInterpretation) Creates default color interpretation usingColorInterpretationconstants.createColorInterpretation(String[] colorInterpretations) Creates an emptyColorInterpretationcreateColorInterpretation(List<String> colorInterpretations) Creates a color tablecreateColorTable(String name, List<ColorTableClass> colorTableClasses, boolean interpolated) Creates a newColorTablecreateColorTableClass(String className, double value, double interpolated, Color color) Creates new instance with values received as parameters.Creates a raster legendcreateLegend(ColorInterpretation colorInterpretation) Creates a raster legendcreateLegend(ColorInterpretation colorInterpretation, Transparency transparency, org.gvsig.raster.lib.buffer.api.operations.OperationList filters) Creates a raster legendcreateListColorTableClasses(double minimum, double maximum, double intervalSize, Color fromColor, Color toColor) createListColorTableClasses(double minimum, double maximum, int intervals, Color fromColor, Color toColor) createTransparency(int transparency, List<TransparencyRange> transparencyRanges) Creates a newTransparencyusing transparency value and definedTransparencyRange.Creates an emptyTransparencyRangeTransparencyRange.createTransparencyRange(int[] redRange, int[] greenRange, int[] blueRange, int alpha, boolean isAnd) Creates a newTransparencyRangeusing color rangesTransparencyRange.Gets defaultColorTableIOto read and writeColorTableto file.getColorTableIOFactory(String name) Gets registeredColorTableIOFactorywith the nameList<org.apache.commons.lang3.tuple.Pair<File, ColorTable>> getColorTables(File folder) GetsColorTableinside folder using registeredColorTableIOFactory.voidregisterColorTableIOFactory(String name, ColorTableIOFactory colorTableIOFactory) RegistersColorTableIOFactory.
-
Method Details
-
createLegend
RasterLegend createLegend()Creates a raster legend- Returns:
- RasterLegend
-
createLegend
Creates a raster legend- Parameters:
colorInterpretation-ColorInterpretationof thisRasterLegend- Returns:
- New
RasterLegend
-
createLegend
RasterLegend createLegend(ColorInterpretation colorInterpretation, Transparency transparency, org.gvsig.raster.lib.buffer.api.operations.OperationList filters) Creates a raster legend- Parameters:
colorInterpretation-ColorInterpretationof thistransparency-Transparencyof thisRasterLegendfilters- AOperationListto be applied- Returns:
- New
RasterLegend
-
createColorTableClass
ColorTableClass createColorTableClass()- Returns:
- New empty instance of
ColorTableClass
-
createColorTableClass
ColorTableClass createColorTableClass(String className, double value, double interpolated, Color color) Creates new instance with values received as parameters.- Parameters:
className- Name of classvalue- Value of classinterpolated- Interpolated valuecolor- Color of class- Returns:
- New instance of
ColorTableClass.
-
createColorTable
ColorTable createColorTable()Creates a color table- Returns:
- New color table instance
-
createColorTable
ColorTable createColorTable(String name, List<ColorTableClass> colorTableClasses, boolean interpolated) Creates a newColorTable- Parameters:
name- Name ofColorTablecolorTableClasses-ColorTableClassthat definedColorTableinterpolated- True to apply interpolation toColorTable- Returns:
- New color table instance.
-
getColorTableIO
ColorTableIO getColorTableIO()Gets defaultColorTableIOto read and writeColorTableto file.- Returns:
- Default
ColorTableIO
-
getColorTableIOFactories
List<ColorTableIOFactory> getColorTableIOFactories()- Returns:
- Gets registered
ColorTableIOFactory.
-
getColorTableIOFactory
Gets registeredColorTableIOFactorywith the name- Parameters:
name- Name of registeredColorTableIOFactory- Returns:
- Register
ColorTableIOFactorywith name
-
getColorTables
GetsColorTableinside folder using registeredColorTableIOFactory.- Parameters:
folder- Folder ofColorTable- Returns:
- List of color tables
-
registerColorTableIOFactory
RegistersColorTableIOFactory.- Parameters:
name- Name ofColorTableIOFactoryto register it.colorTableIOFactory-ColorTableIOFactoryto create instances ofColorTableIO.
-
createColorInterpretation
Creates an emptyColorInterpretation- Parameters:
colorInterpretations-- Returns:
- New
ColorInterpretationinstance
-
createColorInterpretation
-
createColorInterpretation
Creates default color interpretation usingColorInterpretationconstants.- Parameters:
definedColorInterpretation- DefinedColorInterpretation. See constants atColorInterpretationinterface.- Returns:
- Default
ColorInterpretation
-
createColorInterpretation
-
createTransparency
Transparency createTransparency()- Returns:
- Returns an empty
Transparency
-
createTransparency
Creates a newTransparencyusing transparency value and definedTransparencyRange.- Parameters:
transparency- Value of transparencytransparencyRanges- List withTransparencyRangethat define ranges of transparency by RGB values- Returns:
- New
Transparencyinstance
-
createTransparencyRange
TransparencyRange createTransparencyRange()Creates an emptyTransparencyRangeTransparencyRange.- Returns:
-
createTransparencyRange
TransparencyRange createTransparencyRange(int[] redRange, int[] greenRange, int[] blueRange, int alpha, boolean isAnd) Creates a newTransparencyRangeusing color rangesTransparencyRange.- Parameters:
redRange-greenRange-blueRange-alpha-isAnd-- Returns:
-
createListColorTableClasses
List<ColorTableClass> createListColorTableClasses(double minimum, double maximum, int intervals, Color fromColor, Color toColor) - Parameters:
minimum-maximum-intervals-fromColor-toColor-- Returns:
-
createListColorTableClasses
List<ColorTableClass> createListColorTableClasses(double minimum, double maximum, double intervalSize, Color fromColor, Color toColor) - Parameters:
minimum-maximum-intervalSize-fromColor-toColor-- Returns:
-
createMakeColorTable
MakeColorTable createMakeColorTable()- Returns:
-