类 Plot3D
- java.lang.Object
-
- org.meteoinfo.chart.plot.Plot
-
- org.meteoinfo.chart.plot.Plot3D
-
public class Plot3D extends Plot
- 作者:
- Yaqiang Wang
-
-
字段概要
-
从类继承的字段 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
-
-
构造器概要
构造器 构造器 说明 Plot3D()Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddGraphic(Graphic g)Add a graphicvoidaddLegend(ChartLegend legend)Add a legendvoiddestroyImage()Destroys the internal image.voiddraw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)Draw graphicsDatasetgetDataset()Get datasetExtent3DgetExtent()Get extentChartLegendgetLegend()Get chart legendChartLegendgetLegend(int idx)Get chart legendjava.util.List<ChartLegend>getLegends()Get legendsjava.awt.geom.Rectangle2DgetOuterPositionArea(java.awt.geom.Rectangle2D area)Get outer position areaPlotTypegetPlotType()Get plot typeProjectorgetProjector()Get projectorMargingetTightInset(java.awt.Graphics2D g, java.awt.geom.Rectangle2D positionArea)Get tight inset areaChartTextgetTitle()Get titleAxisgetXAxis()Get x axisfloatgetXMax()Get x maximumfloatgetXMin()Get x minimumAxisgetYAxis()Get y axisfloatgetYMax()Get y maximumfloatgetYMin()Get y minimumAxisgetZAxis()Get z axisfloatgetZMax()Get z maximumfloatgetZMin()Get z minimumbooleanisDrawBase()Get if draw base areabooleanisDrawBoundingBox()Get if draw bounding box or notjava.awt.Pointproject(float x, float y, float z)Project 3D pointjava.awt.Pointproject_bak(float x, float y, float z)Project 3D pointvoidremoveGraphic(int idx)Remove a graphic by indexvoidremoveLastGraphic()Remove last graphicvoidremoveLegend(int idx)Remove a legend by indexvoidremoveLegend(ChartLegend legend)Remove a legendvoidsetAutoExtent()Set auto extentvoidsetAxisTickFont(java.awt.Font font)Set axis tick fontvoidsetBoxed(boolean value)Set display box or notvoidsetDataset(Dataset dataset)Set datasetvoidsetDisplayGrids(boolean value)Set display grids or notvoidsetDisplayXY(boolean value)Set display X/Y axis or notvoidsetDisplayZ(boolean value)Set display Z axis or notvoidsetDrawBase(boolean value)Set if draw base areavoidsetDrawBoundingBox(boolean value)Set if draw bounding box or notvoidsetExtent(Extent3D value)Set extentvoidsetLegend(ChartLegend value)Set chart legendvoidsetLegends(java.util.List<ChartLegend> value)Set legendsvoidsetMesh(boolean value)Set display mesh line or notvoidsetTitle(java.lang.String text)Set titlevoidsetTitle(ChartText value)Set titlevoidsetXAxis(Axis value)Set x axisvoidsetXMax(float value)Set maximum xvoidsetXMin(float value)Set minimum xvoidsetXMinMax(float min, float max)Set x minimum and maximum valuesvoidsetYAxis(Axis value)Set y axisvoidsetYMax(float value)Set Maximum yvoidsetYMin(float value)Set minimum yvoidsetYMinMax(float min, float max)Set y minimum and maximum valuesvoidsetZAxis(Axis value)Set z axisvoidsetZMax(float value)Set maximum zvoidsetZMin(float value)Set minimum zvoidsetZMinMax(float min, float max)Set z minimum and maximum values-
从类继承的方法 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
-
-
-
-
方法详细资料
-
getProjector
public Projector getProjector()
Get projector- 返回:
- The Projector
-
getTitle
public ChartText getTitle()
Get title- 返回:
- Title
-
setTitle
public void setTitle(ChartText value)
Set title- 参数:
value- Title
-
setTitle
public void setTitle(java.lang.String text)
Set title- 参数:
text- Title text
-
getLegends
public java.util.List<ChartLegend> getLegends()
Get legends- 返回:
- Legends
-
getLegend
public ChartLegend getLegend(int idx)
Get chart legend- 参数:
idx- Index- 返回:
- Chart legend
-
getLegend
public ChartLegend getLegend()
Get chart legend- 返回:
- Chart legend
-
setLegend
public void setLegend(ChartLegend value)
Set chart legend- 参数:
value- Legend
-
setLegends
public void setLegends(java.util.List<ChartLegend> value)
Set legends- 参数:
value- Legends
-
getXAxis
public Axis getXAxis()
Get x axis- 返回:
- X axis
-
setXAxis
public void setXAxis(Axis value)
Set x axis- 参数:
value- X axis
-
getYAxis
public Axis getYAxis()
Get y axis- 返回:
- Y axis
-
setYAxis
public void setYAxis(Axis value)
Set y axis- 参数:
value- Y axis
-
getZAxis
public Axis getZAxis()
Get z axis- 返回:
- Z axis
-
setZAxis
public void setZAxis(Axis value)
Set z axis- 参数:
value- Z axis
-
getXMin
public float getXMin()
Get x minimum- 返回:
- X minimum
-
setXMin
public void setXMin(float value)
Set minimum x- 参数:
value- Minimum x
-
getXMax
public float getXMax()
Get x maximum- 返回:
- X maximum
-
setXMax
public void setXMax(float value)
Set maximum x- 参数:
value- Maximum x
-
setXMinMax
public void setXMinMax(float min, float max)Set x minimum and maximum values- 参数:
min- Minimum valuemax- Maximum value
-
getYMin
public float getYMin()
Get y minimum- 返回:
- Y minimum
-
setYMin
public void setYMin(float value)
Set minimum y- 参数:
value- Minimum y
-
getYMax
public float getYMax()
Get y maximum- 返回:
- Y maximum
-
setYMax
public void setYMax(float value)
Set Maximum y- 参数:
value- Maximum y
-
setYMinMax
public void setYMinMax(float min, float max)Set y minimum and maximum values- 参数:
min- Minimum valuemax- Maximum value
-
getZMin
public float getZMin()
Get z minimum- 返回:
- Z minimum
-
setZMin
public void setZMin(float value)
Set minimum z- 参数:
value- Minimum z
-
getZMax
public float getZMax()
Get z maximum- 返回:
- Z maximum
-
setZMax
public void setZMax(float value)
Set maximum z- 参数:
value- Maximum z
-
setZMinMax
public void setZMinMax(float min, float max)Set z minimum and maximum values- 参数:
min- Minimum valuemax- Maximum value
-
setDisplayXY
public void setDisplayXY(boolean value)
Set display X/Y axis or not- 参数:
value- Boolean
-
setDisplayZ
public void setDisplayZ(boolean value)
Set display Z axis or not- 参数:
value- Boolean
-
setDisplayGrids
public void setDisplayGrids(boolean value)
Set display grids or not- 参数:
value- Boolean
-
setBoxed
public void setBoxed(boolean value)
Set display box or not- 参数:
value- Boolean
-
setMesh
public void setMesh(boolean value)
Set display mesh line or not- 参数:
value- Boolean
-
isDrawBoundingBox
public boolean isDrawBoundingBox()
Get if draw bounding box or not- 返回:
- Boolean
-
setDrawBoundingBox
public void setDrawBoundingBox(boolean value)
Set if draw bounding box or not- 参数:
value- Boolean
-
isDrawBase
public boolean isDrawBase()
Get if draw base area- 返回:
- Draw base area or not
-
setDrawBase
public void setDrawBase(boolean value)
Set if draw base area- 参数:
value- Draw base area or not
-
getExtent
public Extent3D getExtent()
Get extent- 返回:
- Extent
-
setExtent
public void setExtent(Extent3D value)
Set extent- 参数:
value- Extent
-
setAxisTickFont
public void setAxisTickFont(java.awt.Font font)
Set axis tick font- 参数:
font- Font
-
addGraphic
public void addGraphic(Graphic g)
Add a graphic- 参数:
g- Grahic
-
removeGraphic
public void removeGraphic(int idx)
Remove a graphic by index- 参数:
idx- Index
-
removeLastGraphic
public void removeLastGraphic()
Remove last graphic
-
setAutoExtent
public void setAutoExtent()
Set auto extent
-
destroyImage
public void destroyImage()
Destroys the internal image. It will forceSurfaceCanvasto regenerate all images when thepaintmethod is called.
-
addLegend
public void addLegend(ChartLegend legend)
Add a legend- 参数:
legend- The legend
-
removeLegend
public void removeLegend(ChartLegend legend)
Remove a legend- 参数:
legend- The legend
-
removeLegend
public void removeLegend(int idx)
Remove a legend by index- 参数:
idx- The legend index
-
getOuterPositionArea
public java.awt.geom.Rectangle2D getOuterPositionArea(java.awt.geom.Rectangle2D area)
Get outer position area- 指定者:
getOuterPositionArea在类中Plot- 参数:
area- Whole area- 返回:
- Position area
-
getDataset
public Dataset getDataset()
从类复制的说明:PlotGet dataset- 指定者:
getDataset在类中Plot- 返回:
- Dataset
-
setDataset
public void setDataset(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
-
project
public java.awt.Point project(float x, float y, float z)Project 3D point- 参数:
x- Xy- Yz- Z- 返回:
- Projected 2D point
-
project_bak
public java.awt.Point project_bak(float x, float y, float z)Project 3D point- 参数:
x- Xy- Yz- Z- 返回:
- Projected 2D point
-
getTightInset
public Margin getTightInset(java.awt.Graphics2D g, java.awt.geom.Rectangle2D positionArea)
Get tight inset area- 指定者:
getTightInset在类中Plot- 参数:
g- Graphics2DpositionArea- Position area- 返回:
- Tight inset area
-
-