类 LegendManage
- java.lang.Object
-
- org.meteoinfo.legend.LegendManage
-
public class LegendManage extends java.lang.ObjectLegend manage class- 作者:
- yaqiang
-
-
构造器概要
构造器 构造器 说明 LegendManage()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static java.awt.Color[]createColors(java.awt.Color sColor, java.awt.Color eColor, int cNum)Create colors from start and end colorstatic double[]createContourValues(double min, double max)Create contour values by minimum and maximum valuesstatic double[]createContourValuesInterval(double min, double max, double interval)Create contour values by intervalstatic LegendSchemecreateGraduatedLegendScheme(double[] values, java.awt.Color[] colors, ShapeTypes aST, double min, double max)Create graduated color legend schemestatic LegendSchemecreateGraduatedLegendScheme(double[] CValues, java.awt.Color[] colors, ShapeTypes aST, double min, double max, java.lang.Boolean hasNodata, double unDef)Create graduated color legend schemestatic LegendSchemecreateImageLegend(GridArray gdata, int n, ColorMap cmap)Create image legend from grid datastatic LegendSchemecreateImageLegend(GridArray gdata, java.util.List<java.lang.Number> levs, ColorMap cmap)Create image legend from grid datastatic LegendSchemecreateImageLegend(GridArray gdata, ColorMap cmap)Create image legend from grid datastatic LegendSchemecreateImageLegend(GridData gdata, int n, ColorMap cmap)Create image legend from grid datastatic LegendSchemecreateImageLegend(GridData gdata, java.util.List<java.lang.Number> levs, ColorMap cmap)Create image legend from grid datastatic LegendSchemecreateImageLegend(GridData gdata, ColorMap cmap)Create image legend from grid datastatic LegendSchemecreateLegendScheme(double min, double max)Create legend schemestatic LegendSchemecreateLegendScheme(double min, double max, double[] values, java.awt.Color[] colors, LegendType legendType, ShapeTypes shapeType, boolean hasNodata, double unDef)Create legend schemestatic LegendSchemecreateLegendScheme(double min, double max, double interval, LegendType legendType, ShapeTypes shapeType)Create legend schemestatic LegendSchemecreateLegendScheme(double min, double max, double interval, LegendType legendType, ShapeTypes shapeType, boolean hasNodata, double unDef)Create legend schemestatic LegendSchemecreateLegendScheme(double min, double max, int n)Create legend schemestatic LegendSchemecreateLegendScheme(double min, double max, int n, java.lang.String ctName)Create legend schemestatic LegendSchemecreateLegendScheme(double min, double max, int n, ColorMap ct)Create legend schemestatic LegendSchemecreateLegendScheme(double min, double max, int n, ColorMap ct, LegendType legendType, ShapeTypes shapeType, boolean hasNodata, double unDef)Create legend schemestatic LegendSchemecreateLegendScheme(double min, double max, int n, LegendType legendType, ShapeTypes shapeType)Create legend schemestatic LegendSchemecreateLegendScheme(double min, double max, int n, LegendType legendType, ShapeTypes shapeType, boolean hasNodata, double unDef)Create legend schemestatic LegendSchemecreateLegendScheme(double min, double max, java.lang.String ctName)Create legend schemestatic LegendSchemecreateLegendScheme(double min, double max, java.util.List<java.lang.Number> levs, ColorMap ct)Create legend schemestatic LegendSchemecreateLegendScheme(double min, double max, java.util.List<java.lang.Number> levs, ColorMap ct, LegendType legendType, ShapeTypes shapeType, boolean hasNodata, double unDef)Create legend schemestatic LegendSchemecreateLegendScheme(double min, double max, ColorMap ct)Create legend schemestatic LegendSchemecreateLegendScheme(double min, double max, ColorMap ct, double missingValue)Create legend schemestatic LegendSchemecreateLegendScheme(GridData gdata, double interval, LegendType legendType, ShapeTypes shapeType)Create legend schemestatic LegendSchemecreateLegendScheme(GridData gdata, int n, java.lang.String ctName)Create legend schemestatic LegendSchemecreateLegendScheme(GridData gdata, int n, java.lang.String ctName, LegendType legendType, ShapeTypes shapeType)Create legend schemestatic LegendSchemecreateLegendScheme(GridData gdata, int n, ColorMap ct, LegendType legendType, ShapeTypes shapeType)Create legend schemestatic LegendSchemecreateLegendScheme(GridData gdata, int n, LegendType legendType, ShapeTypes shapeType)Create legend schemestatic LegendSchemecreateLegendScheme(StationData stdata, int n, java.lang.String ctName, LegendType legendType, ShapeTypes shapeType)Create legend schemestatic LegendSchemecreateLegendScheme(ShapeTypes shapeType, java.util.List<java.lang.Number> values, java.util.List<java.awt.Color> colors)Create legend schemestatic LegendSchemecreateLegendSchemeFromGridData(GridArray aGridData, LegendType aLT, ShapeTypes aST)Create legend scheme from grid datastatic LegendSchemecreateLegendSchemeFromGridData(GridData aGridData, LegendType aLT, ShapeTypes aST)Create legend scheme from grid datastatic LegendSchemecreateLegendSchemeFromStationData(StationData stationData, LegendType aLT, ShapeTypes aST)Create legend scheme from station datastatic java.awt.Color[]createRainBowColors(int cNum)Create rainbow colorsstatic java.awt.Color[]createRandomColors(int cNum)Create random colorsstatic LegendSchemecreateSingleSymbolLegendScheme(ShapeTypes shapeType)Create single symbol legend schemestatic LegendSchemecreateSingleSymbolLegendScheme(ShapeTypes aST, java.awt.Color aColor, float size)Create single symbol legend schemestatic LegendSchemecreateUniqValueLegendScheme(double[] CValues, java.awt.Color[] colors, ShapeTypes aST, double min, double max)Create unique value legend schemestatic LegendSchemecreateUniqValueLegendScheme(double[] CValues, java.awt.Color[] colors, ShapeTypes aST, double min, double max, java.lang.Boolean hasNodata, double unDef)Create unique value legend schemestatic LegendSchemecreateUniqValueLegendScheme(int n, ShapeTypes aST)Create unique value legend schemestatic LegendSchemecreateUniqValueLegendScheme(java.util.List<java.lang.Number> values, java.awt.Color[] colors, ShapeTypes aST)Create unique value legend schemestatic LegendSchemecreateUniqValueLegendScheme(java.util.List<java.lang.Number> values, java.util.List<java.awt.Color> colors, ShapeTypes aST)Create unique value legend schemestatic LegendSchemecreateUniqValueLegendScheme(java.util.List<java.lang.Number> values, ColorMap cmap, ShapeTypes aST)Create unique value legend schemestatic LegendSchemecreateUniqValueLegendScheme(java.util.List<java.lang.Number> values, ShapeTypes aST)Create unique value legend schemestatic LegendSchemecreateUniqValueLegendScheme(java.util.List<java.lang.String> CValues, java.awt.Color[] colors, ShapeTypes aST, double min, double max, boolean hasNodata, double unDef)Create unique value legend schemestatic LegendSchemecreateUniqValueLegendScheme(java.util.List<java.lang.String> CValues, java.util.List<java.lang.String> captions, java.awt.Color[] colors, ShapeTypes aST, double min, double max)Create unique value legend schemestatic LegendSchemecreateUniqValueLegendScheme(java.util.List<java.lang.String> CValues, java.util.List<java.lang.String> captions, java.awt.Color[] colors, ShapeTypes aST, double min, double max, boolean hasNodata, double unDef)Create unique value legend schemestatic LegendSchemecreateUniqValueLegendScheme(VectorLayer aLayer, double min, double max)Create unique value legend scheme from a vector layerstatic java.lang.Object[]getContoursAndColors(LegendScheme aLS)Get contour values and colors from legend schemestatic java.awt.Color[]getRainBowColors_HSV(int cNum)Get rainbow color by HSV/HSBstatic voidsetContoursAndColors(LegendScheme aLS, double[] cValues, java.awt.Color[] colors)Set contour values and colors from a legend scheme
-
-
-
方法详细资料
-
createLegendSchemeFromGridData
public static LegendScheme createLegendSchemeFromGridData(GridData aGridData, LegendType aLT, ShapeTypes aST)
Create legend scheme from grid data- 参数:
aGridData- Grid dataaLT- Legend typeaST- Shape type- 返回:
- Legend scheme
-
createLegendSchemeFromGridData
public static LegendScheme createLegendSchemeFromGridData(GridArray aGridData, LegendType aLT, ShapeTypes aST)
Create legend scheme from grid data- 参数:
aGridData- Grid dataaLT- Legend typeaST- Shape type- 返回:
- Legend scheme
-
createLegendSchemeFromStationData
public static LegendScheme createLegendSchemeFromStationData(StationData stationData, LegendType aLT, ShapeTypes aST)
Create legend scheme from station data- 参数:
stationData- Station dataaLT- Legend typeaST- Shape type- 返回:
- Legend scheme
-
createSingleSymbolLegendScheme
public static LegendScheme createSingleSymbolLegendScheme(ShapeTypes shapeType)
Create single symbol legend scheme- 参数:
shapeType- The shape type- 返回:
- Legend scheme
-
createSingleSymbolLegendScheme
public static LegendScheme createSingleSymbolLegendScheme(ShapeTypes aST, java.awt.Color aColor, float size)
Create single symbol legend scheme- 参数:
aST- Shape typeaColor- Colorsize- Size- 返回:
- Legend scheme
-
createUniqValueLegendScheme
public static LegendScheme createUniqValueLegendScheme(java.util.List<java.lang.String> CValues, java.util.List<java.lang.String> captions, java.awt.Color[] colors, ShapeTypes aST, double min, double max, boolean hasNodata, double unDef)
Create unique value legend scheme- 参数:
CValues- The valuescaptions- The captionscolors- The colorsaST- The shape typemin- Minimum valuemax- Maximum valuehasNodata- If has undefine dataunDef- Undefine data- 返回:
- The legend scheme
-
createUniqValueLegendScheme
public static LegendScheme createUniqValueLegendScheme(java.util.List<java.lang.String> CValues, java.util.List<java.lang.String> captions, java.awt.Color[] colors, ShapeTypes aST, double min, double max)
Create unique value legend scheme- 参数:
CValues- The valuescaptions- The captionscolors- The colorsaST- The shape typemin- Minimum valuemax- Maximum value- 返回:
- The legend scheme
-
createUniqValueLegendScheme
public static LegendScheme createUniqValueLegendScheme(int n, ShapeTypes aST)
Create unique value legend scheme- 参数:
n- Legend break numberaST- The shape type- 返回:
- The legend scheme
-
createUniqValueLegendScheme
public static LegendScheme createUniqValueLegendScheme(java.util.List<java.lang.Number> values, ShapeTypes aST)
Create unique value legend scheme- 参数:
values- ValuesaST- The shape type- 返回:
- The legend scheme
-
createUniqValueLegendScheme
public static LegendScheme createUniqValueLegendScheme(java.util.List<java.lang.Number> values, ColorMap cmap, ShapeTypes aST)
Create unique value legend scheme- 参数:
values- Valuescmap- Color mapaST- The shape type- 返回:
- The legend scheme
-
createUniqValueLegendScheme
public static LegendScheme createUniqValueLegendScheme(java.util.List<java.lang.Number> values, java.awt.Color[] colors, ShapeTypes aST)
Create unique value legend scheme- 参数:
values- Valuescolors- ColorsaST- The shape type- 返回:
- The legend scheme
-
createUniqValueLegendScheme
public static LegendScheme createUniqValueLegendScheme(java.util.List<java.lang.Number> values, java.util.List<java.awt.Color> colors, ShapeTypes aST)
Create unique value legend scheme- 参数:
values- Valuescolors- ColorsaST- The shape type- 返回:
- The legend scheme
-
createUniqValueLegendScheme
public static LegendScheme createUniqValueLegendScheme(java.util.List<java.lang.String> CValues, java.awt.Color[] colors, ShapeTypes aST, double min, double max, boolean hasNodata, double unDef)
Create unique value legend scheme- 参数:
CValues- The valuescolors- The colorsaST- The shape typemin- Minimum valuemax- Maximum valuehasNodata- If has undefine dataunDef- Undefine data- 返回:
- The legend scheme
-
createUniqValueLegendScheme
public static LegendScheme createUniqValueLegendScheme(double[] CValues, java.awt.Color[] colors, ShapeTypes aST, double min, double max, java.lang.Boolean hasNodata, double unDef)
Create unique value legend scheme- 参数:
CValues- The valuescolors- The colorsaST- The shape typemin- Minimum valuemax- Maximum valuehasNodata- If has undefine dataunDef- Undefine data- 返回:
- The legend scheme
-
createUniqValueLegendScheme
public static LegendScheme createUniqValueLegendScheme(double[] CValues, java.awt.Color[] colors, ShapeTypes aST, double min, double max)
Create unique value legend scheme- 参数:
CValues- The valuescolors- The colorsaST- The shape typemin- Minimum valuemax- Maximum value- 返回:
- The legend scheme
-
createUniqValueLegendScheme
public static LegendScheme createUniqValueLegendScheme(VectorLayer aLayer, double min, double max)
Create unique value legend scheme from a vector layer- 参数:
aLayer- Vector layermin- Minimummax- Maximum- 返回:
- Legend scheme
-
createGraduatedLegendScheme
public static LegendScheme createGraduatedLegendScheme(double[] CValues, java.awt.Color[] colors, ShapeTypes aST, double min, double max, java.lang.Boolean hasNodata, double unDef)
Create graduated color legend scheme- 参数:
CValues- The valuescolors- The colorsaST- Shape typemin- Minimum valuemax- Maximum valuehasNodata- Is has no dataunDef- Undefine data- 返回:
- The legend scheme
-
createGraduatedLegendScheme
public static LegendScheme createGraduatedLegendScheme(double[] values, java.awt.Color[] colors, ShapeTypes aST, double min, double max)
Create graduated color legend scheme- 参数:
values- The valuescolors- The colorsaST- Shape typemin- Minimum valuemax- Maximum value- 返回:
- The legend scheme
-
createColors
public static java.awt.Color[] createColors(java.awt.Color sColor, java.awt.Color eColor, int cNum)Create colors from start and end color- 参数:
sColor- Start coloreColor- End colorcNum- Color number- 返回:
- Color array
-
createContourValuesInterval
public static double[] createContourValuesInterval(double min, double max, double interval)Create contour values by interval- 参数:
min- Miminum valuemax- Maximum valueinterval- Interval value- 返回:
- Value array
-
createLegendScheme
public static LegendScheme createLegendScheme(ShapeTypes shapeType, java.util.List<java.lang.Number> values, java.util.List<java.awt.Color> colors)
Create legend scheme- 参数:
shapeType- Shape typevalues- Valuescolors- Colors- 返回:
- Legend scheme
-
createLegendScheme
public static LegendScheme createLegendScheme(double min, double max)
Create legend scheme- 参数:
min- Minimummax- Maximum- 返回:
- LegendScheme
-
createLegendScheme
public static LegendScheme createLegendScheme(double min, double max, ColorMap ct)
Create legend scheme- 参数:
min- Minimummax- Maximumct- Color table- 返回:
- LegendScheme
-
createLegendScheme
public static LegendScheme createLegendScheme(double min, double max, ColorMap ct, double missingValue)
Create legend scheme- 参数:
min- Minimummax- Maximumct- Color tablemissingValue- Missing value- 返回:
- LegendScheme
-
createLegendScheme
public static LegendScheme createLegendScheme(double min, double max, java.lang.String ctName) throws java.io.IOException
Create legend scheme- 参数:
min- Minimummax- MaximumctName- Color table name- 返回:
- LegendScheme
- 抛出:
java.io.IOException
-
createLegendScheme
public static LegendScheme createLegendScheme(double min, double max, double interval, LegendType legendType, ShapeTypes shapeType)
Create legend scheme- 参数:
min- Minimummax- Maximuminterval- IntervallegendType- Legend typeshapeType- Shape type- 返回:
- LegendScheme
-
createLegendScheme
public static LegendScheme createLegendScheme(double min, double max, double interval, LegendType legendType, ShapeTypes shapeType, boolean hasNodata, double unDef)
Create legend scheme- 参数:
min- Minimummax- Maximuminterval- IntervallegendType- Legend typeshapeType- Shape typehasNodata- Has missing value or notunDef- Missing value- 返回:
- LegendScheme
-
createLegendScheme
public static LegendScheme createLegendScheme(double min, double max, int n)
Create legend scheme- 参数:
min- Minimummax- Maximumn- Level number- 返回:
- LegendScheme
-
createLegendScheme
public static LegendScheme createLegendScheme(double min, double max, int n, LegendType legendType, ShapeTypes shapeType)
Create legend scheme- 参数:
min- Minimummax- Maximumn- Level numberlegendType- Legend typeshapeType- Shape type- 返回:
- LegendScheme
-
createLegendScheme
public static LegendScheme createLegendScheme(double min, double max, double[] values, java.awt.Color[] colors, LegendType legendType, ShapeTypes shapeType, boolean hasNodata, double unDef)
Create legend scheme- 参数:
min- Minimummax- Maximumvalues- Valuescolors- ColorslegendType- Legend typeshapeType- Shape typehasNodata- Has missing value or notunDef- Missing value- 返回:
- LegendScheme
-
createLegendScheme
public static LegendScheme createLegendScheme(double min, double max, int n, LegendType legendType, ShapeTypes shapeType, boolean hasNodata, double unDef)
Create legend scheme- 参数:
min- Minimummax- Maximumn- Level numberlegendType- Legend typeshapeType- Shape typehasNodata- Has missing value or notunDef- Missing value- 返回:
- LegendScheme
-
createLegendScheme
public static LegendScheme createLegendScheme(double min, double max, int n, ColorMap ct, LegendType legendType, ShapeTypes shapeType, boolean hasNodata, double unDef)
Create legend scheme- 参数:
min- Minimummax- Maximumn- Level numberct- Color tablelegendType- Legend typeshapeType- Shape typehasNodata- Has missing value or notunDef- Missing value- 返回:
- LegendScheme
-
createLegendScheme
public static LegendScheme createLegendScheme(double min, double max, java.util.List<java.lang.Number> levs, ColorMap ct, LegendType legendType, ShapeTypes shapeType, boolean hasNodata, double unDef)
Create legend scheme- 参数:
min- Minimummax- Maximumlevs- Level valuesct- Color tablelegendType- Legend typeshapeType- Shape typehasNodata- Has missing value or notunDef- Missing value- 返回:
- LegendScheme
-
createLegendScheme
public static LegendScheme createLegendScheme(double min, double max, int n, java.lang.String ctName) throws java.io.IOException
Create legend scheme- 参数:
min- Minimummax- Maximumn- Level numberctName- Color table name- 返回:
- LegendScheme
- 抛出:
java.io.IOException
-
createLegendScheme
public static LegendScheme createLegendScheme(double min, double max, java.util.List<java.lang.Number> levs, ColorMap ct)
Create legend scheme- 参数:
min- Minimummax- Maximumlevs- Level valuesct- Color table- 返回:
- LegendScheme
-
createLegendScheme
public static LegendScheme createLegendScheme(double min, double max, int n, ColorMap ct)
Create legend scheme- 参数:
min- Minimummax- Maximumn- Level numberct- Color table- 返回:
- LegendScheme
-
createLegendScheme
public static LegendScheme createLegendScheme(GridData gdata, double interval, LegendType legendType, ShapeTypes shapeType)
Create legend scheme- 参数:
gdata- Grid datainterval- IntervallegendType- Legend typeshapeType- Shape type- 返回:
- LegendScheme
-
createLegendScheme
public static LegendScheme createLegendScheme(GridData gdata, int n, LegendType legendType, ShapeTypes shapeType)
Create legend scheme- 参数:
gdata- Grid datan- Level numberlegendType- Legend typeshapeType- Shape type- 返回:
- LegendScheme
-
createLegendScheme
public static LegendScheme createLegendScheme(GridData gdata, int n, ColorMap ct, LegendType legendType, ShapeTypes shapeType)
Create legend scheme- 参数:
gdata- Grid datan- Level numberct- Color tablelegendType- Legend typeshapeType- Shape type- 返回:
- LegendScheme
-
createLegendScheme
public static LegendScheme createLegendScheme(GridData gdata, int n, java.lang.String ctName) throws java.io.IOException
Create legend scheme- 参数:
gdata- Grid datan- Level numberctName- Color table name- 返回:
- LegendScheme
- 抛出:
java.io.IOException
-
createLegendScheme
public static LegendScheme createLegendScheme(GridData gdata, int n, java.lang.String ctName, LegendType legendType, ShapeTypes shapeType) throws java.io.IOException
Create legend scheme- 参数:
gdata- Grid datan- Level numberctName- Color table namelegendType- Legend typeshapeType- Shape type- 返回:
- LegendScheme
- 抛出:
java.io.IOException
-
createLegendScheme
public static LegendScheme createLegendScheme(StationData stdata, int n, java.lang.String ctName, LegendType legendType, ShapeTypes shapeType) throws java.io.IOException
Create legend scheme- 参数:
stdata- Station datan- Level numberctName- Color table namelegendType- Legend typeshapeType- Shape type- 返回:
- Legend scheme
- 抛出:
java.io.IOException
-
createImageLegend
public static LegendScheme createImageLegend(GridData gdata, ColorMap cmap)
Create image legend from grid data- 参数:
gdata- Grid datacmap- Color map- 返回:
- Legend scheme
-
createImageLegend
public static LegendScheme createImageLegend(GridArray gdata, ColorMap cmap)
Create image legend from grid data- 参数:
gdata- Grid datacmap- Color map- 返回:
- Legend scheme
-
createImageLegend
public static LegendScheme createImageLegend(GridData gdata, int n, ColorMap cmap)
Create image legend from grid data- 参数:
gdata- Grid datan- Legend break numbercmap- Color map- 返回:
- Legend scheme
-
createImageLegend
public static LegendScheme createImageLegend(GridArray gdata, int n, ColorMap cmap)
Create image legend from grid data- 参数:
gdata- Grid datan- Legend break numbercmap- Color map- 返回:
- Legend scheme
-
createImageLegend
public static LegendScheme createImageLegend(GridData gdata, java.util.List<java.lang.Number> levs, ColorMap cmap)
Create image legend from grid data- 参数:
gdata- Grid datalevs- Legend break valuescmap- Color map- 返回:
- Legend scheme
-
createImageLegend
public static LegendScheme createImageLegend(GridArray gdata, java.util.List<java.lang.Number> levs, ColorMap cmap)
Create image legend from grid data- 参数:
gdata- Grid datalevs- Legend break valuescmap- Color map- 返回:
- Legend scheme
-
createRandomColors
public static java.awt.Color[] createRandomColors(int cNum)
Create random colors- 参数:
cNum- Color number- 返回:
- The random colors
-
createRainBowColors
public static java.awt.Color[] createRainBowColors(int cNum)
Create rainbow colors- 参数:
cNum- Color number- 返回:
- Rainbow color array
-
getRainBowColors_HSV
public static java.awt.Color[] getRainBowColors_HSV(int cNum)
Get rainbow color by HSV/HSB- 参数:
cNum- Color number- 返回:
- Rainbow colors
-
createContourValues
public static double[] createContourValues(double min, double max)Create contour values by minimum and maximum values- 参数:
min- Minimum valuemax- Maximum value- 返回:
- Contour values
-
getContoursAndColors
public static java.lang.Object[] getContoursAndColors(LegendScheme aLS)
Get contour values and colors from legend scheme- 参数:
aLS- The legend scheme- 返回:
- Contour and color values
-
setContoursAndColors
public static void setContoursAndColors(LegendScheme aLS, double[] cValues, java.awt.Color[] colors)
Set contour values and colors from a legend scheme- 参数:
aLS- Legend schemecValues- Value arraycolors- Color array
-
-