类 Plot2D
- java.lang.Object
-
- org.meteoinfo.chart.plot.Plot
-
- org.meteoinfo.chart.plot.AbstractPlot2D
-
- org.meteoinfo.chart.plot.Plot2D
-
public class Plot2D extends AbstractPlot2D
- 作者:
- Yaqiang Wang
-
-
字段概要
-
从类继承的字段 org.meteoinfo.chart.plot.AbstractPlot2D
background
-
从类继承的字段 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
-
-
构造器概要
构造器 构造器 说明 Plot2D()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddGraphic(int idx, Graphic g)Add a graphic by indexvoidaddGraphic(Graphic g)Add a graphicvoidaddGraphics(java.util.List<Graphic> gs)Add graphic listfloatgetBarsWidth()Get bars width (0 - 1), only used for automatic bar width.DatasetgetDataset()Get datasetjava.awt.RectanglegetGraphicRectangle(java.awt.Graphics2D g, Graphic aGraphic, java.awt.geom.Rectangle2D area)Get graphic rectangleGraphicCollectiongetGraphics()Get graphicsLegendSchemegetLegendScheme()Get legend schemevoidremoveGraphic(int idx)Remove a graphic by indexvoidremoveGraphic(Graphic g)Remove a graphicvoidremoveLastGraphic()Remove last graphicvoidsetAutoExtent()Set auto extentvoidsetBarsWidth(float value)Set bars width (0 - 1), only used for automatic bar width.voidsetDataset(Dataset dataset)Set datasetvoidsetGraphics(GraphicCollection value)Set graphicsvoidupdateLegendScheme()-
从类继承的方法 org.meteoinfo.chart.plot.AbstractPlot2D
addLegend, addText, draw, getAspect, getAxis, getBackground, getDrawExtent, getExtent, getGraphArea, getGridLine, getLeftTitle, getLegend, getLegend, getLegends, getOuterPositionArea, getPlotOrientation, getPlotType, 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
-
从类继承的方法 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
-
-
-
-
方法详细资料
-
getGraphics
public GraphicCollection getGraphics()
Get graphics- 返回:
- Graphics
-
setGraphics
public void setGraphics(GraphicCollection value)
Set graphics- 参数:
value- Graphics
-
getBarsWidth
public float getBarsWidth()
Get bars width (0 - 1), only used for automatic bar width.- 返回:
- Bars width
-
setBarsWidth
public void setBarsWidth(float value)
Set bars width (0 - 1), only used for automatic bar width.- 参数:
value- Bars width
-
addGraphic
public void addGraphic(Graphic g)
Add a graphic- 参数:
g- Grahic
-
addGraphic
public void addGraphic(int idx, Graphic g)Add a graphic by index- 参数:
idx- Indexg- Graphic
-
removeGraphic
public void removeGraphic(Graphic g)
Remove a graphic- 参数:
g- Graphic
-
removeGraphic
public void removeGraphic(int idx)
Remove a graphic by index- 参数:
idx- Index
-
removeLastGraphic
public void removeLastGraphic()
Remove last graphic
-
addGraphics
public void addGraphics(java.util.List<Graphic> gs)
Add graphic list- 参数:
gs- Graphic list
-
getGraphicRectangle
public java.awt.Rectangle getGraphicRectangle(java.awt.Graphics2D g, Graphic aGraphic, java.awt.geom.Rectangle2D area)Get graphic rectangle- 参数:
g- The graphicsaGraphic- The graphicarea- Area- 返回:
- Rectangle
-
setAutoExtent
public void setAutoExtent()
Set auto extent- 指定者:
setAutoExtent在类中AbstractPlot2D
-
updateLegendScheme
public void updateLegendScheme()
- 指定者:
updateLegendScheme在类中AbstractPlot2D
-
getDataset
public Dataset getDataset()
从类复制的说明:PlotGet dataset- 指定者:
getDataset在类中Plot- 返回:
- Dataset
-
setDataset
public void setDataset(Dataset dataset)
从类复制的说明:PlotSet dataset- 指定者:
setDataset在类中Plot- 参数:
dataset- Dataset
-
getLegendScheme
public LegendScheme getLegendScheme()
Get legend scheme- 返回:
- Legend scheme
-
-