类 AbstractPlot2D

    • 字段详细资料

      • background

        protected java.awt.Color background
      • clip

        protected boolean clip
    • 构造器详细资料

      • AbstractPlot2D

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

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

        public java.awt.Color getSelectedColor()
        Get selected color
        返回:
        Selected color
      • setSelectedColor

        public void setSelectedColor​(java.awt.Color value)
        Set selected color
        参数:
        value - Selected color
      • getLeftTitle

        public ChartText getLeftTitle()
        Get left sub title
        返回:
        Left sub title
      • setLeftTitle

        public void setLeftTitle​(ChartText value)
        Set left sub title
        参数:
        value - Left sub title
      • setLeftTitle

        public void setLeftTitle​(java.lang.String text)
        Set left sub title
        参数:
        text - Title text
      • getRightTitle

        public ChartText getRightTitle()
        Get right sub title
        返回:
        Right sub title
      • setRightTitle

        public void setRightTitle​(ChartText value)
        Set right sub title
        参数:
        value - Right sub title
      • setRightTitle

        public void setRightTitle​(java.lang.String text)
        Set right sub 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
      • setDrawLegend

        public void setDrawLegend​(boolean value)
        Set if draw legend
        参数:
        value - Boolean
      • getDrawExtent

        public Extent getDrawExtent()
        Get draw extent
        返回:
        Draw extent
      • setDrawExtent

        public void setDrawExtent​(Extent extent)
        Set draw extent
        参数:
        extent - Extent
      • setDrawExtent1

        public void setDrawExtent1​(Extent extent)
        Set draw extent
        参数:
        extent - Extent
      • getExtent

        public Extent getExtent()
        Get extent
        返回:
        Extent
      • setExtent

        public void setExtent​(Extent extent)
        Set extent
        参数:
        extent - Extent
      • updateDrawExtent

        public void updateDrawExtent()
        Update draw extent
      • getBackground

        public java.awt.Color getBackground()
        Get background
        返回:
        Background
      • setBackground

        public void setBackground​(java.awt.Color value)
        Set background
        参数:
        value - Background
      • getPlotType

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

        public Axis getXAxis()
        Get bottom x axis
        返回:
        Bottom x aixs
      • setXAxis

        public void setXAxis​(Axis axis)
                      throws java.lang.CloneNotSupportedException
        Set x axis
        参数:
        axis - Axis
        抛出:
        java.lang.CloneNotSupportedException
      • getYAxis

        public Axis getYAxis()
        Get left y axis
        返回:
        Left y axis
      • setYAxis

        public void setYAxis​(Axis axis)
                      throws java.lang.CloneNotSupportedException
        Set y axis
        参数:
        axis - Axis
        抛出:
        java.lang.CloneNotSupportedException
      • getAxis

        public Axis getAxis​(Location loc)
        Get axis
        参数:
        loc - Axis location
        返回:
        Axis
      • getXAxisLocation

        public Location getXAxisLocation()
        Get x axis location
        返回:
        X axis location
      • setXAxisLocation

        public void setXAxisLocation​(Location value)
        Set x axis location
        参数:
        value - X axis location
      • getYAxisLocation

        public Location getYAxisLocation()
        Get y axis location
        返回:
        Y axis location
      • setYAxisLocation

        public void setYAxisLocation​(Location value)
        Set y axis location
        参数:
        value - Y axis location
      • getPlotOrientation

        public PlotOrientation getPlotOrientation()
        Get plot orientation
        返回:
        Plot orientation
      • setPlotOrientation

        public void setPlotOrientation​(PlotOrientation value)
        Set plot orientation
        参数:
        value - Plot orientation
      • getGridLine

        public GridLine getGridLine()
        Get grid line
        返回:
        Grid line
      • isDrawTopAxis

        public boolean isDrawTopAxis()
        get if draw top axis
        返回:
        Boolean
      • setDrawTopAxis

        public void setDrawTopAxis​(boolean value)
        Set if draw top right axis
        参数:
        value - Boolean
      • isDrawRightAxis

        public boolean isDrawRightAxis()
        get if draw right axis
        返回:
        Boolean
      • setDrawRightAxis

        public void setDrawRightAxis​(boolean value)
        Set if draw right axis
        参数:
        value - Boolean
      • isDrawNeatLine

        public boolean isDrawNeatLine()
        Get if draw neat line
        返回:
        Boolean
      • setDrawNeatLine

        public void setDrawNeatLine​(boolean value)
        Set if draw neat line
        参数:
        value - Boolean
      • getTexts

        public java.util.List<ChartText> getTexts()
        Get texts
        返回:
        Texts
      • setTexts

        public void setTexts​(java.util.List<ChartText> value)
        Set texts
        参数:
        value - texts
      • getWindArrow

        public ChartWindArrow getWindArrow()
        Get wind arrow
        返回:
        Wind arrow
      • setWindArrow

        public void setWindArrow​(ChartWindArrow value)
        Set wind arrow
        参数:
        value - Wind arrow
      • isLogX

        public boolean isLogX()
        Get x axis is log or not
        返回:
        Boolean
      • isLogY

        public boolean isLogY()
        Get y axis is log or not
        返回:
        Boolean
      • isAutoAspect

        public boolean isAutoAspect()
        Get is auto aspect or not
        返回:
        Boolean
      • setAutoAspect

        public void setAutoAspect​(boolean value)
        Set is auto aspect or not
        参数:
        value - Boolean
      • getAspect

        public double getAspect()
        Get aspect - scaling from data to plot units for x and y
        返回:
        Aspect
      • setAspect

        public void setAspect​(double value)
        Set aspect
        参数:
        value - Aspect
      • isYReverse

        public boolean isYReverse()
        Get if y axis is reverse or not
        返回:
        Boolean
      • isXReverse

        public boolean isXReverse()
        Get if x axis is reverse or not
        返回:
        Boolean
      • isClip

        public boolean isClip()
        Get is clip axes or not
        返回:
        Boolean
      • setClip

        public void setClip​(boolean value)
        Set is clip axes or not
        参数:
        value - Boolean
      • 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
      • setAxis

        public void setAxis​(Axis axis,
                            Location loc)
        Set axis
        参数:
        axis - The axis
        loc - Axis location
      • setAxisLabelFont

        public void setAxisLabelFont​(java.awt.Font font)
        Set axis label font
        参数:
        font - Font
      • setAxisOn

        public void setAxisOn​(boolean value)
        Set all axis visible or not
        参数:
        value - Boolean
      • setInsideTick

        public void setInsideTick​(boolean isInside)
        Set axis tick line inside box or not
        参数:
        isInside - Inside box ot not
      • isInsideTick

        public boolean isInsideTick()
        Get is inside tick line or not
        返回:
        Is inside or not
      • draw

        public void draw​(java.awt.Graphics2D g,
                         java.awt.geom.Rectangle2D area)
        Draw plot
        指定者:
        draw 在类中 Plot
        参数:
        g - Graphics2D
        area - Drawing area
      • 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
      • getTightInsetArea

        public java.awt.geom.Rectangle2D getTightInsetArea​(java.awt.Graphics2D g,
                                                           java.awt.geom.Rectangle2D positionArea)
        Get tight inset area
        参数:
        g - Graphics2D
        positionArea - Position area
        返回:
        Tight inset area
      • getPositionArea

        public java.awt.geom.Rectangle2D getPositionArea()
        Get position area
        覆盖:
        getPositionArea 在类中 Plot
        返回:
        Position area
      • getOuterPositionArea

        public java.awt.geom.Rectangle2D getOuterPositionArea​(java.awt.geom.Rectangle2D area)
        Get outer position area
        指定者:
        getOuterPositionArea 在类中 Plot
        参数:
        area - Whole area
        返回:
        Position area
      • getGraphArea

        public java.awt.geom.Rectangle2D getGraphArea​(java.awt.Graphics2D g,
                                                      java.awt.geom.Rectangle2D area)
        Get graphic area
        参数:
        g - Graphic2D
        area - Whole area
        返回:
        Graphic area
      • projToScreen

        public double[] projToScreen​(double projX,
                                     double projY,
                                     java.awt.geom.Rectangle2D area)
        Convert coordinate from map to screen
        参数:
        projX - Map X
        projY - Map Y
        area - Drawing area
        返回:
        Screen X/Y array
      • projXLength

        public double projXLength​(double len,
                                  java.awt.geom.Rectangle2D area)
        Convert data length to screen length in x direction
        参数:
        len - data length
        area - Drawing area
        返回:
        Screen length
      • projYLength

        public double projYLength​(double len,
                                  java.awt.geom.Rectangle2D area)
        Convert data length to screen length in y direction
        参数:
        len - data length
        area - Drawing area
        返回:
        Screen length
      • screenToProj

        public double[] screenToProj​(double screenX,
                                     double screenY,
                                     java.awt.geom.Rectangle2D area)
        Convert coordinate from screen to map
        参数:
        screenX - Screen X
        screenY - Screen Y
        area - Area
        返回:
        Projected X/Y
      • setAutoExtent

        public abstract void setAutoExtent()
      • updateLegendScheme

        public abstract void updateLegendScheme()
      • zoomToExtentScreen

        public void zoomToExtentScreen​(double minX,
                                       double maxX,
                                       double minY,
                                       double maxY)
        Zoom to screen extent
        参数:
        minX - Minimum x
        maxX - Maximum x
        minY - Minimum y
        maxY - Maximum y
      • addText

        public void addText​(ChartText text)
        Add text
        参数:
        text - Chart text