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 StyleResolverGets the image vertical alignment.voidsetContext(ComponentContext context) voidsetHorizontalImageAlign(HorizontalImageAlignEnum horizontalImageAlign) Sets the image horizontal alignment.voidsetIconPosition(IconPositionEnum iconPosition) voidsetIconTextField(JRTextField iconTextField) voidsetLabelFill(ContainerFillEnum labelFill) voidsetLabelTextField(JRTextField labelTextField) voidsetLineBox(JRLineBox lineBox) voidsetVerticalImageAlign(VerticalImageAlignEnum verticalImageAlign) Gets the image vertical alignment.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
setContextin interfaceContextAwareComponent
-
getContext
- Specified by:
getContextin interfaceContextAwareComponent
-
getLineBox
- Specified by:
getLineBoxin interfaceJRBoxContainer
-
setLineBox
-
getDefaultStyleProvider
- Specified by:
getDefaultStyleProviderin interfaceJRStyleContainer
-
getStyleResolver
-
getStyle
Description copied from interface:JRStyleContainerReturns this object's style.- Specified by:
getStylein interfaceJRStyleContainer- Returns:
- this object's style
-
getStyleNameReference
Description copied from interface:JRStyleContainerReturns the name of an external style which is to be used by this object. External styles are defined intemplatesand are resolved at fill time. This attribute is only effective if no direct style (as returned bygetStyle()is specified for this object.- Specified by:
getStyleNameReferencein interfaceJRStyleContainer- Returns:
- the name of an external style
-
getDefaultLineColor
- Specified by:
getDefaultLineColorin interfaceJRBoxContainer
-
getLabelTextField
-
setLabelTextField
-
getIconTextField
-
setIconTextField
-
getIconPosition
-
setIconPosition
-
getHorizontalImageAlign
Description copied from interface:JRImageAlignmentGets the image horizontal alignment.- Specified by:
getHorizontalImageAlignin interfaceJRImageAlignment- Returns:
- a value representing one of the horizontal image alignment constants in
HorizontalImageAlignEnum
-
getOwnHorizontalImageAlign
- Specified by:
getOwnHorizontalImageAlignin interfaceJRImageAlignment
-
setHorizontalImageAlign
Description copied from interface:JRImageAlignmentSets the image horizontal alignment.- Specified by:
setHorizontalImageAlignin interfaceJRImageAlignment- Parameters:
horizontalImageAlign- a value representing one of the horizontal image alignment constants inHorizontalImageAlignEnum
-
getVerticalImageAlign
Description copied from interface:JRImageAlignmentGets the image vertical alignment.- Specified by:
getVerticalImageAlignin interfaceJRImageAlignment- Returns:
- a value representing one of the vertical image alignment constants in
VerticalImageAlignEnum
-
getOwnVerticalImageAlign
- Specified by:
getOwnVerticalImageAlignin interfaceJRImageAlignment
-
setVerticalImageAlign
Description copied from interface:JRImageAlignmentGets the image vertical alignment.- Specified by:
setVerticalImageAlignin interfaceJRImageAlignment- Parameters:
verticalImageAlign- a value representing one of the vertical image alignment constants inVerticalImageAlignEnum
-
getLabelFill
-
setLabelFill
-
getEventSupport
Description copied from interface:JRChangeEventsSupportReturns the property change support object for this instance.- Specified by:
getEventSupportin interfaceJRChangeEventsSupport- Returns:
- the property change support object for this instance
-