Class IconLabelComponent
java.lang.Object
net.sf.jasperreports.components.iconlabel.IconLabelComponent
- All Implemented Interfaces:
Serializable
,Component
,ContextAwareComponent
,JRChangeEventsSupport
,JRBoxContainer
,JRImageAlignment
,JRStyleContainer
public class IconLabelComponent
extends Object
implements ContextAwareComponent, JRBoxContainer, JRImageAlignment, Serializable, JRChangeEventsSupport
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIconLabelComponent
(IconLabelComponent component, JRBaseObjectFactory objectFactory) IconLabelComponent
(JRDefaultStyleProvider defaultStyleProvider) -
Method Summary
Modifier and TypeMethodDescriptionReturns the property change support object for this instance.Gets the image horizontal alignment.getStyle()
Returns this object's style.Returns the name of an external style which is to be used by this object.protected StyleResolver
Gets the image vertical alignment.void
setContext
(ComponentContext context) void
setHorizontalImageAlign
(HorizontalImageAlignEnum horizontalImageAlign) Sets the image horizontal alignment.void
setIconPosition
(IconPositionEnum iconPosition) void
setIconTextField
(JRTextField iconTextField) void
setLabelFill
(ContainerFillEnum labelFill) void
setLabelTextField
(JRTextField labelTextField) void
setLineBox
(JRLineBox lineBox) void
setVerticalImageAlign
(VerticalImageAlignEnum verticalImageAlign) Gets the image vertical alignment.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.sf.jasperreports.engine.JRStyleContainer
getStyleName
-
Field Details
-
PROPERTY_ICON_POSITION
- See Also:
-
PROPERTY_LABEL_FILL
- See Also:
-
PROPERTY_HORIZONTAL_ALIGNMENT
- See Also:
-
PROPERTY_VERTICAL_ALIGNMENT
- See Also:
-
-
Constructor Details
-
IconLabelComponent
-
IconLabelComponent
-
-
Method Details
-
setContext
- Specified by:
setContext
in interfaceContextAwareComponent
-
getContext
- Specified by:
getContext
in interfaceContextAwareComponent
-
getLineBox
- Specified by:
getLineBox
in interfaceJRBoxContainer
-
setLineBox
-
getDefaultStyleProvider
- Specified by:
getDefaultStyleProvider
in interfaceJRStyleContainer
-
getStyleResolver
-
getStyle
Description copied from interface:JRStyleContainer
Returns this object's style.- Specified by:
getStyle
in interfaceJRStyleContainer
- Returns:
- this object's style
-
getStyleNameReference
Description copied from interface:JRStyleContainer
Returns the name of an external style which is to be used by this object. External styles are defined intemplates
and are resolved at fill time. This attribute is only effective if no direct style (as returned bygetStyle()
is specified for this object.- Specified by:
getStyleNameReference
in interfaceJRStyleContainer
- Returns:
- the name of an external style
-
getDefaultLineColor
- Specified by:
getDefaultLineColor
in interfaceJRBoxContainer
-
getLabelTextField
-
setLabelTextField
-
getIconTextField
-
setIconTextField
-
getIconPosition
-
setIconPosition
-
getHorizontalImageAlign
Description copied from interface:JRImageAlignment
Gets the image horizontal alignment.- Specified by:
getHorizontalImageAlign
in interfaceJRImageAlignment
- Returns:
- a value representing one of the horizontal image alignment constants in
HorizontalImageAlignEnum
-
getOwnHorizontalImageAlign
- Specified by:
getOwnHorizontalImageAlign
in interfaceJRImageAlignment
-
setHorizontalImageAlign
Description copied from interface:JRImageAlignment
Sets the image horizontal alignment.- Specified by:
setHorizontalImageAlign
in interfaceJRImageAlignment
- Parameters:
horizontalImageAlign
- a value representing one of the horizontal image alignment constants inHorizontalImageAlignEnum
-
getVerticalImageAlign
Description copied from interface:JRImageAlignment
Gets the image vertical alignment.- Specified by:
getVerticalImageAlign
in interfaceJRImageAlignment
- Returns:
- a value representing one of the vertical image alignment constants in
VerticalImageAlignEnum
-
getOwnVerticalImageAlign
- Specified by:
getOwnVerticalImageAlign
in interfaceJRImageAlignment
-
setVerticalImageAlign
Description copied from interface:JRImageAlignment
Gets the image vertical alignment.- Specified by:
setVerticalImageAlign
in interfaceJRImageAlignment
- Parameters:
verticalImageAlign
- a value representing one of the vertical image alignment constants inVerticalImageAlignEnum
-
getLabelFill
-
setLabelFill
-
getEventSupport
Description copied from interface:JRChangeEventsSupport
Returns the property change support object for this instance.- Specified by:
getEventSupport
in interfaceJRChangeEventsSupport
- Returns:
- the property change support object for this instance
-