类 ChartScaleBar


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

      • ChartScaleBar

        public ChartScaleBar​(MapPlot mapPlot)
        Constructor
        参数:
        mapPlot - The map plot
    • 方法详细资料

      • getMapPlot

        public MapPlot getMapPlot()
        Get map plot
        返回:
        The map plot
      • getLineWidth

        public float getLineWidth()
        Get line widht
        返回:
        Line width
      • setLineWidth

        public void setLineWidth​(float value)
        Set line width
        参数:
        value - Line width
      • getScaleBarType

        public ScaleBarType getScaleBarType()
        Get scale bar type
        返回:
        Scale bar type
      • setScaleBarType

        public void setScaleBarType​(ScaleBarType type)
        Set scale bar type
        参数:
        type - Scale bar type
      • isDrawNeatLine

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

        public void setDrawNeatLine​(boolean istrue)
        Set if draw neat line
        参数:
        istrue - If draw neat line
      • getNeatLineColor

        public java.awt.Color getNeatLineColor()
        Get neat line color
        返回:
        Neat line color
      • setNeatLineColor

        public void setNeatLineColor​(java.awt.Color color)
        Set neat line color
        参数:
        color - Neat line color
      • getNeatLineSize

        public float getNeatLineSize()
        Get neat line size
        返回:
        Neat line size
      • setNeatLineSize

        public void setNeatLineSize​(float size)
        Set neat line size
        参数:
        size - Neat line size
      • getFont

        public java.awt.Font getFont()
        Get font
        返回:
        The font
      • setFont

        public void setFont​(java.awt.Font font)
        Set font
        参数:
        font - The font
      • getBreakNumber

        public int getBreakNumber()
        Get break number
        返回:
        The break number
      • setBreakNumber

        public void setBreakNumber​(int num)
        Set break number
        参数:
        num - Break number
      • isDrawScaleText

        public boolean isDrawScaleText()
        Get if draw scale text
        返回:
        If draw scale text
      • setDrawScaleText

        public void setDrawScaleText​(boolean istrue)
        Set if draw scale text
        参数:
        istrue - If draw scale text
      • draw

        public void draw​(java.awt.Graphics2D g,
                         float x,
                         float y)
        Draw text
        参数:
        g - Graphics2D
        x - X
        y - Y
      • paintGraphics

        public void paintGraphics​(java.awt.Graphics2D g,
                                  PointF pageLocation)
        Paint graphics
        参数:
        g - Graphics
        pageLocation - Page location
        zoom - Zoom