java.lang.Object | |
↳ | org.jfree.chart.block.RectangleConstraint |
A description of a constraint for resizing a rectangle. Constraints are immutable.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NONE | An instance representing no constraint. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new "fixed width and height" instance.
| |||||||||||
Creates a new "range width and height" instance.
| |||||||||||
Creates a new constraint with a range for the width and a
fixed height.
| |||||||||||
Creates a new constraint with a fixed width and a range for
the height.
| |||||||||||
Creates a new constraint.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the new size that reflects the constraints defined by this
instance.
| |||||||||||
Returns the fixed height.
| |||||||||||
Returns the constraint type.
| |||||||||||
Returns the width range.
| |||||||||||
Returns the fixed width.
| |||||||||||
Returns the constraint type.
| |||||||||||
Returns the width range.
| |||||||||||
Returns a constraint that matches this one on the width attributes,
but has a fixed height constraint.
| |||||||||||
Returns a constraint that matches this one on the height attributes,
but has a fixed width constraint.
| |||||||||||
Returns a constraint that matches this one on the width attributes,
but has a range height constraint.
| |||||||||||
Returns a constraint that matches this one on the height attributes,
but has a range width constraint.
| |||||||||||
Returns a string representation of this instance, mostly used for
debugging purposes.
| |||||||||||
Returns a constraint that matches this one on the width attributes,
but has no height constraint.
| |||||||||||
Returns a constraint that matches this one on the height attributes,
but has no width constraint.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new "fixed width and height" instance.
w | the fixed width. |
---|---|
h | the fixed height. |
Creates a new "range width and height" instance.
w | the width range. |
---|---|
h | the height range. |
Creates a new constraint with a range for the width and a fixed height.
w | the width range. |
---|---|
h | the fixed height. |
Creates a new constraint with a fixed width and a range for the height.
w | the fixed width. |
---|---|
h | the height range. |
Creates a new constraint.
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. |
Returns the new size that reflects the constraints defined by this instance.
base | the base size. |
---|
Returns the fixed height.
Returns the constraint type.
null
).
Returns the fixed width.
Returns the constraint type.
null
).
Returns a constraint that matches this one on the width attributes, but has a fixed height constraint.
height | the fixed height. |
---|
Returns a constraint that matches this one on the height attributes, but has a fixed width constraint.
width | the fixed width. |
---|
Returns a constraint that matches this one on the width attributes, but has a range height constraint.
range | the height range (null not permitted). |
---|
Returns a constraint that matches this one on the height attributes, but has a range width constraint.
range | the width range (null not permitted). |
---|
Returns a string representation of this instance, mostly used for debugging purposes.
Returns a constraint that matches this one on the width attributes, but has no height constraint.
Returns a constraint that matches this one on the height attributes, but has no width constraint.