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

Interface PlotEx

    • Method Detail

      • copyStructure

        PlotEx copyStructure(java.util.Map<ElementEx,ElementEx> orig2copyMap)
        Description copied from interface: ComponentEx
        Create a deep copy of this component. The parent of the copy are not set.
        Specified by:
        copyStructure in interface ComponentEx
        Specified by:
        copyStructure in interface ElementEx
        Parameters:
        orig2copyMap - original element to copy map
        Returns:
        a deep copy of this component
      • copyStructureCascade

        PlotEx copyStructureCascade(java.util.Map<ElementEx,ElementEx> orig2copyMap)
        Create a structural copy of this plot, without linking layer and axis transform.
      • getShortId

        java.lang.String getShortId()
        Returns the short id of this plot. The short id is composed of series of ids concatenated with dots. The 1st id is the id of this element, the 2nd id is the id of the parent of this element, etc, until but not include the root plot.
        Returns:
        the short id of this plot.
      • isValid

        boolean isValid()
        Determines whether this plot is valid. A plot is valid when it is correctly sized and positioned within its parent plot and all its axes, titles, legend and subplot are also valid.
        Returns:
        true if the component is valid, false otherwise
        See Also:
        validate(), invalidate()
      • invalidate

        void invalidate()
        Invalidates this component. This component and all parents above it are marked as needing to be laid out. This method can be called often, so it needs to execute quickly.
        See Also:
        validate()
      • validate

        void validate()
        Mark this component has a valid layout.
        See Also:
        invalidate()
      • isRerenderNeeded

        boolean isRerenderNeeded()
        Returns the flag that indicate if this plot is needed to be re-rendered. This flag will control if rendering process is executed by all renderers of a RenderEnvironment.
        Returns:
        the flag that indicate if this plot is needed to be re-rendered
      • setRerenderNeeded

        void setRerenderNeeded(boolean flag)
        Mark or clear the flag that indicate this plot artifact need to be re-rendered. Any component changes which do not require redraw and require re-render the plot can call this method. eg, when a cacheable component removed.
        Parameters:
        flag - the flag that indicate this plot artifact need to be re-rendered
      • setNotifier

        void setNotifier(Notifier notifier)
        Sets a notifier to receive all notice messages.
        Parameters:
        notifier -
      • commit

        void commit()
        Apply all pending changes on this plot. After this method is called, all axis range and layout are valid.
      • getMargin

        PlotMarginEx getMargin()
        Description copied from interface: Plot
        Returns the margin area of this plot.
        Specified by:
        getMargin in interface Plot
        Returns:
      • getLegend

        LegendEx getLegend()
        Description copied from interface: Plot
        Returns the legend of this plot.
        Specified by:
        getLegend in interface Plot
        Returns:
        the legend of this plot
      • indexOf

        int indexOf(TitleEx title)
      • getTitles

        TitleEx[] getTitles()
        Description copied from interface: Plot
        Returns all titles in the order of added.
        Specified by:
        getTitles in interface Plot
        Returns:
        all titles
      • indexOf

        int indexOf(LayerEx layer)
      • getLayers

        LayerEx[] getLayers()
        Description copied from interface: Plot
        Returns all layers in the order of added.
        Specified by:
        getLayers in interface Plot
        Returns:
        all layers
      • indexOfXAxis

        int indexOfXAxis(AxisEx axis)
      • indexOfYAxis

        int indexOfYAxis(AxisEx axis)
      • indexOf

        int indexOf(PlotEx subplot)
      • getSubplots

        PlotEx[] getSubplots()
        Description copied from interface: Plot
        Gets the nth subplot in this plot.
        Specified by:
        getSubplots in interface Plot
        Returns:
        the nth subplot in this plot
      • parentPaperTransformChanged

        void parentPaperTransformChanged()
      • setContentSize

        void setContentSize(java.awt.geom.Dimension2D csize)
        Sets the content size by layout director. All layers in this plot have the same viewport size.

        The layout manager guarantee this method is called after setting plot margin, and no matter if the content size is changed.

        Parameters:
        csize - the content size
      • getContentConstrant

        java.awt.geom.Dimension2D getContentConstrant()
        Returns the contents constraint of this plot.
        Returns:
        the contents constraint
      • setContentConstrant

        void setContentConstrant(java.awt.geom.Dimension2D constraint)
        Impose contents constraint on this plot. This method is called by a plot's layout director, when laying out subplots of the plot.
        Parameters:
        constraint - the contents constraint

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.