Class DimensionComponentBuilder<T extends DimensionComponentBuilder<T,U>,U extends DRDimensionComponent>
java.lang.Object
net.sf.dynamicreports.report.builder.AbstractBuilder<T,U>
net.sf.dynamicreports.report.builder.component.ComponentBuilder<T,U>
net.sf.dynamicreports.report.builder.component.DimensionComponentBuilder<T,U>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbstractBarcodeBuilder
,BarbecueBuilder
,CrosstabBuilder
,EllipseBuilder
,FillerBuilder
,GenericElementBuilder
,HorizontalListBuilder
,HyperLinkComponentBuilder
,LineBuilder
,MapBuilder
,MultiPageListBuilder
,RectangleBuilder
,SubreportBuilder
,VerticalListBuilder
,XyListBuilder
public abstract class DimensionComponentBuilder<T extends DimensionComponentBuilder<T,U>,U extends DRDimensionComponent>
extends ComponentBuilder<T,U>
Abstract DimensionComponentBuilder class.
- Author:
- Ricardo Mariaca
- See Also:
-
Field Summary
Fields inherited from class net.sf.dynamicreports.report.builder.AbstractBuilder
builded
-
Constructor Summary
ConstructorDescriptionDimensionComponentBuilder
(U component) Constructor for DimensionComponentBuilder. -
Method Summary
Modifier and TypeMethodDescriptionsetDimension
(Integer width, Integer height) Sets the component preferred dimension.setFixedDimension
(Integer width, Integer height) Sets the component fixed dimension.setFixedHeight
(Integer height) Sets the component fixed height.setFixedWidth
(Integer width) Sets the component fixed width.Sets the component preferred height.setMinDimension
(Integer width, Integer height) Sets the component minimum dimension.setMinHeight
(Integer height) Sets the component minimum height.setMinWidth
(Integer width) Sets the component minimum width.setPositionType
(ComponentPositionType positionType) setPositionType.setPrintInFirstWholeBand
(Boolean printInFirstWholeBand) setPrintInFirstWholeBand.setPrintWhenDetailOverflows
(Boolean printWhenDetailOverflows) setPrintWhenDetailOverflows.setPrintWhenGroupChanges
(GroupBuilder<?> group) setPrintWhenGroupChanges.setStretchType
(StretchType stretchType) setStretchType.Sets the component preferred width.Methods inherited from class net.sf.dynamicreports.report.builder.component.ComponentBuilder
addProperty, addProperty, addProperty, getComponent, removeLineWhenBlank, setPrintWhenExpression, setRemoveLineWhenBlank, setStyle, setTableOfContentsHeading, setTableOfContentsHeading
Methods inherited from class net.sf.dynamicreports.report.builder.AbstractBuilder
build, configure, getObject
-
Constructor Details
-
DimensionComponentBuilder
Constructor for DimensionComponentBuilder.
- Parameters:
component
- a U object.
-
-
Method Details
-
setDimension
Sets the component preferred dimension.- Parameters:
width
- the component preferred width >= 0height
- the component preferred height >= 0- Returns:
- a T object.
- Throws:
IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0- See Also:
-
setFixedDimension
Sets the component fixed dimension.- Parameters:
width
- the component fixed width >= 0height
- the component fixed height >= 0- Returns:
- a T object.
- Throws:
IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0- See Also:
-
setMinDimension
Sets the component minimum dimension.- Parameters:
width
- the component minimum width >= 0height
- the component minimum height >= 0- Returns:
- a T object.
- Throws:
IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0IllegalArgumentException
- ifwidth
is < 0IllegalArgumentException
- ifheight
is < 0- See Also:
-
setWidth
Sets the component preferred width.- Parameters:
width
- the component preferred width >= 0- Returns:
- a T object.
- Throws:
IllegalArgumentException
- ifwidth
is < 0- See Also:
-
setFixedWidth
Sets the component fixed width.- Parameters:
width
- the component fixed width >= 0- Returns:
- a T object.
- Throws:
IllegalArgumentException
- ifwidth
is < 0- See Also:
-
setMinWidth
Sets the component minimum width.- Parameters:
width
- the component minimum width >= 0- Returns:
- a T object.
- Throws:
IllegalArgumentException
- ifwidth
is < 0- See Also:
-
setHeight
Sets the component preferred height.- Parameters:
height
- the component preferred height >= 0- Returns:
- a T object.
- Throws:
IllegalArgumentException
- ifheight
is < 0- See Also:
-
setFixedHeight
Sets the component fixed height.- Parameters:
height
- the component fixed height >= 0- Returns:
- a T object.
- Throws:
IllegalArgumentException
- ifheight
is < 0- See Also:
-
setMinHeight
Sets the component minimum height.- Parameters:
height
- the component minimum height >= 0- Returns:
- a T object.
- Throws:
IllegalArgumentException
- ifheight
is < 0- See Also:
-
setPositionType
setPositionType.
- Parameters:
positionType
- aComponentPositionType
object.- Returns:
- a T object.
-
setStretchType
setStretchType.
- Parameters:
stretchType
- aStretchType
object.- Returns:
- a T object.
-
setPrintInFirstWholeBand
setPrintInFirstWholeBand.
- Parameters:
printInFirstWholeBand
- aBoolean
object.- Returns:
- a T object.
-
setPrintWhenDetailOverflows
setPrintWhenDetailOverflows.
- Parameters:
printWhenDetailOverflows
- aBoolean
object.- Returns:
- a T object.
-
setPrintWhenGroupChanges
setPrintWhenGroupChanges.
- Parameters:
group
- aGroupBuilder
object.- Returns:
- a T object.
-