类 SubPlots
- java.lang.Object
-
- org.meteoinfo.chart.plot.Plot
-
- org.meteoinfo.chart.plot.SubPlots
-
public class SubPlots extends Plot
-
-
字段概要
-
从类继承的字段 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
-
-
构造器概要
构造器 构造器 说明 SubPlots(java.awt.geom.Rectangle2D position, int rowNum, int colNum, boolean shareX, boolean shareY)Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddPlot(Plot plot)Add a plotvoiddraw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)Draw graphicsintgetColNum()Get column numberorg.meteoinfo.data.DatasetgetDataset()Get datasetjava.awt.geom.Rectangle2DgetOuterPositionArea(java.awt.geom.Rectangle2D area)Get outer position areaPlotgetPlot(int row, int col)Get a plotjava.util.List<Plot>getPlots()Get plotsPlotTypegetPlotType()Get plot typeintgetRowNum()Get row numberMargingetTightInset(java.awt.Graphics2D g, java.awt.geom.Rectangle2D positionArea)Get tight insetbooleanisShareX()If share x axisbooleanisShareY()If share y axisvoidsetColNum(int value)Set column numbervoidsetDataset(org.meteoinfo.data.Dataset dataset)Set datasetvoidsetPlots(java.util.List<Plot> value)Set plotsvoidsetRowNum(int value)Set row numbervoidsetShareX(boolean value)Set if share x axisvoidsetShareY(boolean value)Set if share y axis-
从类继承的方法 org.meteoinfo.chart.plot.Plot
getGraphArea, getOuterPosition, getOuterPositionArea, getPlotShrink, getPosition, getPositionArea, 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
-
-
-
-
方法详细资料
-
getPlots
public java.util.List<Plot> getPlots()
Get plots- 返回:
- Plots
-
setPlots
public void setPlots(java.util.List<Plot> value)
Set plots- 参数:
value- The plots
-
getRowNum
public int getRowNum()
Get row number- 返回:
- Row number
-
setRowNum
public void setRowNum(int value)
Set row number- 参数:
value- Row number
-
getColNum
public int getColNum()
Get column number- 返回:
- Column number
-
setColNum
public void setColNum(int value)
Set column number- 参数:
value- Column number
-
isShareX
public boolean isShareX()
If share x axis- 返回:
- Share x axis or not
-
setShareX
public void setShareX(boolean value)
Set if share x axis- 参数:
value- Share x axis or not
-
isShareY
public boolean isShareY()
If share y axis- 返回:
- Share y axis or not
-
setShareY
public void setShareY(boolean value)
Set if share y axis- 参数:
value- Share y axis or not
-
addPlot
public void addPlot(Plot plot)
Add a plot- 参数:
plot- The plot
-
getPlot
public Plot getPlot(int row, int col)
Get a plot- 参数:
row- Row indexcol- Column index- 返回:
-
getOuterPositionArea
public java.awt.geom.Rectangle2D getOuterPositionArea(java.awt.geom.Rectangle2D area)
从类复制的说明:PlotGet outer position area- 指定者:
getOuterPositionArea在类中Plot- 参数:
area- Whole area- 返回:
- Outer position area
-
getDataset
public org.meteoinfo.data.Dataset getDataset()
从类复制的说明:PlotGet dataset- 指定者:
getDataset在类中Plot- 返回:
- Dataset
-
setDataset
public void setDataset(org.meteoinfo.data.Dataset dataset)
从类复制的说明:PlotSet dataset- 指定者:
setDataset在类中Plot- 参数:
dataset- Dataset
-
getPlotType
public PlotType getPlotType()
从类复制的说明:PlotGet plot type- 指定者:
getPlotType在类中Plot- 返回:
- Plot type
-
draw
public void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)从类复制的说明:PlotDraw graphics
-
getTightInset
public Margin getTightInset(java.awt.Graphics2D g, java.awt.geom.Rectangle2D positionArea)
从类复制的说明:PlotGet tight inset- 指定者:
getTightInset在类中Plot- 参数:
g- Graphics2DpositionArea- Position area- 返回:
- Tight inset margin
-
-