org.jplot2d.layout
Class BoundsConstraint
- java.lang.Object
-
- org.jplot2d.layout.BoundsConstraint
-
public class BoundsConstraint extends java.lang.ObjectThis constraint defines bounds relative to its contaner's bounds.
-
-
Constructor Summary
Constructors Constructor and Description BoundsConstraint(double elasticTop, double elasticLeft, double elasticBottom, double elasticRight)Construct a BoundsConstraint with the 4 elastic gaps relative to its contaner's bounds.BoundsConstraint(Insets2D fixedInsets, Insets2D elasticInsets)Construct a BoundsConstraint with the fixed gaps and elastic gaps.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Insets2DgetElasticInsets()Insets2DgetFixedInsets()
-
-
-
Constructor Detail
-
BoundsConstraint
public BoundsConstraint(double elasticTop, double elasticLeft, double elasticBottom, double elasticRight)Construct a BoundsConstraint with the 4 elastic gaps relative to its contaner's bounds.- Parameters:
elasticTop- the ratio of top gap, relative to its contaner's heightelasticLeft- the ratio of left gap, relative to its contaner's widthelasticBottom- the ratio of bottom gap, relative to its contaner's heightelasticRight- the ratio of right gap, relative to its contaner's width
-
-
DMelt 3.0 © DataMelt by jWork.ORG