| java.lang.Object org.jfree.report.function.FunctionUtilities
FunctionUtilities | final public class FunctionUtilities (Code) | | A collection of utility methods relating to functions.
author: Thomas Morgner. |
Method Summary | |
public static Element[] | findAllElements(Band band, String element) Try to find the defined element in the last active root-band.
Parameters: band - the band that is suspected to contain the element. Parameters: element - the element name. | public static Element | findElement(Band band, String element) Try to find the defined element in the last active root-band.
Parameters: band - the band that is suspected to contain the element. Parameters: element - the element name. | public static Group | getCurrentGroup(ReportEvent event) Returns the current group instance, based on the given report event.
Parameters: event - the event which is base for the action. | public static boolean | isDefinedGroup(String groupName, ReportEvent event) Returns true if the events current groupname is equal to the group name.
Parameters: groupName - the group name. Parameters: event - the report event. | public static boolean | isDefinedPrepareRunLevel(Function f, ReportEvent event) Returns true, if the current run level is defined for the given function and this is
a prepare run. | public static boolean | isLayoutLevel(ReportEvent event) Returns true or false.
Parameters: event - the report event. |
findAllElements | public static Element[] findAllElements(Band band, String element)(Code) | | Try to find the defined element in the last active root-band.
Parameters: band - the band that is suspected to contain the element. Parameters: element - the element name. the found element or null, if no element could be found. |
findElement | public static Element findElement(Band band, String element)(Code) | | Try to find the defined element in the last active root-band.
Parameters: band - the band that is suspected to contain the element. Parameters: element - the element name. the found element or null, if no element could be found. |
getCurrentGroup | public static Group getCurrentGroup(ReportEvent event)(Code) | | Returns the current group instance, based on the given report event.
Parameters: event - the event which is base for the action. the current group of the event, never null. |
isDefinedGroup | public static boolean isDefinedGroup(String groupName, ReportEvent event)(Code) | | Returns true if the events current groupname is equal to the group name.
Parameters: groupName - the group name. Parameters: event - the report event. A boolean. |
isDefinedPrepareRunLevel | public static boolean isDefinedPrepareRunLevel(Function f, ReportEvent event)(Code) | | Returns true, if the current run level is defined for the given function and this is
a prepare run. The prepare run is used to compute the function values.
Parameters: f - the function. Parameters: event - the event. A boolean. |
isLayoutLevel | public static boolean isLayoutLevel(ReportEvent event)(Code) | | Returns true or false.
Parameters: event - the report event. A boolean. |
|
|