Package org.meteoinfo.chart.plot
Class XY1DPlot
- java.lang.Object
-
- org.meteoinfo.chart.plot.Plot
-
- org.meteoinfo.chart.plot.AbstractPlot2D
-
- org.meteoinfo.chart.plot.XY1DPlot
-
public class XY1DPlot extends AbstractPlot2D
-
-
Field Summary
-
Fields inherited from class org.meteoinfo.chart.plot.AbstractPlot2D
background
-
Fields inherited from class org.meteoinfo.chart.plot.Plot
columnIndex, DEFAULT_BACKGROUND_ALPHA, DEFAULT_BACKGROUND_PAINT, DEFAULT_FOREGROUND_ALPHA, DEFAULT_LEGEND_ITEM_BOX, DEFAULT_LEGEND_ITEM_CIRCLE, DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, isSubPlot, MINIMUM_HEIGHT_TO_DRAW, MINIMUM_WIDTH_TO_DRAW, outerPosition, position, rowIndex, symbolAntialias, units
-
-
Constructor Summary
Constructors Constructor Description XY1DPlot()ConstructorXY1DPlot(boolean isTime, ChartPlotMethod cpMethod, XYDataset dateset)ConstructorXY1DPlot(boolean isTime, PlotOrientation orientation, XYDataset dateset)ConstructorXY1DPlot(boolean isTime, XYDataset dateset)ConstructorXY1DPlot(PlotOrientation orientation, XYDataset dateset)ConstructorXY1DPlot(XYDataset dateset)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSeries(java.lang.String seriesKey, double[] xvs, double[] yvs)Add a series dataExtentgetAutoExtent()Get auto extentfloatgetBarWidth()Get bar width ratioChartPlotMethodgetChartPlotMethod()Get chart plot methodXYDatasetgetDataset()Get datasetPointBreakgetItemPointBreak(int seriesIdx, int itemIdx)Get a item point breakColorBreakgetLegendBreak(int seriesIdx)Get legend breakjava.util.List<SeriesLegend>getLegendBreaks()Get Series legend breaksLegendSchemegetLegendScheme()Get legend schemePlotTypegetPlotType()Get plot typebooleanisAutoBarWidth()Get if automatically decide bar widthbooleanisUseBreak2D()If use item 2D point breaksvoidremoveLastSeries()Remove last seriesvoidsetAutoBarWidth(boolean value)Set if automatically decide bar heightvoidsetAutoExtent()Set auto extentvoidsetBarWidth(float value)Set bar width ratiovoidsetChartPlotMethod(ChartPlotMethod value)Set chart plot methodvoidsetDataset(Dataset value)Set datasetvoidsetItemPointBreak(int seriesIdx, int itemIdx, PointBreak pb)Set item point breakvoidsetLegendBreak(int seriesIdx, SeriesLegend sLegend)Set series legendvoidsetLegendBreak(int seriesIdx, ColorBreak cb)Set legend breakvoidsetUseBeak2D(boolean value)Set if use item 2D point breaksvoidupdateLegendScheme()-
Methods inherited from class org.meteoinfo.chart.plot.AbstractPlot2D
addLegend, addText, draw, getAspect, getAxis, getBackground, getDrawExtent, getExtent, getGraphArea, getGridLine, getLeftTitle, getLegend, getLegend, getLegends, getOuterPositionArea, getPlotOrientation, getPositionArea, getRightTitle, getSelectedColor, getTexts, getTightInset, getTightInsetArea, getTitle, getWindArrow, getXAxis, getXAxisLocation, getYAxis, getYAxisLocation, isAutoAspect, isDrawNeatLine, isDrawRightAxis, isDrawTopAxis, isInsideTick, isLogX, isLogY, isXReverse, isYReverse, projToScreen, projXLength, projYLength, removeLegend, removeLegend, screenToProj, setAspect, setAutoAspect, setAxis, setAxisLabelFont, setAxisOn, setBackground, setDrawExtent, setDrawExtent1, setDrawLegend, setDrawNeatLine, setDrawRightAxis, setDrawTopAxis, setExtent, setInsideTick, setLeftTitle, setLeftTitle, setLegend, setLegends, setPlotOrientation, setRightTitle, setRightTitle, setSelectedColor, setTexts, setTitle, setTitle, setWindArrow, setXAxis, setXAxisLocation, setYAxis, setYAxisLocation, updateDrawExtent, zoomToExtentScreen
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class org.meteoinfo.chart.plot.Plot
getGraphArea, getOuterPosition, getOuterPositionArea, getPlotShrink, getPosition, getPositionArea, getPositionArea, getPositionAreaZoom, getTightInset, getUnits, isOuterPosActive, isSameShrink, isSymbolAntialias, setGraphArea, setOuterPosActive, setOuterPosition, setOuterPosition, setOuterPosition, setOuterPositionArea, setPlotShrink, setPosition, setPosition, setPosition, setPositionArea, setPositionAreaZoom, setSameShrink, setSymbolAntialias, setTightInset, setUnits, setUnits, updatePosition, updatePosition, updatePositionArea, updatePostionAreaZoom
-
-
-
-
Constructor Detail
-
XY1DPlot
public XY1DPlot()
Constructor
-
XY1DPlot
public XY1DPlot(XYDataset dateset)
Constructor- Parameters:
dateset- Dataset
-
XY1DPlot
public XY1DPlot(PlotOrientation orientation, XYDataset dateset)
Constructor- Parameters:
orientation- Plot orientationdateset- Dataset
-
XY1DPlot
public XY1DPlot(boolean isTime, XYDataset dateset)Constructor- Parameters:
isTime- If x axis is timedateset- Dataset
-
XY1DPlot
public XY1DPlot(boolean isTime, ChartPlotMethod cpMethod, XYDataset dateset)Constructor- Parameters:
isTime- If x axis is timecpMethod- Plot methoddateset- Dataset
-
XY1DPlot
public XY1DPlot(boolean isTime, PlotOrientation orientation, XYDataset dateset)Constructor- Parameters:
isTime- If x axis is timeorientation- Plot orientationdateset- Dataset
-
-
Method Detail
-
getDataset
public XYDataset getDataset()
Description copied from class:PlotGet dataset- Specified by:
getDatasetin classPlot- Returns:
- Dataset
-
setDataset
public void setDataset(Dataset value)
Description copied from class:PlotSet dataset- Specified by:
setDatasetin classPlot- Parameters:
value- Dataset
-
getChartPlotMethod
public ChartPlotMethod getChartPlotMethod()
Get chart plot method- Returns:
- Chart plot method
-
setChartPlotMethod
public void setChartPlotMethod(ChartPlotMethod value)
Set chart plot method- Parameters:
value- Chart plot method
-
getPlotType
public PlotType getPlotType()
Description copied from class:PlotGet plot type- Overrides:
getPlotTypein classAbstractPlot2D- Returns:
- Plot type
-
getLegendBreaks
public java.util.List<SeriesLegend> getLegendBreaks()
Get Series legend breaks- Returns:
- Series legend breaks
-
isUseBreak2D
public boolean isUseBreak2D()
If use item 2D point breaks- Returns:
- Boolean
-
setUseBeak2D
public void setUseBeak2D(boolean value)
Set if use item 2D point breaks- Parameters:
value- Boolean
-
getBarWidth
public float getBarWidth()
Get bar width ratio- Returns:
- Bar width ratio
-
setBarWidth
public void setBarWidth(float value)
Set bar width ratio- Parameters:
value- Bar width ratio
-
isAutoBarWidth
public boolean isAutoBarWidth()
Get if automatically decide bar width- Returns:
- Boolean
-
setAutoBarWidth
public void setAutoBarWidth(boolean value)
Set if automatically decide bar height- Parameters:
value- Boolean
-
addSeries
public void addSeries(java.lang.String seriesKey, double[] xvs, double[] yvs)Add a series data- Parameters:
seriesKey- Series keyxvs- X value arrayyvs- Y value array
-
removeLastSeries
public void removeLastSeries()
Remove last series
-
getItemPointBreak
public PointBreak getItemPointBreak(int seriesIdx, int itemIdx)
Get a item point break- Parameters:
seriesIdx- Series indexitemIdx- Item index- Returns:
- Item point break;
-
setItemPointBreak
public void setItemPointBreak(int seriesIdx, int itemIdx, PointBreak pb)Set item point break- Parameters:
seriesIdx- Series indexitemIdx- Item indexpb- Item point break
-
getLegendBreak
public ColorBreak getLegendBreak(int seriesIdx)
Get legend break- Parameters:
seriesIdx- Series index- Returns:
- Legend break
-
setLegendBreak
public void setLegendBreak(int seriesIdx, ColorBreak cb)Set legend break- Parameters:
seriesIdx- Series indexcb- Legend break
-
setLegendBreak
public void setLegendBreak(int seriesIdx, SeriesLegend sLegend)Set series legend- Parameters:
seriesIdx- Series indexsLegend- SeriesLegend
-
getAutoExtent
public Extent getAutoExtent()
Get auto extent- Returns:
- Auto extent
-
setAutoExtent
public void setAutoExtent()
Set auto extent- Specified by:
setAutoExtentin classAbstractPlot2D
-
getLegendScheme
public LegendScheme getLegendScheme()
Get legend scheme- Returns:
- Legend scheme
-
updateLegendScheme
public void updateLegendScheme()
- Specified by:
updateLegendSchemein classAbstractPlot2D
-
-