org.jplot2d.sizing
Class FillContainerSizeMode
- java.lang.Object
-
- org.jplot2d.sizing.SizeMode
-
- org.jplot2d.sizing.FillContainerSizeMode
-
public class FillContainerSizeMode extends SizeMode
The plot size will automatically fit the container size. The plot content size is changed as well.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jplot2d.sizing.SizeMode
SizeMode.Result
-
-
Constructor Summary
Constructors Constructor and Description FillContainerSizeMode(java.awt.geom.Dimension2D targetSize)The scale is calculated toward target size.FillContainerSizeMode(double scale)The scale is fixed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.awt.geom.Dimension2DgetTargetSize()Returns the target size.java.lang.StringtoString()SizeMode.Resultupdate(PlotEx plot)Update the internal status of this size mode.-
Methods inherited from class org.jplot2d.sizing.SizeMode
isAutoPack
-
-
-
-
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, returnsnull- Returns:
- the target size
-
update
public SizeMode.Result update(PlotEx plot)
Description copied from class:SizeModeUpdate the internal status of this size mode.For Internal use only. User should never call this method.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG