| 
 | Header | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.chart.block.RectangleConstraint
public class RectangleConstraint
A description of a constraint for resizing a rectangle. Constraints are immutable.
| Field Summary | |
|---|---|
| static RectangleConstraint | NONEAn instance representing no constraint. | 
| Constructor Summary | |
|---|---|
| RectangleConstraint(double w,
                                       double h)Creates a new "fixed width and height" instance. | |
| RectangleConstraint(double w,
                                       Range h)Creates a new constraint with a fixed width and a range for the height. | |
| RectangleConstraint(double w,
                                       Range widthRange,
                                       LengthConstraintType widthConstraintType,
                                       double h,
                                       Range heightRange,
                                       LengthConstraintType heightConstraintType)Creates a new constraint. | |
| RectangleConstraint(Range w,
                                       double h)Creates a new constraint with a range for the width and a fixed height. | |
| RectangleConstraint(Range w,
                                       Range h)Creates a new "range width and height" instance. | |
| Method Summary | |
|---|---|
|  org.jfree.ui.Size2D | calculateConstrainedSize(org.jfree.ui.Size2D base)Returns the new size that reflects the constraints defined by this instance. | 
|  double | getHeight()Returns the fixed height. | 
|  LengthConstraintType | getHeightConstraintType()Returns the constraint type. | 
|  Range | getHeightRange()Returns the width range. | 
|  double | getWidth()Returns the fixed width. | 
|  LengthConstraintType | getWidthConstraintType()Returns the constraint type. | 
|  Range | getWidthRange()Returns the width range. | 
|  RectangleConstraint | toFixedHeight(double height)Returns a constraint that matches this one on the width attributes, but has a fixed height constraint. | 
|  RectangleConstraint | toFixedWidth(double width)Returns a constraint that matches this one on the height attributes, but has a fixed width constraint. | 
|  RectangleConstraint | toRangeHeight(Range range)Returns a constraint that matches this one on the width attributes, but has a range height constraint. | 
|  RectangleConstraint | toRangeWidth(Range range)Returns a constraint that matches this one on the height attributes, but has a range width constraint. | 
|  java.lang.String | toString()Returns a string representation of this instance, mostly used for debugging purposes. | 
|  RectangleConstraint | toUnconstrainedHeight()Returns a constraint that matches this one on the width attributes, but has no height constraint. | 
|  RectangleConstraint | toUnconstrainedWidth()Returns a constraint that matches this one on the height attributes, but has no width constraint. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final RectangleConstraint NONE
| Constructor Detail | 
|---|
public RectangleConstraint(double w,
                           double h)
w - the fixed width.h - the fixed height.
public RectangleConstraint(Range w,
                           Range h)
w - the width range.h - the height range.
public RectangleConstraint(Range w,
                           double h)
w - the width range.h - the fixed height.
public RectangleConstraint(double w,
                           Range h)
w - the fixed width.h - the height range.
public RectangleConstraint(double w,
                           Range widthRange,
                           LengthConstraintType widthConstraintType,
                           double h,
                           Range heightRange,
                           LengthConstraintType heightConstraintType)
w - the fixed or maximum width.widthRange - the width range.widthConstraintType - the width type.h - the fixed or maximum height.heightRange - the height range.heightConstraintType - the height type.| Method Detail | 
|---|
public double getWidth()
public Range getWidthRange()
null).public LengthConstraintType getWidthConstraintType()
null).public double getHeight()
public Range getHeightRange()
null).public LengthConstraintType getHeightConstraintType()
null).public RectangleConstraint toUnconstrainedWidth()
public RectangleConstraint toUnconstrainedHeight()
public RectangleConstraint toFixedWidth(double width)
width - the fixed width.
public RectangleConstraint toFixedHeight(double height)
height - the fixed height.
public RectangleConstraint toRangeWidth(Range range)
range - the width range (null not permitted).
public RectangleConstraint toRangeHeight(Range range)
range - the height range (null not permitted).
public java.lang.String toString()
toString in class java.lang.Objectpublic org.jfree.ui.Size2D calculateConstrainedSize(org.jfree.ui.Size2D base)
base - the base size.
| 
 | Footer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||