类 LayoutLegend


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

      • LayoutLegend

        public LayoutLegend​(MapLayout mapLayout,
                            LayoutMap layoutMap)
        Constructor
        参数:
        mapLayout - Map layout
        layoutMap - Layout map
    • 方法详细资料

      • getLayoutMap

        public LayoutMap getLayoutMap()
        Get layout map
        返回:
        The layout map
      • getLegendLayer

        public MapLayer getLegendLayer()
        Get legend layer
        返回:
        The legend alyer
      • setLegendLayer

        public void setLegendLayer​(MapLayer layer)
        Set legend layer
        参数:
        layer - The legend layer
      • getLayerName

        public java.lang.String getLayerName()
        Get legend layer name
        返回:
        Legend layer name
      • setLayerName

        public void setLayerName​(java.lang.String name)
        Set legend layer name
        参数:
        name - Layer name
      • isForceDrawOutline

        public boolean isForceDrawOutline()
        Get if force to draw polygon outline - for normal legend
        返回:
        Boolean
      • setForceDrawOutline

        public void setForceDrawOutline​(boolean value)
        Set if force to draw polygon outline - for normal legend
        参数:
        value - Boolean
      • getLayerUpdateType

        public LayerUpdateTypes getLayerUpdateType()
        Get layer update type
        返回:
        Layer update type
      • setLayerUpdateType

        public void setLayerUpdateType​(LayerUpdateTypes type)
        Set layer update type
        参数:
        type - Layer update type
      • getLegendStyle

        public LegendStyles getLegendStyle()
        Get legend style
        返回:
        Legend style
      • setLegendStyle

        public void setLegendStyle​(LegendStyles style)
        Set legend style
        参数:
        style - Legend style
      • getTitle

        public java.lang.String getTitle()
        Get title
        返回:
        The title
      • setTitle

        public void setTitle​(java.lang.String title)
        Set title
        参数:
        title - The title
      • 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
      • getColumnNumber

        public int getColumnNumber()
        Get column number
        返回:
        Column number
      • setColumnNumber

        public void setColumnNumber​(int value)
        Set column number
        参数:
        value - Column number
      • isDrawChartBreaks

        public boolean isDrawChartBreaks()
        Get if draw chart breaks
        返回:
        Boolean
      • setDrawChartBreaks

        public void setDrawChartBreaks​(boolean value)
        Set if draw chart breaks
        参数:
        value - Boolean
      • isDrawPieLabel

        public boolean isDrawPieLabel()
        Get if draw pie label
        返回:
        Boolean
      • setDrawPieLabel

        public void setDrawPieLabel​(boolean value)
        Set if draw pie label
        参数:
        value - Boolean
      • paintGraphics

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

        public void updateLegendSize()
        Update legend control size
      • paint

        public void paint​(java.awt.Graphics2D g)
        从类复制的说明: LayoutElement
        Paint method
        指定者:
        paint 在类中 LayoutElement
        参数:
        g - Graphics2D
      • paintOnLayout

        public void paintOnLayout​(java.awt.Graphics2D g,
                                  PointF pageLocation,
                                  float zoom)
        从类复制的说明: LayoutElement
        Paint on layout method
        指定者:
        paintOnLayout 在类中 LayoutElement
        参数:
        g - Grahpics2D
        pageLocation - Page location
        zoom - Zoom
      • getLayerNames

        public static java.util.List<java.lang.String> getLayerNames()
        Get layer names
        返回:
        Layer names