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

Interface LegendEx

    • Method Detail

      • getItems

        LegendItemEx[] getItems()
        Returns all legend items managed by this legend
        Specified by:
        getItems in interface Legend
        Returns:
        items managed by this legend
      • putItemsToEnabledLegend

        void putItemsToEnabledLegend()
        Put all items in this disabled legend to enabled upper legend
      • directLocation

        void directLocation(double locX,
                            double locY)
        Sets the location without setting the position to Position.FREE
        Parameters:
        locX -
        locY -
      • addLegendItem

        void addLegendItem(LegendItemEx item)
        Add the given item to this legend. If this legend is disabled, the item should be added to its upper level legend. This method will set the legend property of added legend item to the actual hosting legend.
        Parameters:
        item - the legend item to be added
      • removeLegendItem

        void removeLegendItem(LegendItemEx item)
        Remove the given item from this legend. If this legend is disabled, the item should be removed from its upper level legend.
        Parameters:
        item - the legend item to be removed
      • itemSizeChanged

        void itemSizeChanged(LegendItemEx item)
        Called by a visible legend item to notify this legend that the item's size is changed.
      • itemVisibilityChanged

        void itemVisibilityChanged(LegendItemImpl item)
        Called by a legend item to notify this legend that the item's visibility is changed. An item is shown when both visibility and contributivity are true.
      • itemContribitivityChanged

        void itemContribitivityChanged(LegendItemImpl item)
        Called by a legend item to notify that the item's contributivity is changed. An item is shown when both visibility and contributivity are true.
      • getThickness

        double getThickness()
        Returns the thickness of this legend. When position is on top or bottom, thickness is its height. When position is on left or right, thickness is its width.
        Returns:
        the thickness of this legend
      • calcSize

        void calcSize()
        Calculate size of this legend and re-layout legend items. This method is always called by plot when committing changes.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.