Package org.meteoinfo.legend
Class ChartBreak
- java.lang.Object
-
- org.meteoinfo.legend.ColorBreak
-
- org.meteoinfo.legend.ChartBreak
-
public class ChartBreak extends ColorBreak
Chart break class
-
-
Field Summary
-
Fields inherited from class org.meteoinfo.legend.ColorBreak
_breakType
-
-
Constructor Summary
Constructors Constructor Description ChartBreak(ChartTypes chartType)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneAlignTypegetAlignType()Get align typejava.util.List<java.lang.Integer>getBarHeights()Get bar heightsintgetBarWidth()Get bar widthjava.util.List<java.lang.Float>getChartData()Get chart dataChartTypesgetChartType()Get chart typefloatgetDataSum()Get chart data sumintgetDecimalDigits()Get decimal digitsExtentgetDrawExtent(PointF aPoint)Get draw extentintgetHeight()Get chart heightintgetItemNum()Get chart item numberjava.awt.ColorgetLabelColor()Get label colorjava.awt.FontgetLabelFont()Get label fontLegendSchemegetLegendScheme()Get legend schemeintgetMaxSize()Get maximum sizefloatgetMaxValue()Get maximum valueintgetMinSize()Get minimum sizefloatgetMinValue()Get minimum valuejava.util.List<java.util.List<java.lang.Float>>getPieAngles()Get pie anglesjava.util.List<java.lang.Float>getPieRatios()Get pie ratiosChartBreakgetSampleChartBreak()Get sample chart breakintgetShapeIndex()Get shape indexintgetThickness()Get 3D thicknessintgetWidth()Get chart widthintgetXShift()Get x shiftintgetYShift()Get y shiftbooleanisDrawLabel()Get if draw labelbooleanisView3D()Get if view 3DvoidsetAlignType(AlignType atype)Set align typevoidsetBarWidth(int width)Set bar widthvoidsetChartData(java.util.List<java.lang.Float> cData)Set chart datavoidsetChartType(ChartTypes cType)Set chart typevoidsetDecimalDigits(int value)Set decimal digitsvoidsetDrawLabel(boolean value)Set if draw labelvoidsetLabelColor(java.awt.Color value)Set label colorvoidsetLabelFont(java.awt.Font value)Set label fontvoidsetLegendScheme(LegendScheme ls)Set legend schemevoidsetMaxSize(int maxSize)Set maximum sizevoidsetMaxValue(float maxValue)Set maximum valuevoidsetMinSize(int minSize)Set minimum sizevoidsetMinValue(float minValue)Set minimum valuevoidsetShapeIndex(int sIdx)Set shape indexvoidsetThickness(int thickness)Set 3D thicknessvoidsetView3D(boolean v3d)Set if view 3DvoidsetXShift(int xshift)Set x shiftvoidsetYShift(int yshift)Set y shift-
Methods inherited from class org.meteoinfo.legend.ColorBreak
exportToXML, getBreakType, getCaption, getColor, getEndValue, getPropertyObject, getStartValue, getTag, getValueString, isDrawShape, isNoData, setBreakType, setCaption, setColor, setDrawShape, setEndValue, setNoData, setStartValue, setTag
-
-
-
-
Constructor Detail
-
ChartBreak
public ChartBreak(ChartTypes chartType)
Constructor- Parameters:
chartType- Chart type
-
-
Method Detail
-
getChartType
public ChartTypes getChartType()
Get chart type- Returns:
- Chart type
-
setChartType
public void setChartType(ChartTypes cType)
Set chart type- Parameters:
cType- Chart type
-
getChartData
public java.util.List<java.lang.Float> getChartData()
Get chart data- Returns:
- Chart data list
-
setChartData
public void setChartData(java.util.List<java.lang.Float> cData)
Set chart data- Parameters:
cData- Chart data list
-
getItemNum
public int getItemNum()
Get chart item number- Returns:
- Chart item number
-
getDataSum
public float getDataSum()
Get chart data sum- Returns:
- Chart data sum
-
getXShift
public int getXShift()
Get x shift- Returns:
- X shift
-
setXShift
public void setXShift(int xshift)
Set x shift- Parameters:
xshift- X shift
-
getYShift
public int getYShift()
Get y shift- Returns:
- Y shift
-
setYShift
public void setYShift(int yshift)
Set y shift- Parameters:
yshift- Y shift
-
getLegendScheme
public LegendScheme getLegendScheme()
Get legend scheme- Returns:
- Legend Scheme
-
setLegendScheme
public void setLegendScheme(LegendScheme ls)
Set legend scheme- Parameters:
ls- Legend scheme
-
getMaxSize
public int getMaxSize()
Get maximum size- Returns:
- Maximum size
-
setMaxSize
public void setMaxSize(int maxSize)
Set maximum size- Parameters:
maxSize- Maximum size
-
getMinSize
public int getMinSize()
Get minimum size- Returns:
- Minimum size
-
setMinSize
public void setMinSize(int minSize)
Set minimum size- Parameters:
minSize- Minimum size
-
getMaxValue
public float getMaxValue()
Get maximum value- Returns:
- Maximum value
-
setMaxValue
public void setMaxValue(float maxValue)
Set maximum value- Parameters:
maxValue- Maximum value
-
getMinValue
public float getMinValue()
Get minimum value- Returns:
- Minimum value
-
setMinValue
public void setMinValue(float minValue)
Set minimum value- Parameters:
minValue- 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
-
getAlignType
public AlignType getAlignType()
Get align type- Returns:
- Align type
-
setAlignType
public void setAlignType(AlignType atype)
Set align type- Parameters:
atype- Align type
-
isView3D
public boolean isView3D()
Get if view 3D- Returns:
- Boolean
-
setView3D
public void setView3D(boolean v3d)
Set if view 3D- Parameters:
v3d-
-
getThickness
public int getThickness()
Get 3D thickness- Returns:
- 3D thickness
-
setThickness
public void setThickness(int thickness)
Set 3D thickness- Parameters:
thickness- 3D thickness
-
getShapeIndex
public int getShapeIndex()
Get shape index- Returns:
- Shape index
-
setShapeIndex
public void setShapeIndex(int sIdx)
Set shape index- Parameters:
sIdx- Shape index
-
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
-
getBarHeights
public java.util.List<java.lang.Integer> getBarHeights()
Get bar heights- Returns:
- Bar heights
-
getWidth
public int getWidth()
Get chart width- Returns:
- Chart width
-
getHeight
public int getHeight()
Get chart height- Returns:
- Chart height
-
getPieAngles
public java.util.List<java.util.List<java.lang.Float>> getPieAngles()
Get pie angles- Returns:
- Pie angle list
-
getPieRatios
public java.util.List<java.lang.Float> getPieRatios()
Get pie ratios- Returns:
- Pie ratio list
-
clone
public java.lang.Object clone()
Clone- Overrides:
clonein classColorBreak- Returns:
- ChartBreak object
-
getSampleChartBreak
public ChartBreak getSampleChartBreak()
Get sample chart break- Returns:
- Sample chart break
-
-