public class Style extends Object implements Serializable, Cloneable
| Constructor and Description |
|---|
Style() |
Style(String name) |
Style(String name,
String parentName) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
static Style |
createBlankStyle(String name)
Creates a blank style (no default values).
|
static Style |
createBlankStyle(String name,
String parent) |
Color |
getBackgroundColor() |
Border |
getBorder() |
Border |
getBorderBottom() |
Color |
getBorderColor()
Deprecated.
use #Style.getBorder().getColor() instead
|
Border |
getBorderLeft() |
Border |
getBorderRight() |
Border |
getBorderTop() |
Font |
getFont() |
HorizontalImageAlign |
getHorizontalImageAlign() |
HorizontalTextAlign |
getHorizontalTextAlign() |
String |
getName() |
Integer |
getPadding() |
Integer |
getPaddingBottom() |
Integer |
getPaddingLeft() |
Integer |
getPaddingRight() |
Integer |
getPaddingTop() |
String |
getParentStyleName() |
String |
getPattern() |
Integer |
getRadius() |
Rotation |
getRotation() |
Stretching |
getStreching()
Deprecated.
Use
#getStretchType(StretchTypeEnum) |
net.sf.jasperreports.engine.type.StretchTypeEnum |
getStretchType() |
net.sf.jasperreports.engine.type.TextAdjustEnum |
getTextAdjust() |
Color |
getTextColor() |
Transparency |
getTransparency() |
VerticalImageAlign |
getVerticalImageAlign() |
VerticalTextAlign |
getVerticalTextAlign() |
boolean |
isBlankWhenNull() |
boolean |
isOverridesExistingStyle() |
boolean |
isStretchWithOverflow()
Deprecated.
Use
getTextAdjust() |
boolean |
isTransparent() |
void |
setBackgroundColor(Color backgroundColor) |
void |
setBlankWhenNull(boolean blankWhenNull) |
void |
setBorder(Border border) |
void |
setBorderBottom(Border borderBottom) |
void |
setBorderColor(Color borderColor)
Deprecated.
Use #Style.setBorder(...) instead
|
void |
setBorderLeft(Border borderLeft) |
void |
setBorderRight(Border borderRight) |
void |
setBorderTop(Border borderTop) |
void |
setFont(Font font) |
void |
setHorizontalAlign(HorizontalAlign horizontalAlign)
Deprecated.
Use #Style.setHorizontalTextAlign(...) and #Style.setHorizontalImageAlign(...) instead
|
void |
setHorizontalImageAlign(HorizontalImageAlign horizontalImageAlign) |
void |
setHorizontalTextAlign(HorizontalTextAlign horizontalTextAlign) |
protected void |
setJRBaseStyleProperties(net.sf.jasperreports.engine.base.JRBaseStyle transformedStyle) |
void |
setName(String name) |
void |
setOverridesExistingStyle(boolean overridesExistingStyle) |
void |
setPadding(Integer padding) |
void |
setPaddingBottom(Integer paddingBottom) |
void |
setPaddingLeft(Integer paddingLeft) |
void |
setPaddingRight(Integer paddingRight) |
void |
setPaddingTop(Integer paddingTop) |
void |
setParentStyleName(String parentStyleName) |
void |
setPattern(String pattern) |
void |
setRadius(Integer radius) |
void |
setRotation(Rotation rotation) |
void |
setStreching(Stretching streching)
Deprecated.
|
void |
setStretchType(net.sf.jasperreports.engine.type.StretchTypeEnum stretchType) |
void |
setStretchWithOverflow(boolean stretchWithOverflow)
Deprecated.
|
void |
SetTextAdjust(net.sf.jasperreports.engine.type.TextAdjustEnum textAdjust) |
void |
setTextColor(Color textColor) |
void |
setTransparency(Transparency transparency) |
void |
setTransparent(boolean transparent) |
void |
setVerticalAlign(VerticalAlign verticalAlign)
Deprecated.
Use #Style.setVerticalTextAlign(...) and #Style.setVerticalImageAlign(...) instead
|
void |
setVerticalImageAlign(VerticalImageAlign verticalImageAlign) |
void |
setVerticalTextAlign(VerticalTextAlign verticalTextAlign) |
net.sf.jasperreports.engine.design.JRDesignStyle |
transform() |
net.sf.jasperreports.engine.design.JRDesignConditionalStyle |
transformAsConditinalStyle() |
public Style()
public Style(String name)
public static Style createBlankStyle(String name)
name - style namepublic boolean isOverridesExistingStyle()
public void setOverridesExistingStyle(boolean overridesExistingStyle)
public boolean isBlankWhenNull()
public void setBlankWhenNull(boolean blankWhenNull)
public Color getBackgroundColor()
public void setBackgroundColor(Color backgroundColor)
public Border getBorder()
public void setBorder(Border border)
public Font getFont()
public void setFont(Font font)
@Deprecated public void setHorizontalAlign(HorizontalAlign horizontalAlign)
horizontalAlign - public HorizontalTextAlign getHorizontalTextAlign()
public void setHorizontalTextAlign(HorizontalTextAlign horizontalTextAlign)
public HorizontalImageAlign getHorizontalImageAlign()
public void setHorizontalImageAlign(HorizontalImageAlign horizontalImageAlign)
public Integer getPadding()
public void setPadding(Integer padding)
@Deprecated public Stretching getStreching()
#getStretchType(StretchTypeEnum)@Deprecated public void setStreching(Stretching streching)
setStretchType(StretchTypeEnum)streching - public net.sf.jasperreports.engine.type.StretchTypeEnum getStretchType()
public void setStretchType(net.sf.jasperreports.engine.type.StretchTypeEnum stretchType)
@Deprecated public boolean isStretchWithOverflow()
getTextAdjust()@Deprecated public void setStretchWithOverflow(boolean stretchWithOverflow)
SetTextAdjust(TextAdjustEnum)stretchWithOverflow - public net.sf.jasperreports.engine.type.TextAdjustEnum getTextAdjust()
public void SetTextAdjust(net.sf.jasperreports.engine.type.TextAdjustEnum textAdjust)
public Color getTextColor()
public void setTextColor(Color textColor)
public Transparency getTransparency()
public void setTransparency(Transparency transparency)
public boolean isTransparent()
public void setTransparent(boolean transparent)
@Deprecated public void setVerticalAlign(VerticalAlign verticalAlign)
verticalAlign - public void setVerticalTextAlign(VerticalTextAlign verticalTextAlign)
public VerticalTextAlign getVerticalTextAlign()
public void setVerticalImageAlign(VerticalImageAlign verticalImageAlign)
public VerticalImageAlign getVerticalImageAlign()
public net.sf.jasperreports.engine.design.JRDesignConditionalStyle transformAsConditinalStyle()
public net.sf.jasperreports.engine.design.JRDesignStyle transform()
protected void setJRBaseStyleProperties(net.sf.jasperreports.engine.base.JRBaseStyle transformedStyle)
public Border getBorderBottom()
public void setBorderBottom(Border borderBottom)
public Border getBorderLeft()
public void setBorderLeft(Border borderLeft)
public Border getBorderRight()
public void setBorderRight(Border borderRight)
public Border getBorderTop()
public void setBorderTop(Border borderTop)
@Deprecated public Color getBorderColor()
@Deprecated public void setBorderColor(Color borderColor)
borderColor - public Rotation getRotation()
public void setRotation(Rotation rotation)
public Integer getRadius()
public void setRadius(Integer radius)
public Integer getPaddingBottom()
public void setPaddingBottom(Integer paddingBottom)
public Integer getPaddingTop()
public void setPaddingTop(Integer paddingTop)
public Integer getPaddingLeft()
public void setPaddingLeft(Integer paddingLeft)
public Integer getPaddingRight()
public void setPaddingRight(Integer paddingRight)
public String getName()
public void setName(String name)
public String getParentStyleName()
public void setParentStyleName(String parentStyleName)
public String getPattern()
public void setPattern(String pattern)
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionCopyright © 2006–2023 FDV Solutions. All rights reserved.