|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jrefinery.report.targets.base.ElementLayoutInformation
A small carrier class to encapsulate the common layout parameters. This information is a utility class, don't expect to find one bound to an element.
Constructor Summary | |
ElementLayoutInformation(java.awt.geom.Point2D absolutePosition,
java.awt.geom.Dimension2D minimumSize,
java.awt.geom.Dimension2D maximumSize)
Creates a new instance. |
|
ElementLayoutInformation(java.awt.geom.Point2D absolutePosition,
java.awt.geom.Dimension2D minimumSize,
java.awt.geom.Dimension2D maximumSize,
java.awt.geom.Dimension2D preferredSize)
Creates a new instance. |
|
ElementLayoutInformation(java.awt.geom.Rectangle2D rect)
Creates a new instance. |
Method Summary | |
java.awt.geom.Point2D |
getAbsolutePosition()
Gets the absolute positon defined in this LayoutInformation. |
java.awt.geom.Dimension2D |
getMaximumSize()
Gets the maximum size defined in this LayoutInformation. |
java.awt.geom.Dimension2D |
getMinimumSize()
Gets the minimum size defined in this LayoutInformation. |
java.awt.geom.Dimension2D |
getPreferredSize()
Gets the preferred size defined in this LayoutInformation. |
java.lang.String |
toString()
Returns a string representing the object (useful for debugging). |
static java.awt.geom.Dimension2D |
unionMin(java.awt.geom.Dimension2D max,
java.awt.geom.Dimension2D pref)
Create a minimum dimension of the given 2 dimension objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ElementLayoutInformation(java.awt.geom.Rectangle2D rect)
The position will be rect.x, rect.y
and all dimensions
are set to rect.width, rect.height
.
rect
- the rectangle that will be the base for this ElementLayoutInformation.
java.lang.NullPointerException
- if the given rectangle is null.public ElementLayoutInformation(java.awt.geom.Point2D absolutePosition, java.awt.geom.Dimension2D minimumSize, java.awt.geom.Dimension2D maximumSize)
The preferred size will be undefined (null
).
absolutePosition
- the absolute position for the element.minimumSize
- the minimum size for the element.maximumSize
- the maximum size for the element.
java.lang.NullPointerException
- if one of the parameters is null
.public ElementLayoutInformation(java.awt.geom.Point2D absolutePosition, java.awt.geom.Dimension2D minimumSize, java.awt.geom.Dimension2D maximumSize, java.awt.geom.Dimension2D preferredSize)
If the preferred size is null
, then it is left undefined.
absolutePosition
- the absolute position for the elementminimumSize
- the minimum size for the elementmaximumSize
- the maximum size for the elementpreferredSize
- the preferred size or null
if not known.
java.lang.NullPointerException
- if the position or max/min size is null
.Method Detail |
public java.awt.geom.Point2D getAbsolutePosition()
public java.awt.geom.Dimension2D getMinimumSize()
public java.awt.geom.Dimension2D getMaximumSize()
public java.awt.geom.Dimension2D getPreferredSize()
public static java.awt.geom.Dimension2D unionMin(java.awt.geom.Dimension2D max, java.awt.geom.Dimension2D pref)
max
- ??.pref
- ??.
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |