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

Class BoundsConstraint



  • public class BoundsConstraint
    extends java.lang.Object
    This 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.
    • 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 height
        elasticLeft - the ratio of left gap, relative to its contaner's width
        elasticBottom - the ratio of bottom gap, relative to its contaner's height
        elasticRight - the ratio of right gap, relative to its contaner's width
      • BoundsConstraint

        public BoundsConstraint(Insets2D fixedInsets,
                                Insets2D elasticInsets)
        Construct a BoundsConstraint with the fixed gaps and elastic gaps.
        Parameters:
        fixedMargin - the fixed gap in pt
        elasticMargin - the elastic gap ratio.
    • Method Detail

      • getFixedInsets

        public Insets2D getFixedInsets()
      • getElasticInsets

        public Insets2D getElasticInsets()

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.