Documentation of 'org.jplot2d.sizing.FillContainerSizeMode' Java class
FillContainerSizeMode
org.jplot2d.sizing

Class FillContainerSizeMode



  • public class FillContainerSizeMode
    extends SizeMode
    The plot size will automatically fit the container size. The plot content size is changed as well.
    • Constructor Detail

      • FillContainerSizeMode

        public FillContainerSizeMode(double scale)
        The scale is fixed.
        Parameters:
        scale - the scale
      • FillContainerSizeMode

        public FillContainerSizeMode(java.awt.geom.Dimension2D targetSize)
        The scale is calculated toward target size. The chart aspect ratio will automatically fit the container. The plot size is changed as well. The laying out is working on outer-to-inner mode.
        Parameters:
        targetSize - the target size
    • Method Detail

      • getTargetSize

        public java.awt.geom.Dimension2D getTargetSize()
        Returns the target size. If the scale is fixed, returns null
        Returns:
        the target size
      • update

        public SizeMode.Result update(PlotEx plot)
        Description copied from class: SizeMode
        Update the internal status of this size mode.

        For Internal use only. User should never call this method.

        Specified by:
        update in class SizeMode
      • 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.