类 Plot3D


  • public class Plot3D
    extends Plot
    作者:
    Yaqiang Wang
    • 构造器详细资料

      • Plot3D

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

      • 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
      • 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
      • 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
      • getDrawBoundingBox

        public boolean getDrawBoundingBox()
        Get if draw bounding box or not
        返回:
        Boolean
      • setDrawBoundingBox

        public void setDrawBoundingBox​(boolean value)
        Set if draw bounding box or not
        参数:
        value - Boolean
      • 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
      • destroyImage

        public void destroyImage()
        Destroys the internal image. It will force SurfaceCanvas to regenerate all images when the paint method 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()
        从类复制的说明: 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
      • project

        public java.awt.Point project​(float x,
                                      float y,
                                      float z)
        Project 3D point
        参数:
        x - X
        y - Y
        z - Z
        返回:
        Projected 2D point
      • 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