public class LegendManage extends Object
| 构造器 | 说明 |
|---|---|
LegendManage() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static Color[] |
createColors(Color sColor,
Color eColor,
int cNum) |
Create colors from start and end color
|
static double[] |
createContourValues(double min,
double max) |
Create contour values by minimum and maximum values
|
static double[] |
createContourValuesInterval(double min,
double max,
double interval) |
Create contour values by interval
|
static LegendScheme |
createGraduatedLegendScheme(double[] values,
Color[] colors,
ShapeTypes aST,
double min,
double max) |
Create graduated color legend scheme
|
static LegendScheme |
createGraduatedLegendScheme(double[] CValues,
Color[] colors,
ShapeTypes aST,
double min,
double max,
Boolean hasNodata,
double unDef) |
Create graduated color legend scheme
|
static LegendScheme |
createImageLegend(GridArray gdata,
int n,
ColorMap cmap) |
Create image legend from grid data
|
static LegendScheme |
createImageLegend(GridArray gdata,
List<Number> levs,
ColorMap cmap) |
Create image legend from grid data
|
static LegendScheme |
createImageLegend(GridArray gdata,
ColorMap cmap) |
Create image legend from grid data
|
static LegendScheme |
createImageLegend(GridData gdata,
int n,
ColorMap cmap) |
Create image legend from grid data
|
static LegendScheme |
createImageLegend(GridData gdata,
List<Number> levs,
ColorMap cmap) |
Create image legend from grid data
|
static LegendScheme |
createImageLegend(GridData gdata,
ColorMap cmap) |
Create image legend from grid data
|
static LegendScheme |
createLegendScheme(double min,
double max) |
Create legend scheme
|
static LegendScheme |
createLegendScheme(double min,
double max,
double[] values,
Color[] colors,
LegendType legendType,
ShapeTypes shapeType,
boolean hasNodata,
double unDef) |
Create legend scheme
|
static LegendScheme |
createLegendScheme(double min,
double max,
double interval,
LegendType legendType,
ShapeTypes shapeType) |
Create legend scheme
|
static LegendScheme |
createLegendScheme(double min,
double max,
double interval,
LegendType legendType,
ShapeTypes shapeType,
boolean hasNodata,
double unDef) |
Create legend scheme
|
static LegendScheme |
createLegendScheme(double min,
double max,
int n) |
Create legend scheme
|
static LegendScheme |
createLegendScheme(double min,
double max,
int n,
ColorMap ct) |
Create legend scheme
|
static LegendScheme |
createLegendScheme(double min,
double max,
int n,
ColorMap ct,
LegendType legendType,
ShapeTypes shapeType,
boolean hasNodata,
double unDef) |
Create legend scheme
|
static LegendScheme |
createLegendScheme(double min,
double max,
int n,
LegendType legendType,
ShapeTypes shapeType) |
Create legend scheme
|
static LegendScheme |
createLegendScheme(double min,
double max,
int n,
LegendType legendType,
ShapeTypes shapeType,
boolean hasNodata,
double unDef) |
Create legend scheme
|
static LegendScheme |
createLegendScheme(double min,
double max,
List<Number> levs,
ColorMap ct) |
Create legend scheme
|
static LegendScheme |
createLegendScheme(double min,
double max,
List<Number> levs,
ColorMap ct,
LegendType legendType,
ShapeTypes shapeType,
boolean hasNodata,
double unDef) |
Create legend scheme
|
static LegendScheme |
createLegendScheme(double min,
double max,
ColorMap ct) |
Create legend scheme
|
static LegendScheme |
createLegendScheme(double min,
double max,
ColorMap ct,
double missingValue) |
Create legend scheme
|
static LegendScheme |
createLegendScheme(GridData gdata,
double interval,
LegendType legendType,
ShapeTypes shapeType) |
Create legend scheme
|
static LegendScheme |
createLegendScheme(GridData gdata,
int n,
ColorMap ct) |
Create legend scheme
|
static LegendScheme |
createLegendScheme(GridData gdata,
int n,
ColorMap ct,
LegendType legendType,
ShapeTypes shapeType) |
Create legend scheme
|
static LegendScheme |
createLegendScheme(GridData gdata,
int n,
LegendType legendType,
ShapeTypes shapeType) |
Create legend scheme
|
static LegendScheme |
createLegendScheme(StationData stdata,
int n,
ColorMap ct,
LegendType legendType,
ShapeTypes shapeType) |
Create legend scheme
|
static LegendScheme |
createLegendScheme(ShapeTypes shapeType,
List<Number> values,
List<Color> colors) |
Create legend scheme
|
static LegendScheme |
createLegendSchemeFromGridData(GridArray aGridData,
LegendType aLT,
ShapeTypes aST) |
Create legend scheme from grid data
|
static LegendScheme |
createLegendSchemeFromGridData(GridData aGridData,
LegendType aLT,
ShapeTypes aST) |
Create legend scheme from grid data
|
static LegendScheme |
createLegendSchemeFromStationData(StationData stationData,
LegendType aLT,
ShapeTypes aST) |
Create legend scheme from station data
|
static Color[] |
createRainBowColors(int cNum) |
Create rainbow colors
|
static Color[] |
createRandomColors(int cNum) |
Create random colors
|
static LegendScheme |
createSingleSymbolLegendScheme(ShapeTypes shapeType) |
Create single symbol legend scheme
|
static LegendScheme |
createSingleSymbolLegendScheme(ShapeTypes aST,
Color aColor,
float size) |
Create single symbol legend scheme
|
static LegendScheme |
createUniqValueLegendScheme(double[] CValues,
Color[] colors,
ShapeTypes aST,
double min,
double max) |
Create unique value legend scheme
|
static LegendScheme |
createUniqValueLegendScheme(double[] CValues,
Color[] colors,
ShapeTypes aST,
double min,
double max,
Boolean hasNodata,
double unDef) |
Create unique value legend scheme
|
static LegendScheme |
createUniqValueLegendScheme(int n,
ShapeTypes aST) |
Create unique value legend scheme
|
static LegendScheme |
createUniqValueLegendScheme(List<Number> values,
Color[] colors,
ShapeTypes aST) |
Create unique value legend scheme
|
static LegendScheme |
createUniqValueLegendScheme(List<Number> values,
List<Color> colors,
ShapeTypes aST) |
Create unique value legend scheme
|
static LegendScheme |
createUniqValueLegendScheme(List<Number> values,
ColorMap cmap,
ShapeTypes aST) |
Create unique value legend scheme
|
static LegendScheme |
createUniqValueLegendScheme(List<Number> values,
ShapeTypes aST) |
Create unique value legend scheme
|
static LegendScheme |
createUniqValueLegendScheme(List<String> CValues,
Color[] colors,
ShapeTypes aST,
double min,
double max,
boolean hasNodata,
double unDef) |
Create unique value legend scheme
|
static LegendScheme |
createUniqValueLegendScheme(List<String> CValues,
List<String> captions,
Color[] colors,
ShapeTypes aST,
double min,
double max) |
Create unique value legend scheme
|
static LegendScheme |
createUniqValueLegendScheme(List<String> CValues,
List<String> captions,
Color[] colors,
ShapeTypes aST,
double min,
double max,
boolean hasNodata,
double unDef) |
Create unique value legend scheme
|
static LegendScheme |
createUniqValueLegendScheme(VectorLayer aLayer,
double min,
double max) |
Create unique value legend scheme from a vector layer
|
static Object[] |
getContoursAndColors(LegendScheme aLS) |
Get contour values and colors from legend scheme
|
static Color[] |
getRainBowColors_HSV(int cNum) |
Get rainbow color by HSV/HSB
|
static void |
setContoursAndColors(LegendScheme aLS,
double[] cValues,
Color[] colors) |
Set contour values and colors from a legend scheme
|
public static LegendScheme createLegendSchemeFromGridData(GridData aGridData, LegendType aLT, ShapeTypes aST)
aGridData - Grid dataaLT - Legend typeaST - Shape typepublic static LegendScheme createLegendSchemeFromGridData(GridArray aGridData, LegendType aLT, ShapeTypes aST)
aGridData - Grid dataaLT - Legend typeaST - Shape typepublic static LegendScheme createLegendSchemeFromStationData(StationData stationData, LegendType aLT, ShapeTypes aST)
stationData - Station dataaLT - Legend typeaST - Shape typepublic static LegendScheme createSingleSymbolLegendScheme(ShapeTypes shapeType)
shapeType - The shape typepublic static LegendScheme createSingleSymbolLegendScheme(ShapeTypes aST, Color aColor, float size)
aST - Shape typeaColor - Colorsize - Sizepublic static LegendScheme createUniqValueLegendScheme(List<String> CValues, List<String> captions, Color[] colors, ShapeTypes aST, double min, double max, boolean hasNodata, double unDef)
CValues - The valuescaptions - The captionscolors - The colorsaST - The shape typemin - Minimum valuemax - Maximum valuehasNodata - If has undefine dataunDef - Undefine datapublic static LegendScheme createUniqValueLegendScheme(List<String> CValues, List<String> captions, Color[] colors, ShapeTypes aST, double min, double max)
CValues - The valuescaptions - The captionscolors - The colorsaST - The shape typemin - Minimum valuemax - Maximum valuepublic static LegendScheme createUniqValueLegendScheme(int n, ShapeTypes aST)
n - Legend break numberaST - The shape typepublic static LegendScheme createUniqValueLegendScheme(List<Number> values, ShapeTypes aST)
values - ValuesaST - The shape typepublic static LegendScheme createUniqValueLegendScheme(List<Number> values, ColorMap cmap, ShapeTypes aST)
values - Valuescmap - Color mapaST - The shape typepublic static LegendScheme createUniqValueLegendScheme(List<Number> values, Color[] colors, ShapeTypes aST)
values - Valuescolors - ColorsaST - The shape typepublic static LegendScheme createUniqValueLegendScheme(List<Number> values, List<Color> colors, ShapeTypes aST)
values - Valuescolors - ColorsaST - The shape typepublic static LegendScheme createUniqValueLegendScheme(List<String> CValues, Color[] colors, ShapeTypes aST, double min, double max, boolean hasNodata, double unDef)
CValues - The valuescolors - The colorsaST - The shape typemin - Minimum valuemax - Maximum valuehasNodata - If has undefine dataunDef - Undefine datapublic static LegendScheme createUniqValueLegendScheme(double[] CValues, Color[] colors, ShapeTypes aST, double min, double max, Boolean hasNodata, double unDef)
CValues - The valuescolors - The colorsaST - The shape typemin - Minimum valuemax - Maximum valuehasNodata - If has undefine dataunDef - Undefine datapublic static LegendScheme createUniqValueLegendScheme(double[] CValues, Color[] colors, ShapeTypes aST, double min, double max)
CValues - The valuescolors - The colorsaST - The shape typemin - Minimum valuemax - Maximum valuepublic static LegendScheme createUniqValueLegendScheme(VectorLayer aLayer, double min, double max)
aLayer - Vector layermin - Minimummax - Maximumpublic static LegendScheme createGraduatedLegendScheme(double[] CValues, Color[] colors, ShapeTypes aST, double min, double max, Boolean hasNodata, double unDef)
CValues - The valuescolors - The colorsaST - Shape typemin - Minimum valuemax - Maximum valuehasNodata - Is has no dataunDef - Undefine datapublic static LegendScheme createGraduatedLegendScheme(double[] values, Color[] colors, ShapeTypes aST, double min, double max)
values - The valuescolors - The colorsaST - Shape typemin - Minimum valuemax - Maximum valuepublic static Color[] createColors(Color sColor, Color eColor, int cNum)
sColor - Start coloreColor - End colorcNum - Color numberpublic static double[] createContourValuesInterval(double min,
double max,
double interval)
min - Miminum valuemax - Maximum valueinterval - Interval valuepublic static LegendScheme createLegendScheme(ShapeTypes shapeType, List<Number> values, List<Color> colors)
shapeType - Shape typevalues - Valuescolors - Colorspublic static LegendScheme createLegendScheme(double min, double max)
min - Minimummax - Maximumpublic static LegendScheme createLegendScheme(double min, double max, ColorMap ct)
min - Minimummax - Maximumct - Color tablepublic static LegendScheme createLegendScheme(double min, double max, ColorMap ct, double missingValue)
min - Minimummax - Maximumct - Color tablemissingValue - Missing valuepublic static LegendScheme createLegendScheme(double min, double max, double interval, LegendType legendType, ShapeTypes shapeType)
min - Minimummax - Maximuminterval - IntervallegendType - Legend typeshapeType - Shape typepublic static LegendScheme createLegendScheme(double min, double max, double interval, LegendType legendType, ShapeTypes shapeType, boolean hasNodata, double unDef)
min - Minimummax - Maximuminterval - IntervallegendType - Legend typeshapeType - Shape typehasNodata - Has missing value or notunDef - Missing valuepublic static LegendScheme createLegendScheme(double min, double max, int n)
min - Minimummax - Maximumn - Level numberpublic static LegendScheme createLegendScheme(double min, double max, int n, LegendType legendType, ShapeTypes shapeType)
min - Minimummax - Maximumn - Level numberlegendType - Legend typeshapeType - Shape typepublic static LegendScheme createLegendScheme(double min, double max, double[] values, Color[] colors, LegendType legendType, ShapeTypes shapeType, boolean hasNodata, double unDef)
min - Minimummax - Maximumvalues - Valuescolors - ColorslegendType - Legend typeshapeType - Shape typehasNodata - Has missing value or notunDef - Missing valuepublic static LegendScheme createLegendScheme(double min, double max, int n, LegendType legendType, ShapeTypes shapeType, boolean hasNodata, double unDef)
min - Minimummax - Maximumn - Level numberlegendType - Legend typeshapeType - Shape typehasNodata - Has missing value or notunDef - Missing valuepublic static LegendScheme createLegendScheme(double min, double max, int n, ColorMap ct, LegendType legendType, ShapeTypes shapeType, boolean hasNodata, double unDef)
min - Minimummax - Maximumn - Level numberct - Color tablelegendType - Legend typeshapeType - Shape typehasNodata - Has missing value or notunDef - Missing valuepublic static LegendScheme createLegendScheme(double min, double max, List<Number> levs, ColorMap ct, LegendType legendType, ShapeTypes shapeType, boolean hasNodata, double unDef)
min - Minimummax - Maximumlevs - Level valuesct - Color tablelegendType - Legend typeshapeType - Shape typehasNodata - Has missing value or notunDef - Missing valuepublic static LegendScheme createLegendScheme(double min, double max, List<Number> levs, ColorMap ct)
min - Minimummax - Maximumlevs - Level valuesct - Color tablepublic static LegendScheme createLegendScheme(double min, double max, int n, ColorMap ct)
min - Minimummax - Maximumn - Level numberct - Color tablepublic static LegendScheme createLegendScheme(GridData gdata, double interval, LegendType legendType, ShapeTypes shapeType)
gdata - Grid datainterval - IntervallegendType - Legend typeshapeType - Shape typepublic static LegendScheme createLegendScheme(GridData gdata, int n, LegendType legendType, ShapeTypes shapeType)
gdata - Grid datan - Level numberlegendType - Legend typeshapeType - Shape typepublic static LegendScheme createLegendScheme(GridData gdata, int n, ColorMap ct, LegendType legendType, ShapeTypes shapeType)
gdata - Grid datan - Level numberct - Color tablelegendType - Legend typeshapeType - Shape typepublic static LegendScheme createLegendScheme(GridData gdata, int n, ColorMap ct) throws IOException
gdata - Grid datan - Level numberct - Color table nameIOExceptionpublic static LegendScheme createLegendScheme(StationData stdata, int n, ColorMap ct, LegendType legendType, ShapeTypes shapeType) throws IOException
stdata - Station datan - Level numberct - Color table namelegendType - Legend typeshapeType - Shape typeIOExceptionpublic static LegendScheme createImageLegend(GridData gdata, ColorMap cmap)
gdata - Grid datacmap - Color mappublic static LegendScheme createImageLegend(GridArray gdata, ColorMap cmap)
gdata - Grid datacmap - Color mappublic static LegendScheme createImageLegend(GridData gdata, int n, ColorMap cmap)
gdata - Grid datan - Legend break numbercmap - Color mappublic static LegendScheme createImageLegend(GridArray gdata, int n, ColorMap cmap)
gdata - Grid datan - Legend break numbercmap - Color mappublic static LegendScheme createImageLegend(GridData gdata, List<Number> levs, ColorMap cmap)
gdata - Grid datalevs - Legend break valuescmap - Color mappublic static LegendScheme createImageLegend(GridArray gdata, List<Number> levs, ColorMap cmap)
gdata - Grid datalevs - Legend break valuescmap - Color mappublic static Color[] createRandomColors(int cNum)
cNum - Color numberpublic static Color[] createRainBowColors(int cNum)
cNum - Color numberpublic static Color[] getRainBowColors_HSV(int cNum)
cNum - Color numberpublic static double[] createContourValues(double min,
double max)
min - Minimum valuemax - Maximum valuepublic static Object[] getContoursAndColors(LegendScheme aLS)
aLS - The legend schemepublic static void setContoursAndColors(LegendScheme aLS, double[] cValues, Color[] colors)
aLS - Legend schemecValues - Value arraycolors - Color arrayCopyright © 2019. All rights reserved.