类 Plot3DGL

  • 所有已实现的接口:
    com.jogamp.opengl.GLEventListener, java.util.EventListener

    public class Plot3DGL
    extends Plot
    implements com.jogamp.opengl.GLEventListener
    作者:
    wyq
    • 构造器详细资料

      • Plot3DGL

        public Plot3DGL()
        Constructor
    • 方法详细资料

      • 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 value
        max - 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 value
        max - 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 value
        max - 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()
        从类复制的说明: Plot
        Get dataset
        指定者:
        getDataset 在类中 Plot
        返回:
        Dataset
      • setDataset

        public void setDataset​(Dataset dataset)
        从类复制的说明: Plot
        Set dataset
        指定者:
        setDataset 在类中 Plot
        参数:
        dataset - Dataset
      • getPlotType

        public PlotType getPlotType()
        从类复制的说明: Plot
        Get plot type
        指定者:
        getPlotType 在类中 Plot
        返回:
        Plot type
      • draw

        public void draw​(java.awt.Graphics2D g2,
                         java.awt.geom.Rectangle2D area)
        从类复制的说明: Plot
        Draw graphics
        指定者:
        draw 在类中 Plot
        参数:
        g2 - Graphics2D
        area - Graphics area
      • 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 - Graphics2D
        positionArea - Position area
        返回:
        Tight inset area
      • main

        public static void main​(java.lang.String[] args)