类 Plot3DGL
- java.lang.Object
-
- org.meteoinfo.chart.plot.Plot
-
- org.meteoinfo.chart.jogl.Plot3DGL
-
- 所有已实现的接口:
com.jogamp.opengl.GLEventListener,java.util.EventListener
public class Plot3DGL extends Plot implements com.jogamp.opengl.GLEventListener
- 作者:
- wyq
-
-
字段概要
-
从类继承的字段 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
-
-
构造器概要
构造器 构造器 说明 Plot3DGL()Constructor
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddGraphic(Graphic g)Add a graphicvoidaddLegend(ChartLegend legend)Add a legendvoiddisplay(com.jogamp.opengl.GLAutoDrawable drawable)voiddispose(com.jogamp.opengl.GLAutoDrawable drawable)voiddraw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)Draw graphicsfloatgetAngleX()Get x rotate anglefloatgetAngleY()Get y rotate anglejava.awt.ColorgetBoxColor()Get box colorDatasetgetDataset()Get datasetcom.jogamp.opengl.GLAutoDrawablegetDrawable()Get GLAutoDrawableExtent3DgetExtent()Get extentChartLegendgetLegend()Get chart legendChartLegendgetLegend(int idx)Get chart legendjava.util.List<ChartLegend>getLegends()Get legendsLightinggetLighting()Get lighting setjava.awt.ColorgetLineBoxColor()Get box line colorjava.awt.geom.Rectangle2DgetOuterPositionArea(java.awt.geom.Rectangle2D area)Get outer position areaPlotTypegetPlotType()Get plot typejava.awt.image.BufferedImagegetScreenImage()Get screen imageMargingetTightInset(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 minimumvoidinit(com.jogamp.opengl.GLAutoDrawable drawable)booleanisAntialias()Get is antialias or notbooleanisDrawBoundingBox()Get if draw bounding box or notstatic voidmain(java.lang.String[] args)voidremoveGraphic(int idx)Remove a graphic by indexvoidremoveLastGraphic()Remove last graphicvoidremoveLegend(int idx)Remove a legend by indexvoidremoveLegend(ChartLegend legend)Remove a legendvoidreshape(com.jogamp.opengl.GLAutoDrawable drawable, int x, int y, int width, int height)voidsetAngleX(float value)Set x rotate anglevoidsetAngleY(float value)Set y rotate anglevoidsetAntialias(boolean value)Set is antialias or notvoidsetAutoExtent()Set auto extentvoidsetAxisTickFont(java.awt.Font font)Set axis tick fontvoidsetBoxColor(java.awt.Color value)Set box colorvoidsetBoxed(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 legendsvoidsetLighting(Lighting value)Set lighting setvoidsetLineBoxColor(java.awt.Color value)Set box line colorvoidsetTitle(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-
从类继承的方法 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
-
-
-
-
方法详细资料
-
getDrawable
public com.jogamp.opengl.GLAutoDrawable getDrawable()
Get GLAutoDrawable- 返回:
- GLAutoDrawable
-
getScreenImage
public java.awt.image.BufferedImage getScreenImage()
Get screen image- 返回:
- Screen image
-
getExtent
public Extent3D getExtent()
Get extent- 返回:
- Extent
-
setExtent
public void setExtent(Extent3D value)
Set extent- 参数:
value- Extent
-
getBoxColor
public java.awt.Color getBoxColor()
Get box color- 返回:
- Box color
-
setBoxColor
public void setBoxColor(java.awt.Color value)
Set box color- 参数:
value- Box color
-
getLineBoxColor
public java.awt.Color getLineBoxColor()
Get box line color- 返回:
- Box line color
-
setLineBoxColor
public void setLineBoxColor(java.awt.Color value)
Set box line color- 参数:
value- Box line color
-
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
-
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
-
getAngleX
public float getAngleX()
Get x rotate angle- 返回:
- X rotate angle
-
setAngleX
public void setAngleX(float value)
Set x rotate angle- 参数:
value- X rotate angle
-
getAngleY
public float getAngleY()
Get y rotate angle- 返回:
- Y rotate angle
-
setAngleY
public void setAngleY(float value)
Set y rotate angle- 参数:
value- Y rotate angle
-
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
-
getYAxis
public Axis getYAxis()
Get y axis- 返回:
- Y axis
-
getZAxis
public Axis getZAxis()
Get z axis- 返回:
- 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
-
getLighting
public Lighting getLighting()
Get lighting set- 返回:
- Lighting set
-
setLighting
public void setLighting(Lighting value)
Set lighting set- 参数:
value- Lighting set
-
isAntialias
public boolean isAntialias()
Get is antialias or not- 返回:
- Antialias or not
-
setAntialias
public void setAntialias(boolean value)
Set is antialias or not- 参数:
value- Antialias or not
-
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
-
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
-
display
public void display(com.jogamp.opengl.GLAutoDrawable drawable)
- 指定者:
display在接口中com.jogamp.opengl.GLEventListener
-
dispose
public void dispose(com.jogamp.opengl.GLAutoDrawable drawable)
- 指定者:
dispose在接口中com.jogamp.opengl.GLEventListener
-
init
public void init(com.jogamp.opengl.GLAutoDrawable drawable)
- 指定者:
init在接口中com.jogamp.opengl.GLEventListener
-
reshape
public void reshape(com.jogamp.opengl.GLAutoDrawable drawable, int x, int y, int width, int height)- 指定者:
reshape在接口中com.jogamp.opengl.GLEventListener
-
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
-
main
public static void main(java.lang.String[] args)
-
-