Class LayoutLegend

    • Constructor Detail

      • LayoutLegend

        public LayoutLegend​(MapLayout mapLayout,
                            LayoutMap layoutMap)
        Constructor
        Parameters:
        mapLayout - Map layout
        layoutMap - Layout map
    • Method Detail

      • getLayoutMap

        public LayoutMap getLayoutMap​()
        Get layout map
        Returns:
        The layout map
      • getLegendLayer

        public MapLayer getLegendLayer​()
        Get legend layer
        Returns:
        The legend alyer
      • setLegendLayer

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

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

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

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

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

        public LayerUpdateTypes getLayerUpdateType​()
        Get layer update type
        Returns:
        Layer update type
      • setLayerUpdateType

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

        public LegendStyles getLegendStyle​()
        Get legend style
        Returns:
        Legend style
      • setLegendStyle

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

        public java.lang.String getTitle​()
        Get title
        Returns:
        The title
      • setTitle

        public void setTitle​(java.lang.String title)
        Set title
        Parameters:
        title - The title
      • isDrawNeatLine

        public boolean isDrawNeatLine​()
        Get if draw neat line
        Returns:
        If draw neat line
      • setDrawNeatLine

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

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

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

        public float getNeatLineSize​()
        Get neat line size
        Returns:
        Neat line size
      • setNeatLineSize

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

        public java.awt.Font getFont​()
        Get font
        Returns:
        The font
      • setFont

        public void setFont​(java.awt.Font font)
        Set font
        Parameters:
        font - The font
      • getColumnNumber

        public int getColumnNumber​()
        Get column number
        Returns:
        Column number
      • setColumnNumber

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

        public boolean isDrawChartBreaks​()
        Get if draw chart breaks
        Returns:
        Boolean
      • setDrawChartBreaks

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

        public boolean isDrawPieLabel​()
        Get if draw pie label
        Returns:
        Boolean
      • setDrawPieLabel

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

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

        public void updateLegendSize​()
        Update legend control size
      • paint

        public void paint​(java.awt.Graphics2D g)
        Description copied from class: LayoutElement
        Paint method
        Specified by:
        paint in class LayoutElement
        Parameters:
        g - Graphics2D
      • paintOnLayout

        public void paintOnLayout​(java.awt.Graphics2D g,
                                  PointF pageLocation,
                                  float zoom)
        Description copied from class: LayoutElement
        Paint on layout method
        Specified by:
        paintOnLayout in class LayoutElement
        Parameters:
        g - Grahpics2D
        pageLocation - Page location
        zoom - Zoom
      • getLayerNames

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