类 XY1DPlot
- java.lang.Object
-
- org.meteoinfo.chart.plot.Plot
-
- org.meteoinfo.chart.plot.AbstractPlot2D
-
- org.meteoinfo.chart.plot.XY1DPlot
-
public class XY1DPlot extends AbstractPlot2D
- 作者:
- yaqiang
-
-
字段概要
-
从类继承的字段 org.meteoinfo.chart.plot.AbstractPlot2D
background, clip
-
从类继承的字段 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, positionArea, rowIndex, symbolAntialias, units
-
-
构造器概要
构造器 构造器 说明 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
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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()-
从类继承的方法 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, isClip, isDrawNeatLine, isDrawRightAxis, isDrawTopAxis, isInsideTick, isLogX, isLogY, isXReverse, isYReverse, projToScreen, projXLength, projYLength, removeLegend, removeLegend, screenToProj, setAspect, setAutoAspect, setAxis, setAxisLabelFont, setAxisOn, setBackground, setClip, 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
-
从类继承的方法 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
-
-
-
-
构造器详细资料
-
XY1DPlot
public XY1DPlot()
Constructor
-
XY1DPlot
public XY1DPlot(XYDataset dateset)
Constructor- 参数:
dateset- Dataset
-
XY1DPlot
public XY1DPlot(PlotOrientation orientation, XYDataset dateset)
Constructor- 参数:
orientation- Plot orientationdateset- Dataset
-
XY1DPlot
public XY1DPlot(boolean isTime, XYDataset dateset)Constructor- 参数:
isTime- If x axis is timedateset- Dataset
-
XY1DPlot
public XY1DPlot(boolean isTime, ChartPlotMethod cpMethod, XYDataset dateset)Constructor- 参数:
isTime- If x axis is timecpMethod- Plot methoddateset- Dataset
-
XY1DPlot
public XY1DPlot(boolean isTime, PlotOrientation orientation, XYDataset dateset)Constructor- 参数:
isTime- If x axis is timeorientation- Plot orientationdateset- Dataset
-
-
方法详细资料
-
getDataset
public XYDataset getDataset()
从类复制的说明:PlotGet dataset- 指定者:
getDataset在类中Plot- 返回:
- Dataset
-
setDataset
public void setDataset(Dataset value)
从类复制的说明:PlotSet dataset- 指定者:
setDataset在类中Plot- 参数:
value- Dataset
-
getChartPlotMethod
public ChartPlotMethod getChartPlotMethod()
Get chart plot method- 返回:
- Chart plot method
-
setChartPlotMethod
public void setChartPlotMethod(ChartPlotMethod value)
Set chart plot method- 参数:
value- Chart plot method
-
getPlotType
public PlotType getPlotType()
从类复制的说明:PlotGet plot type- 覆盖:
getPlotType在类中AbstractPlot2D- 返回:
- Plot type
-
getLegendBreaks
public java.util.List<SeriesLegend> getLegendBreaks()
Get Series legend breaks- 返回:
- Series legend breaks
-
isUseBreak2D
public boolean isUseBreak2D()
If use item 2D point breaks- 返回:
- Boolean
-
setUseBeak2D
public void setUseBeak2D(boolean value)
Set if use item 2D point breaks- 参数:
value- Boolean
-
getBarWidth
public float getBarWidth()
Get bar width ratio- 返回:
- Bar width ratio
-
setBarWidth
public void setBarWidth(float value)
Set bar width ratio- 参数:
value- Bar width ratio
-
isAutoBarWidth
public boolean isAutoBarWidth()
Get if automatically decide bar width- 返回:
- Boolean
-
setAutoBarWidth
public void setAutoBarWidth(boolean value)
Set if automatically decide bar height- 参数:
value- Boolean
-
addSeries
public void addSeries(java.lang.String seriesKey, double[] xvs, double[] yvs)Add a series data- 参数:
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- 参数:
seriesIdx- Series indexitemIdx- Item index- 返回:
- Item point break;
-
setItemPointBreak
public void setItemPointBreak(int seriesIdx, int itemIdx, PointBreak pb)Set item point break- 参数:
seriesIdx- Series indexitemIdx- Item indexpb- Item point break
-
getLegendBreak
public ColorBreak getLegendBreak(int seriesIdx)
Get legend break- 参数:
seriesIdx- Series index- 返回:
- Legend break
-
setLegendBreak
public void setLegendBreak(int seriesIdx, ColorBreak cb)Set legend break- 参数:
seriesIdx- Series indexcb- Legend break
-
setLegendBreak
public void setLegendBreak(int seriesIdx, SeriesLegend sLegend)Set series legend- 参数:
seriesIdx- Series indexsLegend- SeriesLegend
-
getAutoExtent
public Extent getAutoExtent()
Get auto extent- 返回:
- Auto extent
-
setAutoExtent
public void setAutoExtent()
Set auto extent- 指定者:
setAutoExtent在类中AbstractPlot2D
-
getLegendScheme
public LegendScheme getLegendScheme()
Get legend scheme- 返回:
- Legend scheme
-
updateLegendScheme
public void updateLegendScheme()
- 指定者:
updateLegendScheme在类中AbstractPlot2D
-
-