Package org.meteoinfo.chart
Class ChartColorBar
- java.lang.Object
-
- org.meteoinfo.chart.ChartLegend
-
- org.meteoinfo.chart.ChartColorBar
-
public class ChartColorBar extends ChartLegend
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.meteoinfo.chart.ChartLegend
ChartLegend.LayoutLegendBean, ChartLegend.LayoutLegendBeanBeanInfo, ChartLegend.PlotOrientationEditor
-
-
Field Summary
-
Fields inherited from class org.meteoinfo.chart.ChartLegend
_hBarHeight, _vBarWidth, aspect, autoExtendFrac, background, drawBackground, drawMaxLabel, drawMinLabel, drawNeatLine, extendRect, height, label, labelLocation, legendHeight, legendScheme, legendWidth, neatLineColor, neatLineSize, orientation, shrink, tickLabelAngle, tickLabelColor, tickLabelFont, width, x, xshift, y, yshift
-
-
Constructor Summary
Constructors Constructor Description ChartColorBar(LegendScheme ls)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(java.awt.Graphics2D g, PointF point)Draw legendjava.awt.DimensiongetLegendDimension(java.awt.Graphics2D g, java.awt.Dimension limitDim)Get legend dimensionjava.util.List<ChartText>getTickLabels()Get tick labelsjava.util.List<java.lang.String>getTickLabelText()Get tick label textintgetTickLength()Get tick lengthjava.util.List<java.lang.Double>getTickLocations()Tick locationsbooleanisAutoTick()Get if is auto tick labelsbooleanisInsideTick()Get if is inside tickvoidsetAutoTick(boolean value)Set if auto tick labelsvoidsetInsideTick(boolean value)Set if is inside tickvoidsetTickLabels(java.util.List<ChartText> value)Set tick labels.voidsetTickLabels_Number(java.util.List<java.lang.Number> value)Set tick labelsvoidsetTickLabelText(java.util.List<java.lang.String> value)Set tick label textvoidsetTickLength(int value)Set tick lengthvoidsetTickLocations(double[] value)Set tick locationsvoidsetTickLocations(java.util.List<java.lang.Number> value)Set tick locations-
Methods inherited from class org.meteoinfo.chart.ChartLegend
getAspect, getBackground, getColumnNumber, getHeight, getLabel, getLabelColor, getLabelFont, getLabelLocation, getLegendHeight, getLegendScheme, getLegendWidth, getNeatLineColor, getNeatLineSize, getPlotOrientation, getPosition, getShrink, getSymbolDimension, getTickGap, getTickHeight, getTickLabelAngle, getTickLabelColor, getTickLabelFont, getTickWidth, getWidth, getX, getXShift, getY, getYShift, isAutoExtendFrac, isAutoRowColNum, isColorbar, isDrawBackground, isDrawMaxLabel, isDrawMinLabel, isDrawNeatLine, isExtendRect, setAspect, setAutoExtendFrac, setAutoRowColNum, setBackground, setColorbar, setColumnNumber, setDrawBackground, setDrawMaxLabel, setDrawMinLabel, setDrawNeatLine, setExtendRect, setHeight, setLabel, setLabelColor, setLabelFont, setLabelLocation, setLegendHeight, setLegendScheme, setLegendWidth, setNeatLineColor, setNeatLineSize, setPlotOrientation, setPosition, setShrink, setSymbolDimension, setSymbolHeight, setSymbolScale, setSymbolWidth, setTickCaptions, setTickLabelAngle, setTickLabelColor, setTickLabelFont, setWidth, setX, setXShift, setY, setYShift
-
-
-
-
Constructor Detail
-
ChartColorBar
public ChartColorBar(LegendScheme ls)
Constructor- Parameters:
ls- LegendScheme
-
-
Method Detail
-
getTickLocations
public java.util.List<java.lang.Double> getTickLocations()
Tick locations- Returns:
- Tick locations
-
setTickLocations
public void setTickLocations(java.util.List<java.lang.Number> value)
Set tick locations- Parameters:
value- Tick locations
-
setTickLocations
public void setTickLocations(double[] value)
Set tick locations- Parameters:
value- Tick locations
-
getTickLabels
public java.util.List<ChartText> getTickLabels()
Get tick labels- Returns:
- Tick labels
-
getTickLabelText
public java.util.List<java.lang.String> getTickLabelText()
Get tick label text- Returns:
- Tick label text
-
setTickLabelText
public void setTickLabelText(java.util.List<java.lang.String> value)
Set tick label text- Parameters:
value- Tick label text
-
setTickLabels
public void setTickLabels(java.util.List<ChartText> value)
Set tick labels.- Parameters:
value- Tick labels
-
setTickLabels_Number
public void setTickLabels_Number(java.util.List<java.lang.Number> value)
Set tick labels- Parameters:
value- Tick labels
-
isAutoTick
public boolean isAutoTick()
Get if is auto tick labels- Returns:
- Boolean
-
setAutoTick
public void setAutoTick(boolean value)
Set if auto tick labels- Parameters:
value- Boolean
-
getTickLength
public int getTickLength()
Get tick length- Returns:
- Tick length
-
setTickLength
public void setTickLength(int value)
Set tick length- Parameters:
value- Tick length
-
isInsideTick
public boolean isInsideTick()
Get if is inside tick- Returns:
- Boolean
-
setInsideTick
public void setInsideTick(boolean value)
Set if is inside tick- Parameters:
value- Boolean
-
draw
public void draw(java.awt.Graphics2D g, PointF point)Draw legend- Overrides:
drawin classChartLegend- Parameters:
g- Graphics2Dpoint- Start point
-
getLegendDimension
public java.awt.Dimension getLegendDimension(java.awt.Graphics2D g, java.awt.Dimension limitDim)Get legend dimension- Overrides:
getLegendDimensionin classChartLegend- Parameters:
g- Graphics2DlimitDim- Limit dimension- Returns:
- Legend dimension
-
-