Package org.meteoinfo.chart.plot
Class Plot3D
- java.lang.Object
-
- org.meteoinfo.chart.plot.Plot
-
- org.meteoinfo.chart.plot.Plot3D
-
public class Plot3D extends Plot
-
-
Field Summary
-
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 Plot3D()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 datasetbooleangetDrawBoundingBox()Get if draw bounding box or notExtent3DgetExtent()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 minimumjava.awt.Pointproject(float x, float y, float z)Project 3D pointvoidremoveLegend(int idx)Remove a legend by indexvoidremoveLegend(ChartLegend legend)Remove a legendvoidsetAxisTickFont(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 notvoidsetDrawBoundingBox(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 titlevoidsetXMax(float value)Set maximum xvoidsetXMin(float value)Set minimum xvoidsetXMinMax(float min, float max)Set x minimum and maximum valuesvoidsetYMax(float value)Set Maximum yvoidsetYMin(float value)Set minimum yvoidsetYMinMax(float min, float max)Set y minimum and maximum valuesvoidsetZMax(float value)Set maximum zvoidsetZMin(float value)Set minimum zvoidsetZMinMax(float min, float max)Set z minimum and maximum values-
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, 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
-
-
-
-
Method Detail
-
getProjector
public Projector getProjector()
Get projector- Returns:
- The Projector
-
getTitle
public ChartText getTitle()
Get title- Returns:
- Title
-
setTitle
public void setTitle(ChartText value)
Set title- Parameters:
value- Title
-
setTitle
public void setTitle(java.lang.String text)
Set title- Parameters:
text- Title text
-
getLegends
public java.util.List<ChartLegend> getLegends()
Get legends- Returns:
- Legends
-
getLegend
public ChartLegend getLegend(int idx)
Get chart legend- Parameters:
idx- Index- Returns:
- Chart legend
-
getLegend
public ChartLegend getLegend()
Get chart legend- Returns:
- Chart legend
-
setLegend
public void setLegend(ChartLegend value)
Set chart legend- Parameters:
value- Legend
-
setLegends
public void setLegends(java.util.List<ChartLegend> value)
Set legends- Parameters:
value- Legends
-
getXAxis
public Axis getXAxis()
Get x axis- Returns:
- X axis
-
getYAxis
public Axis getYAxis()
Get y axis- Returns:
- Y axis
-
getZAxis
public Axis getZAxis()
Get z axis- Returns:
- Z axis
-
getXMin
public float getXMin()
Get x minimum- Returns:
- X minimum
-
setXMin
public void setXMin(float value)
Set minimum x- Parameters:
value- Minimum x
-
getXMax
public float getXMax()
Get x maximum- Returns:
- X maximum
-
setXMax
public void setXMax(float value)
Set maximum x- Parameters:
value- Maximum x
-
setXMinMax
public void setXMinMax(float min, float max)Set x minimum and maximum values- Parameters:
min- Minimum valuemax- Maximum value
-
getYMin
public float getYMin()
Get y minimum- Returns:
- Y minimum
-
setYMin
public void setYMin(float value)
Set minimum y- Parameters:
value- Minimum y
-
getYMax
public float getYMax()
Get y maximum- Returns:
- Y maximum
-
setYMax
public void setYMax(float value)
Set Maximum y- Parameters:
value- Maximum y
-
setYMinMax
public void setYMinMax(float min, float max)Set y minimum and maximum values- Parameters:
min- Minimum valuemax- Maximum value
-
getZMin
public float getZMin()
Get z minimum- Returns:
- Z minimum
-
setZMin
public void setZMin(float value)
Set minimum z- Parameters:
value- Minimum z
-
getZMax
public float getZMax()
Get z maximum- Returns:
- Z maximum
-
setZMax
public void setZMax(float value)
Set maximum z- Parameters:
value- Maximum z
-
setZMinMax
public void setZMinMax(float min, float max)Set z minimum and maximum values- Parameters:
min- Minimum valuemax- Maximum value
-
setDisplayXY
public void setDisplayXY(boolean value)
Set display X/Y axis or not- Parameters:
value- Boolean
-
setDisplayZ
public void setDisplayZ(boolean value)
Set display Z axis or not- Parameters:
value- Boolean
-
setDisplayGrids
public void setDisplayGrids(boolean value)
Set display grids or not- Parameters:
value- Boolean
-
setBoxed
public void setBoxed(boolean value)
Set display box or not- Parameters:
value- Boolean
-
setMesh
public void setMesh(boolean value)
Set display mesh line or not- Parameters:
value- Boolean
-
getDrawBoundingBox
public boolean getDrawBoundingBox()
Get if draw bounding box or not- Returns:
- Boolean
-
setDrawBoundingBox
public void setDrawBoundingBox(boolean value)
Set if draw bounding box or not- Parameters:
value- Boolean
-
getExtent
public Extent3D getExtent()
Get extent- Returns:
- Extent
-
setExtent
public void setExtent(Extent3D value)
Set extent- Parameters:
value- Extent
-
setAxisTickFont
public void setAxisTickFont(java.awt.Font font)
Set axis tick font- Parameters:
font- Font
-
addGraphic
public void addGraphic(Graphic g)
Add a graphic- Parameters:
g- Grahic
-
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- Parameters:
legend- The legend
-
removeLegend
public void removeLegend(ChartLegend legend)
Remove a legend- Parameters:
legend- The legend
-
removeLegend
public void removeLegend(int idx)
Remove a legend by index- Parameters:
idx- The legend index
-
getOuterPositionArea
public java.awt.geom.Rectangle2D getOuterPositionArea(java.awt.geom.Rectangle2D area)
Get outer position area- Specified by:
getOuterPositionAreain classPlot- Parameters:
area- Whole area- Returns:
- Position area
-
getDataset
public Dataset getDataset()
Description copied from class:PlotGet dataset- Specified by:
getDatasetin classPlot- Returns:
- Dataset
-
setDataset
public void setDataset(Dataset dataset)
Description copied from class:PlotSet dataset- Specified by:
setDatasetin classPlot- Parameters:
dataset- Dataset
-
getPlotType
public PlotType getPlotType()
Description copied from class:PlotGet plot type- Specified by:
getPlotTypein classPlot- Returns:
- Plot type
-
draw
public void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)Description copied from class:PlotDraw graphics
-
project
public java.awt.Point project(float x, float y, float z)Project 3D point- Parameters:
x- Xy- Yz- Z- Returns:
- Projected 2D point
-
getTightInset
public Margin getTightInset(java.awt.Graphics2D g, java.awt.geom.Rectangle2D positionArea)
Get tight inset area- Specified by:
getTightInsetin classPlot- Parameters:
g- Graphics2DpositionArea- Position area- Returns:
- Tight inset area
-
-