| java.lang.Object org.jfree.report.util.ElementLayoutInformation
ElementLayoutInformation | public class ElementLayoutInformation (Code) | | 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.
author: Thomas Morgner |
ElementLayoutInformation | public ElementLayoutInformation(StrictBounds rect)(Code) | | Creates a new instance.
The position will be rect.x, rect.y and all dimensions are set to
rect.width, rect.height .
Parameters: rect - the rectangle that will be the base for this ElementLayoutInformation. throws: java.lang.NullPointerException - if the given rectangle is null. |
ElementLayoutInformation | public ElementLayoutInformation(StrictPoint absolutePosition, StrictDimension minimumSize, StrictDimension maximumSize)(Code) | | Creates a new instance.
The preferred size will be undefined (null ).
Parameters: absolutePosition - the absolute position for the element. Parameters: minimumSize - the minimum size for the element. Parameters: maximumSize - the maximum size for the element. throws: java.lang.NullPointerException - if one of the parameters is null . |
ElementLayoutInformation | public ElementLayoutInformation(StrictPoint absolutePosition, StrictDimension minimumSize, StrictDimension maximumSize, StrictDimension preferredSize)(Code) | | Creates a new instance.
If the preferred size is null , then it is left undefined.
Parameters: absolutePosition - the absolute position for the element Parameters: minimumSize - the minimum size for the element Parameters: maximumSize - the maximum size for the element Parameters: preferredSize - the preferred size or null if not known. throws: java.lang.NullPointerException - if the position or max/min size isnull . |
getAbsolutePosition | public StrictPoint getAbsolutePosition()(Code) | | Gets the absolute positon defined in this LayoutInformation.
a clone of the absolute position. |
getMaximumSize | public StrictDimension getMaximumSize()(Code) | | Gets the maximum size defined in this LayoutInformation.
a clone of the maximum size. |
getMinimumSize | public StrictDimension getMinimumSize()(Code) | | Gets the minimum size defined in this LayoutInformation.
a clone of the minimum size. |
getPreferredSize | public StrictDimension getPreferredSize()(Code) | | Gets the preferred size defined in this LayoutInformation.
a clone of the preferred size. |
toString | public String toString()(Code) | | Returns a string representing the object (useful for debugging).
A string. |
unionMin | public static StrictDimension unionMin(StrictDimension max, StrictDimension pref)(Code) | | Create a minimum dimension of the given 2 dimension objects. If pref is not given,
the max parameter is returned unchanged.
This is used to limit the element bounds to the preferred size or the maximum size
(in case the user misconfigured anything).
Parameters: max - the maximum size as retrieved from the element. Parameters: pref - the preferred size. the minimum dimension. |
|
|