public class IconLabelComponentFill extends BaseFillComponent implements StretchableFillComponent, ConditionalStyleAwareFillComponent, JRBoxContainer, JRImageAlignment
elementId, fillContext, printElementOriginator| Constructor and Description |
|---|
IconLabelComponentFill(IconLabelComponent iconLabelComponent,
JRFillCloneFactory factory) |
IconLabelComponentFill(IconLabelComponent iconLabelComponent,
JRFillObjectFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copy(JRGenericPrintElement printElement) |
protected void |
copy(JRPrintFrame printFrame) |
JRFillCloneable |
createClone(JRFillCloneFactory factory) |
void |
evaluate(byte evaluation)
Evaluates the fill component.
|
void |
evaluateDelayedElement(JRPrintElement element,
byte evaluation)
The default implementation throws
UnsupportedOperationException. |
JRPrintElement |
fill()
Fills the component by creating a print element which will be included
in the generated report.
|
void |
fillHorizontal() |
void |
fillVertical() |
Color |
getDefaultLineColor() |
JRDefaultStyleProvider |
getDefaultStyleProvider() |
HorizontalImageAlignEnum |
getHorizontalImageAlign()
Gets the image horizontal alignment.
|
protected IconLabelComponent |
getIconLabelComponent() |
JRLineBox |
getLineBox() |
HorizontalImageAlignEnum |
getOwnHorizontalImageAlign() |
VerticalImageAlignEnum |
getOwnVerticalImageAlign() |
JRStyle |
getStyle()
Returns this object's style.
|
String |
getStyleNameReference()
Returns the name of an external style which is to be used by this object.
|
protected StyleResolver |
getStyleResolver() |
VerticalImageAlignEnum |
getVerticalImageAlign()
Gets the image vertical alignment.
|
FillPrepareResult |
prepare(int availableHeight)
Prepares to fill the component by deciding whether the component will
print, and how much vertical space it will require.
|
void |
setConditionalStylesContainer(JRFillElementContainer conditionalStylesContainer) |
void |
setHorizontalImageAlign(HorizontalImageAlignEnum horizontalAlignment)
Sets the image horizontal alignment.
|
void |
setStretchHeight(int stretchHeight) |
void |
setVerticalImageAlign(VerticalImageAlignEnum verticalAlignment)
Gets the image vertical alignment.
|
deduplicate, evaluateExpression, initialize, rewindpublic IconLabelComponentFill(IconLabelComponent iconLabelComponent, JRFillObjectFactory factory)
public IconLabelComponentFill(IconLabelComponent iconLabelComponent, JRFillCloneFactory factory)
protected IconLabelComponent getIconLabelComponent()
public void evaluate(byte evaluation)
throws JRException
FillComponent
This method would evaluate the component expressions and store the
results to be used in FillComponent.fill().
If the component needs to delay the evaluation of some of its
expressions, it would call
FillContext.registerDelayedEvaluation(JRPrintElement, EvaluationTimeEnum, String)
to register a delayed evaluation print element, and perform the delayed
evaluations on FillComponent.evaluateDelayedElement(JRPrintElement, byte).
evaluate in interface FillComponentevaluation - the evaluation typeJRExceptionFillContext.evaluate(net.sf.jasperreports.engine.JRExpression, byte)public JRPrintElement fill()
FillComponent
This method will get called only if FillComponent.prepare(int) returned
a result that indicated that the component will print.
fill in interface FillComponentpublic void fillHorizontal()
public void fillVertical()
public void setStretchHeight(int stretchHeight)
setStretchHeight in interface StretchableFillComponentpublic void setConditionalStylesContainer(JRFillElementContainer conditionalStylesContainer)
setConditionalStylesContainer in interface ConditionalStyleAwareFillComponentpublic FillPrepareResult prepare(int availableHeight)
FillComponentprepare in interface FillComponentavailableHeight - the amount of vertical space available for the
component, starting from the top of the component element.public JRFillCloneable createClone(JRFillCloneFactory factory)
public void evaluateDelayedElement(JRPrintElement element, byte evaluation) throws JRException
BaseFillComponentUnsupportedOperationException.
If a component supports delayed evaluation, it needs to override this method.
evaluateDelayedElement in interface FillComponentevaluateDelayedElement in class BaseFillComponentelement - the print element for which delayed evaluation has
been registeredevaluation - the evaluation typeJRExceptionFillComponent.evaluate(byte)protected void copy(JRGenericPrintElement printElement)
protected void copy(JRPrintFrame printFrame)
public Color getDefaultLineColor()
getDefaultLineColor in interface JRBoxContainerpublic JRDefaultStyleProvider getDefaultStyleProvider()
getDefaultStyleProvider in interface JRStyleContainerprotected StyleResolver getStyleResolver()
public JRStyle getStyle()
JRStyleContainergetStyle in interface JRStyleContainerpublic String getStyleNameReference()
JRStyleContainertemplates and are resolved
at fill time.
This attribute is only effective if no direct style (as returned by getStyle()
is specified for this object.getStyleNameReference in interface JRStyleContainerpublic JRLineBox getLineBox()
getLineBox in interface JRBoxContainerpublic HorizontalImageAlignEnum getHorizontalImageAlign()
JRImageAlignmentgetHorizontalImageAlign in interface JRImageAlignmentHorizontalImageAlignEnumpublic HorizontalImageAlignEnum getOwnHorizontalImageAlign()
getOwnHorizontalImageAlign in interface JRImageAlignmentpublic void setHorizontalImageAlign(HorizontalImageAlignEnum horizontalAlignment)
JRImageAlignmentsetHorizontalImageAlign in interface JRImageAlignmenthorizontalAlignment - a value representing one of the horizontal image alignment constants in HorizontalImageAlignEnumpublic VerticalImageAlignEnum getVerticalImageAlign()
JRImageAlignmentgetVerticalImageAlign in interface JRImageAlignmentVerticalImageAlignEnumpublic VerticalImageAlignEnum getOwnVerticalImageAlign()
getOwnVerticalImageAlign in interface JRImageAlignmentpublic void setVerticalImageAlign(VerticalImageAlignEnum verticalAlignment)
JRImageAlignmentsetVerticalImageAlign in interface JRImageAlignmentverticalAlignment - a value representing one of the vertical image alignment constants in VerticalImageAlignEnumCopyright © 2019 TIBCO Software Inc.. All rights reserved.