Documentation of 'org.jplot2d.element.impl.XYLegendItemImpl' Java class
XYLegendItemImpl
org.jplot2d.element.impl

Class XYLegendItemImpl

    • Constructor Detail

      • XYLegendItemImpl

        public XYLegendItemImpl()
    • Method Detail

      • getSize

        public java.awt.geom.Dimension2D getSize()
        Specified by:
        getSize in interface LegendItemEx
      • getText

        public java.lang.String getText()
        Description copied from interface: LegendItemEx
        Returns the text displayed in the legend item
        Specified by:
        getText in interface LegendItemEx
        Returns:
        the text
      • setText

        public void setText(java.lang.String text)
        Description copied from interface: LegendItemEx
        Sets the text displayed in the legend item
        Specified by:
        setText in interface LegendItemEx
        Parameters:
        text - the text displayed in the legend item
      • canContribute

        public boolean canContribute()
        Description copied from interface: LegendItemEx
        Returns true if the item has a text can be displayed in legend.
        Specified by:
        canContribute in interface LegendItemEx
        Returns:
        the indicator
      • getSymbolSize

        public float getSymbolSize()
        Description copied from interface: LegendItem
        Returns the size of the symbol draw in legend. The default symbol size is Float.NaN, means the same size as the symbol size of XYGraph.
        Specified by:
        getSymbolSize in interface LegendItem
        Returns:
        the size of the symbol draw in legend
      • setSymbolSize

        public void setSymbolSize(float size)
        Description copied from interface: LegendItem
        Set the size of symbol draw in legend. Setting to Float.NaN means the same size as the symbol size of XYGraph.
        Specified by:
        setSymbolSize in interface LegendItem
        Parameters:
        size - the size of symbols draw in legend
      • graphSymbolSizeChanged

        public void graphSymbolSizeChanged()
        Description copied from interface: XYLegendItemEx
        Called by XYGraphEx to notify XYLegendItemEx that the symbol size has been changed.
        Specified by:
        graphSymbolSizeChanged in interface XYLegendItemEx
      • draw

        public void draw(java.awt.Graphics2D g)
        Description copied from interface: LegendItemEx
        This method is called by LegendImpl. The given g has been transformed to legend's paper space.
        Specified by:
        draw in interface LegendItemEx
        Parameters:
        g - the graphic to draw.
      • copyFrom

        public void copyFrom(ElementEx src)
        Description copied from interface: ElementEx
        Copies all properties from given src to this element. Notice properties of sub-elements are not copied over.
        Specified by:
        copyFrom in interface ElementEx
        Overrides:
        copyFrom in class LegendItemImpl
        Parameters:
        src - the src

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.