Documentation of 'org.jplot2d.layout.SimpleLayoutDirector' Java class
SimpleLayoutDirector
org.jplot2d.layout

Class SimpleLayoutDirector

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class and Description
      static class  SimpleLayoutDirector.AxesInPlot
      All Axes in a plot grouped by position.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object getConstraint(PlotEx plot)
      Returns the constraint for the given plot.
      java.awt.geom.Dimension2D getPreferredContentSize(PlotEx plot)
      Calculate the preferred content size of the given plot.
      java.awt.geom.Dimension2D getPreferredSize(PlotEx plot)
      Returns the preferred size of the given plot.
      void invalidateLayout(PlotEx plot)
      Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.
      void layout(PlotEx plot)
      Layout the plot.
      void remove(PlotEx plot)
      Removes the given child from this layout.
      void setConstraint(PlotEx plot, java.lang.Object constraint)
      Sets the constraint for the given plot.
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SimpleLayoutDirector

        public SimpleLayoutDirector()
    • Method Detail

      • getConstraint

        public java.lang.Object getConstraint(PlotEx plot)
        Description copied from interface: LayoutDirector
        Returns the constraint for the given plot.
        Specified by:
        getConstraint in interface LayoutDirector
        Parameters:
        plot - The plot
        Returns:
        The constraint
      • setConstraint

        public void setConstraint(PlotEx plot,
                                  java.lang.Object constraint)
        Description copied from interface: LayoutDirector
        Sets the constraint for the given plot.
        Specified by:
        setConstraint in interface LayoutDirector
      • invalidateLayout

        public void invalidateLayout(PlotEx plot)
        Description copied from interface: LayoutDirector
        Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.
        Specified by:
        invalidateLayout in interface LayoutDirector
        Parameters:
        plot - the plot has been invalidate.
      • layout

        public void layout(PlotEx plot)
        Description copied from interface: LayoutDirector
        Layout the plot. Normally the plot contents size is calculated by subtracting margin from plot size. If the plot has contents size constraint, the plot size is calculated by adding margin to plot content size.
        Specified by:
        layout in interface LayoutDirector
      • getPreferredContentSize

        public java.awt.geom.Dimension2D getPreferredContentSize(PlotEx plot)
        Calculate the preferred content size of the given plot. The default implementation returns the plot.getPreferredContentSize(), which can be override by subclass to consider nested subplots. The returned size may be null if there is no enough information to derive a value.
        Specified by:
        getPreferredContentSize in interface LayoutDirector
        Parameters:
        plot -
        Returns:
        the preferred content size
      • getPreferredSize

        public java.awt.geom.Dimension2D getPreferredSize(PlotEx plot)
        Description copied from interface: LayoutDirector
        Returns the preferred size of the given plot.
        Specified by:
        getPreferredSize in interface LayoutDirector
        Parameters:
        plot - The plot
        Returns:
        The preferred size
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.