Package org.meteoinfo.layer
Class ChartSet
- java.lang.Object
-
- org.meteoinfo.layer.ChartSet
-
public class ChartSet extends java.lang.ObjectTemplate
-
-
Constructor Summary
Constructors Constructor Description ChartSet()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlignTypegetAlignType()Get align typeintgetBarWidth()Get bar widthChartTypesgetChartType()Get chart typeintgetDecimalDigits()Get decimal digitsjava.util.List<java.lang.String>getFieldNames()Get field namesjava.awt.ColorgetLabelColor()Get label colorjava.awt.FontgetLabelFont()Get label fontLegendSchemegetLegendScheme()Get legend schemeintgetMaxSize()Get maximum sizefloatgetMaxValue()Get maximum valueintgetMinSize()Get minimum sizefloatgetMinValue()Get minimum valueintgetThickness()Get 3D thicknessintgetXShift()Get x shiftintgetYShift()Get y shiftbooleanisAvoidCollision()Get if avoid collisionbooleanisDrawCharts()Set if draw chartsbooleanisDrawLabel()Get if draw labelbooleanisView3D()Get if view 3DvoidsetAlignType(java.lang.String tstr)Set align typevoidsetAlignType(AlignType type)Set align typevoidsetAvoidCollision(boolean istrue)Set if avoid collisionvoidsetBarWidth(int width)Set bar widthvoidsetChartType(java.lang.String tstr)Set chart typevoidsetChartType(ChartTypes type)Set chart typevoidsetDecimalDigits(int value)Set decimal digitsvoidsetDrawCharts(boolean istrue)Set if draw chartsvoidsetDrawLabel(boolean value)Set if draw labelvoidsetFieldNames(java.util.List<java.lang.String> names)Set field namesvoidsetLabelColor(java.awt.Color value)Set label colorvoidsetLabelFont(java.awt.Font value)Set label fontvoidsetLegendScheme(LegendScheme ls)Set legend schemevoidsetMaxSize(int size)Set maximum sizevoidsetMaxValue(float value)voidsetMinSize(int size)Set minimum sizevoidsetMinValue(float value)Set minimum valuevoidsetThickness(int value)Set 3D thicknessvoidsetView3D(boolean istrue)Set if view 3DvoidsetXShift(int shift)Set x shiftvoidsetYShift(int shift)Set y shiftvoidupdate()Update - avoid the disagree of field names and legend scheme
-
-
-
Method Detail
-
getChartType
public ChartTypes getChartType()
Get chart type- Returns:
- Chart type
-
setChartType
public void setChartType(ChartTypes type)
Set chart type- Parameters:
type- Chart type
-
setChartType
public void setChartType(java.lang.String tstr)
Set chart type- Parameters:
tstr- Chart type string
-
isDrawCharts
public boolean isDrawCharts()
Set if draw charts- Returns:
- If draw charts
-
setDrawCharts
public void setDrawCharts(boolean istrue)
Set if draw charts- Parameters:
istrue- If draw charts
-
getFieldNames
public java.util.List<java.lang.String> getFieldNames()
Get field names- Returns:
- The file names
-
setFieldNames
public void setFieldNames(java.util.List<java.lang.String> names)
Set field names- Parameters:
names- Field names
-
getXShift
public int getXShift()
Get x shift- Returns:
- X shift
-
setXShift
public void setXShift(int shift)
Set x shift- Parameters:
shift- X shift
-
getYShift
public int getYShift()
Get y shift- Returns:
- Y shift
-
setYShift
public void setYShift(int shift)
Set y shift- Parameters:
shift- Y shift
-
getLegendScheme
public LegendScheme getLegendScheme()
Get legend scheme- Returns:
- The legend scheme
-
setLegendScheme
public void setLegendScheme(LegendScheme ls)
Set legend scheme- Parameters:
ls- The legend scheme
-
getMaxSize
public int getMaxSize()
Get maximum size- Returns:
- Maximum size
-
setMaxSize
public void setMaxSize(int size)
Set maximum size- Parameters:
size- Maximum size
-
getMinSize
public int getMinSize()
Get minimum size- Returns:
- Minimum size
-
setMinSize
public void setMinSize(int size)
Set minimum size- Parameters:
size- Minimum size
-
getMaxValue
public float getMaxValue()
Get maximum value- Returns:
- Maximum value
-
setMaxValue
public void setMaxValue(float value)
-
getMinValue
public float getMinValue()
Get minimum value- Returns:
- Minimum value
-
setMinValue
public void setMinValue(float value)
Set minimum value- Parameters:
value- Minimum value
-
getBarWidth
public int getBarWidth()
Get bar width- Returns:
- Bar width
-
setBarWidth
public void setBarWidth(int width)
Set bar width- Parameters:
width- Bar width
-
isAvoidCollision
public boolean isAvoidCollision()
Get if avoid collision- Returns:
- If avoid collisioin
-
setAvoidCollision
public void setAvoidCollision(boolean istrue)
Set if avoid collision- Parameters:
istrue- If avoid collision
-
getAlignType
public AlignType getAlignType()
Get align type- Returns:
- Align type
-
setAlignType
public void setAlignType(AlignType type)
Set align type- Parameters:
type- Align type
-
setAlignType
public void setAlignType(java.lang.String tstr)
Set align type- Parameters:
tstr- Align type string
-
isView3D
public boolean isView3D()
Get if view 3D- Returns:
- If view 3D
-
setView3D
public void setView3D(boolean istrue)
Set if view 3D- Parameters:
istrue- If view 3D
-
getThickness
public int getThickness()
Get 3D thickness- Returns:
- 3D thickness
-
setThickness
public void setThickness(int value)
Set 3D thickness- Parameters:
value- 3D thickness
-
isDrawLabel
public boolean isDrawLabel()
Get if draw label- Returns:
- Boolean
-
setDrawLabel
public void setDrawLabel(boolean value)
Set if draw label- Parameters:
value- Boolean
-
getLabelFont
public java.awt.Font getLabelFont()
Get label font- Returns:
- Label font
-
setLabelFont
public void setLabelFont(java.awt.Font value)
Set label font- Parameters:
value- Label font
-
getLabelColor
public java.awt.Color getLabelColor()
Get label color- Returns:
- Label color
-
setLabelColor
public void setLabelColor(java.awt.Color value)
Set label color- Parameters:
value- Label color
-
getDecimalDigits
public int getDecimalDigits()
Get decimal digits- Returns:
- Decimal digits
-
setDecimalDigits
public void setDecimalDigits(int value)
Set decimal digits- Parameters:
value- Decimal digits
-
update
public void update()
Update - avoid the disagree of field names and legend scheme
-
-