Interface IScriptStyle
public interface IScriptStyle
Definition of the script style methods
- Since:
- 3.3
-
Method Summary
Modifier and TypeMethodDescriptionGet the antidiagonal colorintGet the antidiagonal line numberGet the antidiagonal styleGet the antidiagonal widthDeprecated.replaced by getBackgroundAttachment()Get the attachment type (either SCROLL or FIXED)Get the background colorReturns the height of the background image.Get the background image URIGet the background image source typeGet the X (horizontal) position of the background imageGet the Y (vertical) position of the background imageGet the background repeat type (valid types are REPEAT, REPEAT_X, REPEAT_Y and NO_REPEAT)Returns the width of the background image.Get the bottom border colorGet the bottom border style.Get the bottom border width.Get the left border colorGet the left border style.Get the left border width.Get the right border colorGet the right border style.Get the left border width.Get the top border colorGet the top border style.Get the top border width.Can this element shrink?getColor()Get the font colorGet the date formatGet the date localeGet the diagonal colorintGet the diagonal line numberGet the diagonal styleGet the diagonal widthGet the display type (valid types are BLOCK, INLINE and NONE)Get the font familyGet the font sizeGet the font styleGet the font variantGet the font weightGet the letter spacingGet the line heightGet the bottom marginGet the left marginGet the right marginGet the top marginGet the master pageGet number formatGet the number localeGet the bottom padding.Get the left padding.Get the right padding.Get the top padding.Get the page break after.Get the page break before.Get the page break inside.Show if blank?Get the string formatGet the string localeGet the text alignment.Get the text hyperlink styleGet the text indentGet the text line throughGet the text overlineGet the text transform.Get the text underlineGet the vertical alignment.Get format to hide in.Get the whitespace.Get the word spacingvoidsetAntidiagonalColor(String color) Set the antidiagonal colorvoidsetAntidiagonalNumber(int number) Set the antidiagonal line numbervoidsetAntidiagonalStyle(String style) Set the antidiagonal stylevoidsetAntidiagonalWidth(String width) Set the antidiagonal widthvoidsetBackgroundAttachement(String attachement) Deprecated.replaced by setBackgroundAttachment( String attachment )voidsetBackgroundAttachment(String attachment) Set the attachment type (either SCROLL or FIXED)voidsetBackgroundColor(String color) Set the background colorvoidsetBackgroundHeight(String value) Set the background height of the background image.voidsetBackgroundImage(String imageURI) Set the background image URIvoidsetBackgroundImageType(String imageSourceType) Set the background image source typevoidSet the X (horizontal) position of the background imagevoidSet the Y (vertical) position of the background imagevoidsetBackgroundRepeat(String repeat) Set the background repeat type (valid types are REPEAT, REPEAT_X, REPEAT_Y and NO_REPEAT)voidsetBackgroundWidth(String value) Set the background width of the background image.voidsetBorderBottomColor(String color) Set the bottom border colorvoidsetBorderBottomStyle(String borderstyle) Set the bottom border style.voidsetBorderBottomWidth(String width) Set the bottom border width.voidsetBorderLeftColor(String color) Set the left border colorvoidsetBorderLeftStyle(String borderstyle) Set the left border style.voidsetBorderLeftWidth(String width) Set the left border width.voidsetBorderRightColor(String color) Set the right border colorvoidsetBorderRightStyle(String borderstyle) Set the right border style.voidsetBorderRightWidth(String width) Set the right border width.voidsetBorderTopColor(String color) Set the top border colorvoidsetBorderTopStyle(String borderstyle) Set the top border style.voidsetBorderTopWidth(String width) Set the top border width.voidsetCanShrink(String canShrink) Can this element shrink?voidSet the font colorvoidsetDateFormat(String dateTimeFormat) Set the date formatvoidsetDateLocale(String locale) Set the date localevoidsetDiagonalColor(String color) Set the diagonal colorvoidsetDiagonalNumber(int number) Set the diagonal line numbervoidsetDiagonalStyle(String style) Set the diagonal stylevoidsetDiagonalWidth(String width) Set the diagonal widthvoidsetDisplay(String display) Set the display type (valid types are BLOCK, INLINE and NONE)voidsetFontFamily(String fontFamily) Set the font familyvoidsetFontSize(String fontSize) Set the font sizevoidsetFontStyle(String fontStyle) Set the font stylevoidsetFontVariant(String fontVariant) Set the font variantvoidsetFontWeight(String fontWeight) Set the font weightvoidsetLetterSpacing(String spacing) Set the letter spacingvoidsetLineHeight(String lineHeight) Set the line heightvoidsetMarginBottom(String margin) Set the bottom marginvoidsetMarginLeft(String margin) Set the left marginvoidsetMarginRight(String margin) Set the right marginvoidsetMarginTop(String margin) Set the top marginvoidsetMasterPage(String masterPage) Set the master pagevoidsetNumberFormat(String numberFormat) Set the number formatvoidsetNumberLocale(String locale) Set the number localevoidsetPaddingBottom(String padding) Set the bottom padding.voidsetPaddingLeft(String padding) Set the left padding.voidsetPaddingRight(String padding) Set the right padding.voidsetPaddingTop(String padding) Set the top padding.voidsetPageBreakAfter(String pageBreak) Set the page break aftervoidsetPageBreakBefore(String pageBreak) Set the page break beforevoidsetPageBreakInside(String pageBreak) Set the page break insidevoidsetShowIfBlank(String showIfBlank) Set show if blankvoidsetStringFormat(String stringFormat) Set the string formatvoidsetStringLocale(String locale) Set the string localevoidsetTextAlign(String align) Set the text alignment.voidsetTextHyperlinkStyle(String hyperlinkStyle) Set the text hyperlink stylevoidsetTextIndent(String indent) Set text indentvoidsetTextLineThrough(String through) Set the text line throughvoidsetTextOverline(String overline) Set the text overlinevoidsetTextTransform(String transform) Set the text transform.voidsetTextUnderline(String underline) Set the text underlinevoidsetVerticalAlign(String valign) Set the vertical alignment.voidsetVisibleFormat(String format) Set format to hide in.voidsetWhiteSpace(String whitespace) Set the whitespace.voidsetWordSpacing(String wordspacing) Set the word spacing
-
Method Details
-
getVisibleFormat
String getVisibleFormat()Get format to hide in. Should be one of org.eclipse.birt.report.model.api.elements.DesignChoiceConstants.FORMAT_TYPE_ALL org.eclipse.birt.report.model.api.elements.DesignChoiceConstants.FORMAT_TYPE_VIEWER org.eclipse.birt.report.model.api.elements.DesignChoiceConstants.FORMAT_TYPE_EMAIL org.eclipse.birt.report.model.api.elements.DesignChoiceConstants.FORMAT_TYPE_PRINT org.eclipse.birt.report.model.api.elements.DesignChoiceConstants.FORMAT_TYPE_PDF org.eclipse.birt.report.model.api.elements.DesignChoiceConstants.FORMAT_TYPE_RTF org.eclipse.birt.report.model.api.elements.DesignChoiceConstants.FORMAT_TYPE_REPORTLET org.eclipse.birt.report.model.api.elements.DesignChoiceConstants.FORMAT_TYPE_EXCEL org.eclipse.birt.report.model.api.elements.DesignChoiceConstants.FORMAT_TYPE_WORD org.eclipse.birt.report.model.api.elements.DesignChoiceConstants.FORMAT_TYPE_POWERPOINT- Returns:
- Return format to hide in. Should be one of
-
setVisibleFormat
Set format to hide in. Should be one of org.eclipse.birt.report.model.api.elements.DesignChoiceConstants.FORMAT_TYPE_ALL org.eclipse.birt.report.model.api.elements.DesignChoiceConstants.FORMAT_TYPE_VIEWER org.eclipse.birt.report.model.api.elements.DesignChoiceConstants.FORMAT_TYPE_EMAIL org.eclipse.birt.report.model.api.elements.DesignChoiceConstants.FORMAT_TYPE_PRINT org.eclipse.birt.report.model.api.elements.DesignChoiceConstants.FORMAT_TYPE_PDF org.eclipse.birt.report.model.api.elements.DesignChoiceConstants.FORMAT_TYPE_RTF org.eclipse.birt.report.model.api.elements.DesignChoiceConstants.FORMAT_TYPE_REPORTLET org.eclipse.birt.report.model.api.elements.DesignChoiceConstants.FORMAT_TYPE_EXCEL org.eclipse.birt.report.model.api.elements.DesignChoiceConstants.FORMAT_TYPE_WORD org.eclipse.birt.report.model.api.elements.DesignChoiceConstants.FORMAT_TYPE_POWERPOINT- Parameters:
format-
-
getLetterSpacing
-
setLetterSpacing
-
getLineHeight
-
setLineHeight
-
getTextAlign
String getTextAlign()Get the text alignment. Valid return types are LEFT, RIGHT, CENTER and JUSTIFY.- Returns:
- Return the text alignment
-
setTextAlign
Set the text alignment. Valid return types are LEFT, RIGHT, CENTER and JUSTIFY.- Parameters:
align-
-
getTextIndent
-
setTextIndent
-
getTextTransform
String getTextTransform()Get the text transform. Valid return values are NONE, CAPITALIZE, UPPERCASE and LOWERCASE.- Returns:
- Return the text transform
-
setTextTransform
Set the text transform. Valid transform values are NONE, CAPITALIZE, UPPERCASE and LOWERCASE.- Parameters:
transform-
-
getVerticalAlign
String getVerticalAlign()Get the vertical alignment. Valid return values are BASELINE, SUB, SUPER, TOP, TEXT_TOP, MIDDLE, BOTTOM and TEXT_BOTTOM- Returns:
- Return the vertical alignment
-
setVerticalAlign
Set the vertical alignment. Valid values are BASELINE, SUB, SUPER, TOP, TEXT_TOP, MIDDLE, BOTTOM and TEXT_BOTTOM- Parameters:
valign-
-
getWhiteSpace
String getWhiteSpace()Get the whitespace. Valid return values are NORMAL, PRE and NOWRAP- Returns:
- Return the whitespace option
-
setWhiteSpace
Set the whitespace. The values retruned can be NORMAL, PRE and NOWRAP- Parameters:
whitespace-
-
getWordSpacing
-
setWordSpacing
-
getColor
-
setColor
-
getBackgroundAttachement
Deprecated.replaced by getBackgroundAttachment()Get the attachement type (either SCROLL or FIXED)- Returns:
- Return the attachment type
-
setBackgroundAttachement
Deprecated.replaced by setBackgroundAttachment( String attachment )Set the attachement type (either SCROLL or FIXED)- Parameters:
attachement-
-
getBackgroundAttachment
String getBackgroundAttachment()Get the attachment type (either SCROLL or FIXED)- Returns:
- Return the attachement type
-
setBackgroundAttachment
Set the attachment type (either SCROLL or FIXED)- Parameters:
attachment-
-
getBackgroundColor
-
setBackgroundColor
-
getBackgroundImage
-
setBackgroundImage
-
getBackgroundImageType
String getBackgroundImageType()Get the background image source type- Returns:
- Return the background image source type
-
setBackgroundImageType
Set the background image source type- Parameters:
imageSourceType-
-
getBackgroundRepeat
String getBackgroundRepeat()Get the background repeat type (valid types are REPEAT, REPEAT_X, REPEAT_Y and NO_REPEAT)- Returns:
- Return the background repeat
-
setBackgroundRepeat
Set the background repeat type (valid types are REPEAT, REPEAT_X, REPEAT_Y and NO_REPEAT)- Parameters:
repeat-
-
setBackgroundHeight
Set the background height of the background image.- Parameters:
value- the new background image height- Throws:
ScriptException- if the property is locked
-
getBackgroundHeight
String getBackgroundHeight()Returns the height of the background image.- Returns:
- the background image height
-
setBackgroundWidth
Set the background width of the background image.- Parameters:
value- the new background image width- Throws:
ScriptException- if the property is locked
-
getBackgroundWidth
String getBackgroundWidth()Returns the width of the background image.- Returns:
- the background image width
-
getBorderBottomColor
-
setBorderBottomColor
-
getBorderTopColor
-
setBorderTopColor
-
getBorderRightColor
-
setBorderRightColor
-
getBorderLeftColor
-
setBorderLeftColor
-
getBorderBottomStyle
String getBorderBottomStyle()Get the bottom border style. Valid styles are NONE, SOLID, DOTTED, DASHED, DOUBLE, GROVE, RIDGE, INSET and OUTSET.- Returns:
- Return the bottom border style.
-
setBorderBottomStyle
Set the bottom border style. Valid styles are NONE, SOLID, DOTTED, DASHED, DOUBLE, GROVE, RIDGE, INSET and OUTSET.- Parameters:
borderstyle-
-
getBorderTopStyle
String getBorderTopStyle()Get the top border style. Valid styles are NONE, SOLID, DOTTED, DASHED, DOUBLE, GROVE, RIDGE, INSET and OUTSET.- Returns:
- Return the top border style.
-
setBorderTopStyle
Set the top border style. Valid styles are NONE, SOLID, DOTTED, DASHED, DOUBLE, GROVE, RIDGE, INSET and OUTSET.- Parameters:
borderstyle-
-
getBorderLeftStyle
String getBorderLeftStyle()Get the left border style. Valid styles are NONE, SOLID, DOTTED, DASHED, DOUBLE, GROVE, RIDGE, INSET and OUTSET.- Returns:
- Return the left border style.
-
setBorderLeftStyle
Set the left border style. Valid styles are NONE, SOLID, DOTTED, DASHED, DOUBLE, GROVE, RIDGE, INSET and OUTSET.- Parameters:
borderstyle-
-
getBorderRightStyle
String getBorderRightStyle()Get the right border style. Valid styles are NONE, SOLID, DOTTED, DASHED, DOUBLE, GROVE, RIDGE, INSET and OUTSET.- Returns:
- Return the right border style.
-
setBorderRightStyle
Set the right border style. Valid styles are NONE, SOLID, DOTTED, DASHED, DOUBLE, GROVE, RIDGE, INSET and OUTSET.- Parameters:
borderstyle-
-
getBorderBottomWidth
-
setBorderBottomWidth
-
getBorderTopWidth
-
setBorderTopWidth
-
getBorderLeftWidth
-
setBorderLeftWidth
-
getBorderRightWidth
-
setBorderRightWidth
-
getMarginBottom
-
setMarginBottom
-
getMarginTop
-
setMarginTop
-
getMarginLeft
-
setMarginLeft
-
getMarginRight
-
setMarginRight
-
getPaddingBottom
-
setPaddingBottom
-
getPaddingTop
-
setPaddingTop
-
getPaddingLeft
-
setPaddingLeft
-
getPaddingRight
-
setPaddingRight
-
getDisplay
String getDisplay()Get the display type (valid types are BLOCK, INLINE and NONE)- Returns:
- Return the display type (valid types are BLOCK, INLINE and NONE)
-
setDisplay
Set the display type (valid types are BLOCK, INLINE and NONE)- Parameters:
display-
-
getMasterPage
-
setMasterPage
-
getPageBreakBefore
-
setPageBreakBefore
-
getPageBreakAfter
-
setPageBreakAfter
-
getPageBreakInside
-
setPageBreakInside
-
getShowIfBlank
-
setShowIfBlank
-
getCanShrink
-
setCanShrink
-
getNumberFormat
-
setNumberFormat
-
getNumberLocale
-
setNumberLocale
-
getDateFormat
-
setDateFormat
-
getDateLocale
-
setDateLocale
-
getStringFormat
-
setStringFormat
-
getStringLocale
-
setStringLocale
-
getFontFamily
-
setFontFamily
-
getFontStyle
-
setFontStyle
-
getFontVariant
-
setFontVariant
-
getFontWeight
-
setFontWeight
-
getFontSize
-
setFontSize
-
getTextUnderline
-
setTextUnderline
Set the text underline- Parameters:
underline-- Throws:
ScriptException
-
getTextOverline
-
setTextOverline
Set the text overline- Parameters:
overline-- Throws:
ScriptException
-
getTextLineThrough
-
setTextLineThrough
Set the text line through- Parameters:
through-- Throws:
ScriptException
-
getTextHyperlinkStyle
-
setTextHyperlinkStyle
Set the text hyperlink style- Parameters:
hyperlinkStyle-- Throws:
ScriptException
-
getBackgroundPositionX
String getBackgroundPositionX()Get the X (horizontal) position of the background image- Returns:
- Return the X (horizontal) position of the background image
-
setBackgroundPositionX
Set the X (horizontal) position of the background image- Parameters:
x-- Throws:
ScriptException
-
getBackgroundPositionY
String getBackgroundPositionY()Get the Y (vertical) position of the background image- Returns:
- Return the Y (vertical) position of the background image
-
setBackgroundPositionY
Set the Y (vertical) position of the background image- Parameters:
y-- Throws:
ScriptException
-
getDiagonalNumber
int getDiagonalNumber()Get the diagonal line number- Returns:
- Return the diagonal line number
-
setDiagonalNumber
void setDiagonalNumber(int number) Set the diagonal line number- Parameters:
number-
-
getDiagonalColor
-
setDiagonalColor
-
getDiagonalStyle
-
setDiagonalStyle
-
getDiagonalWidth
-
setDiagonalWidth
-
getAntidiagonalNumber
int getAntidiagonalNumber()Get the antidiagonal line number- Returns:
- Return the antidiagonal line number
-
setAntidiagonalNumber
void setAntidiagonalNumber(int number) Set the antidiagonal line number- Parameters:
number-
-
getAntidiagonalColor
-
setAntidiagonalColor
-
getAntidiagonalStyle
-
setAntidiagonalStyle
-
getAntidiagonalWidth
-
setAntidiagonalWidth
-