net.sf.dynamicreports.report.builder.component
Class DimensionComponentBuilder<T extends DimensionComponentBuilder<T,U>,U extends DRDimensionComponent>

java.lang.Object
  extended by net.sf.dynamicreports.report.builder.AbstractBuilder<T,U>
      extended by net.sf.dynamicreports.report.builder.component.ComponentBuilder<T,U>
          extended by 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

public abstract class DimensionComponentBuilder<T extends DimensionComponentBuilder<T,U>,U extends DRDimensionComponent>
extends ComponentBuilder<T,U>

Author:
Ricardo Mariaca (r.mariaca@dynamicreports.org)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.dynamicreports.report.builder.AbstractBuilder
builded
 
Constructor Summary
DimensionComponentBuilder(U component)
           
 
Method Summary
 T setDimension(Integer width, Integer height)
          Sets the component preferred dimension.
 T setFixedDimension(Integer width, Integer height)
          Sets the component fixed dimension.
 T setFixedHeight(Integer height)
          Sets the component fixed height.
 T setFixedWidth(Integer width)
          Sets the component fixed width.
 T setHeight(Integer height)
          Sets the component preferred height.
 T setMinDimension(Integer width, Integer height)
          Sets the component minimum dimension.
 T setMinHeight(Integer height)
          Sets the component minimum height.
 T setMinWidth(Integer width)
          Sets the component minimum width.
 T setPositionType(ComponentPositionType positionType)
           
 T setPrintInFirstWholeBand(Boolean printInFirstWholeBand)
           
 T setPrintWhenDetailOverflows(Boolean printWhenDetailOverflows)
           
 T setPrintWhenGroupChanges(GroupBuilder<?> group)
           
 T setStretchType(StretchType stretchType)
           
 T setWidth(Integer width)
          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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DimensionComponentBuilder

public DimensionComponentBuilder(U component)
Method Detail

setDimension

public T setDimension(Integer width,
                      Integer height)
Sets the component preferred dimension.

Parameters:
width - the component preferred width >= 0
height - the component preferred height >= 0
Throws:
IllegalArgumentException - if width is < 0
IllegalArgumentException - if height is < 0
See Also:
Units

setFixedDimension

public T setFixedDimension(Integer width,
                           Integer height)
Sets the component fixed dimension.

Parameters:
width - the component fixed width >= 0
height - the component fixed height >= 0
Throws:
IllegalArgumentException - if width is < 0
IllegalArgumentException - if height is < 0
See Also:
Units

setMinDimension

public T setMinDimension(Integer width,
                         Integer height)
Sets the component minimum dimension.

Parameters:
width - the component minimum width >= 0
height - the component minimum height >= 0
Throws:
IllegalArgumentException - if width is < 0
IllegalArgumentException - if height is < 0
See Also:
Units

setWidth

public T setWidth(Integer width)
Sets the component preferred width.

Parameters:
width - the component preferred width >= 0
Throws:
IllegalArgumentException - if width is < 0
See Also:
Units

setFixedWidth

public T setFixedWidth(Integer width)
Sets the component fixed width.

Parameters:
width - the component fixed width >= 0
Throws:
IllegalArgumentException - if width is < 0
See Also:
Units

setMinWidth

public T setMinWidth(Integer width)
Sets the component minimum width.

Parameters:
width - the component minimum width >= 0
Throws:
IllegalArgumentException - if width is < 0
See Also:
Units

setHeight

public T setHeight(Integer height)
Sets the component preferred height.

Parameters:
height - the component preferred height >= 0
Throws:
IllegalArgumentException - if height is < 0
See Also:
Units

setFixedHeight

public T setFixedHeight(Integer height)
Sets the component fixed height.

Parameters:
height - the component fixed height >= 0
Throws:
IllegalArgumentException - if height is < 0
See Also:
Units

setMinHeight

public T setMinHeight(Integer height)
Sets the component minimum height.

Parameters:
height - the component minimum height >= 0
Throws:
IllegalArgumentException - if height is < 0
See Also:
Units

setPositionType

public T setPositionType(ComponentPositionType positionType)

setStretchType

public T setStretchType(StretchType stretchType)

setPrintInFirstWholeBand

public T setPrintInFirstWholeBand(Boolean printInFirstWholeBand)

setPrintWhenDetailOverflows

public T setPrintWhenDetailOverflows(Boolean printWhenDetailOverflows)

setPrintWhenGroupChanges

public T setPrintWhenGroupChanges(GroupBuilder<?> group)


Copyright © 2010-2014. All Rights Reserved.