| java.lang.Object org.jfree.chart.block.RectangleConstraint
RectangleConstraint | public class RectangleConstraint (Code) | | A description of a constraint for resizing a rectangle. Constraints are
immutable.
|
RectangleConstraint | public RectangleConstraint(double w, double h)(Code) | | Creates a new "fixed width and height" instance.
Parameters: w - the fixed width. Parameters: h - the fixed height. |
RectangleConstraint | public RectangleConstraint(Range w, Range h)(Code) | | Creates a new "range width and height" instance.
Parameters: w - the width range. Parameters: h - the height range. |
RectangleConstraint | public RectangleConstraint(Range w, double h)(Code) | | Creates a new constraint with a range for the width and a
fixed height.
Parameters: w - the width range. Parameters: h - the fixed height. |
RectangleConstraint | public RectangleConstraint(double w, Range h)(Code) | | Creates a new constraint with a fixed width and a range for
the height.
Parameters: w - the fixed width. Parameters: h - the height range. |
RectangleConstraint | public RectangleConstraint(double w, Range widthRange, LengthConstraintType widthConstraintType, double h, Range heightRange, LengthConstraintType heightConstraintType)(Code) | | Creates a new constraint.
Parameters: w - the fixed or maximum width. Parameters: widthRange - the width range. Parameters: widthConstraintType - the width type. Parameters: h - the fixed or maximum height. Parameters: heightRange - the height range. Parameters: heightConstraintType - the height type. |
calculateConstrainedSize | public Size2D calculateConstrainedSize(Size2D base)(Code) | | Returns the new size that reflects the constraints defined by this
instance.
Parameters: base - the base size. The constrained size. |
getHeight | public double getHeight()(Code) | | Returns the fixed height.
The height. |
getHeightConstraintType | public LengthConstraintType getHeightConstraintType()(Code) | | Returns the constraint type.
The constraint type (never null ). |
getHeightRange | public Range getHeightRange()(Code) | | Returns the width range.
The range (possibly null ). |
getWidth | public double getWidth()(Code) | | Returns the fixed width.
The width. |
getWidthConstraintType | public LengthConstraintType getWidthConstraintType()(Code) | | Returns the constraint type.
The constraint type (never null ). |
getWidthRange | public Range getWidthRange()(Code) | | Returns the width range.
The range (possibly null ). |
toFixedHeight | public RectangleConstraint toFixedHeight(double height)(Code) | | Returns a constraint that matches this one on the width attributes,
but has a fixed height constraint.
Parameters: height - the fixed height. A new constraint. |
toFixedWidth | public RectangleConstraint toFixedWidth(double width)(Code) | | Returns a constraint that matches this one on the height attributes,
but has a fixed width constraint.
Parameters: width - the fixed width. A new constraint. |
toRangeHeight | public RectangleConstraint toRangeHeight(Range range)(Code) | | Returns a constraint that matches this one on the width attributes,
but has a range height constraint.
Parameters: range - the height range (null not permitted). A new constraint. |
toRangeWidth | public RectangleConstraint toRangeWidth(Range range)(Code) | | Returns a constraint that matches this one on the height attributes,
but has a range width constraint.
Parameters: range - the width range (null not permitted). A new constraint. |
toString | public String toString()(Code) | | Returns a string representation of this instance, mostly used for
debugging purposes.
A string. |
toUnconstrainedHeight | public RectangleConstraint toUnconstrainedHeight()(Code) | | Returns a constraint that matches this one on the width attributes,
but has no height constraint.
A new constraint. |
toUnconstrainedWidth | public RectangleConstraint toUnconstrainedWidth()(Code) | | Returns a constraint that matches this one on the height attributes,
but has no width constraint.
A new constraint. |
|
|