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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
PROPERTY_HORIZONTAL_ALIGNMENT
static String
PROPERTY_ICON_POSITION
static String
PROPERTY_LABEL_FILL
static String
PROPERTY_VERTICAL_ALIGNMENT
-
Constructor Summary
Constructors Constructor Description IconLabelComponent(IconLabelComponent component, JRBaseObjectFactory objectFactory)
IconLabelComponent(JRDefaultStyleProvider defaultStyleProvider)
-
Method Summary
-
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 Detail
-
PROPERTY_ICON_POSITION
public static final String PROPERTY_ICON_POSITION
- See Also:
- Constant Field Values
-
PROPERTY_LABEL_FILL
public static final String PROPERTY_LABEL_FILL
- See Also:
- Constant Field Values
-
PROPERTY_HORIZONTAL_ALIGNMENT
public static final String PROPERTY_HORIZONTAL_ALIGNMENT
- See Also:
- Constant Field Values
-
PROPERTY_VERTICAL_ALIGNMENT
public static final String PROPERTY_VERTICAL_ALIGNMENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IconLabelComponent
public IconLabelComponent(JRDefaultStyleProvider defaultStyleProvider)
-
IconLabelComponent
public IconLabelComponent(IconLabelComponent component, JRBaseObjectFactory objectFactory)
-
-
Method Detail
-
setContext
public void setContext(ComponentContext context)
- Specified by:
setContext
in interfaceContextAwareComponent
-
getContext
public ComponentContext getContext()
- Specified by:
getContext
in interfaceContextAwareComponent
-
getLineBox
public JRLineBox getLineBox()
- Specified by:
getLineBox
in interfaceJRBoxContainer
-
setLineBox
public void setLineBox(JRLineBox lineBox)
-
getDefaultStyleProvider
public JRDefaultStyleProvider getDefaultStyleProvider()
- Specified by:
getDefaultStyleProvider
in interfaceJRStyleContainer
-
getStyleResolver
protected StyleResolver getStyleResolver()
-
getStyle
public JRStyle getStyle()
Description copied from interface:JRStyleContainer
Returns this object's style.- Specified by:
getStyle
in interfaceJRStyleContainer
- Returns:
- this object's style
-
getStyleNameReference
public String 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
public Color getDefaultLineColor()
- Specified by:
getDefaultLineColor
in interfaceJRBoxContainer
-
getLabelTextField
public JRTextField getLabelTextField()
-
setLabelTextField
public void setLabelTextField(JRTextField labelTextField)
-
getIconTextField
public JRTextField getIconTextField()
-
setIconTextField
public void setIconTextField(JRTextField iconTextField)
-
getIconPosition
public IconPositionEnum getIconPosition()
-
setIconPosition
public void setIconPosition(IconPositionEnum iconPosition)
-
getHorizontalImageAlign
public HorizontalImageAlignEnum 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
public HorizontalImageAlignEnum getOwnHorizontalImageAlign()
- Specified by:
getOwnHorizontalImageAlign
in interfaceJRImageAlignment
-
setHorizontalImageAlign
public void setHorizontalImageAlign(HorizontalImageAlignEnum horizontalImageAlign)
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
public VerticalImageAlignEnum 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
public VerticalImageAlignEnum getOwnVerticalImageAlign()
- Specified by:
getOwnVerticalImageAlign
in interfaceJRImageAlignment
-
setVerticalImageAlign
public void setVerticalImageAlign(VerticalImageAlignEnum verticalImageAlign)
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
public ContainerFillEnum getLabelFill()
-
setLabelFill
public void setLabelFill(ContainerFillEnum labelFill)
-
getEventSupport
public JRPropertyChangeSupport 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
-
-