public class Style extends java.lang.Object implements IStyle, com.mindfusion.common.Equatable<Style>, INotifyPropertyValueChanged
IStyle implementation.| Constructor and Description |
|---|
Style(Worksheet worksheet) |
Style(Worksheet worksheet,
IStyle prototype) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangedListener(java.beans.PropertyChangeListener listener)
Registers listener so that it will receive events from the style.
|
java.lang.Object |
clone() |
Style |
clone(Worksheet worksheet) |
boolean |
equals(java.lang.Object obj) |
Brush |
getBackground()
Gets the background.
|
Brush |
getBarBrush()
Gets the brush used to draw data bars.
|
java.awt.Color |
getBorderBottomColor()
Gets the color of the bottom border.
|
Measure |
getBorderBottomSize()
Gets the thickness of the bottom border.
|
DashStyle |
getBorderBottomStyle()
Gets the style of the bottom border.
|
java.awt.Color |
getBorderLeftColor()
Gets the color of the left border.
|
Measure |
getBorderLeftSize()
Gets the thickness of the left border.
|
DashStyle |
getBorderLeftStyle()
Gets the style of the left border.
|
java.awt.Color |
getBorderRightColor()
Gets the color of the right border.
|
Measure |
getBorderRightSize()
Gets the thickness of the right border.
|
DashStyle |
getBorderRightStyle()
Gets the style of the right border.
|
java.awt.Color |
getBorderTopColor()
Gets the color of the top border.
|
Measure |
getBorderTopSize()
Gets the thickness of the top border.
|
DashStyle |
getBorderTopStyle()
Gets the style of the top border.
|
IConditionalFormatCollection |
getConditionalFormats()
Gets a list of conditional formats associated with this style.
|
static Style |
getDefaultStyle() |
java.lang.Boolean |
getDrawDataBars()
Gets a value indicating whether to draw data bars.
|
java.lang.Boolean |
getFontBold()
Gets a value indicating whether the element's text is bold.
|
java.lang.Boolean |
getFontDoubleUnderline()
Gets a value indicating whether the element's text is double underlined.
|
java.lang.Boolean |
getFontItalic()
Gets a value indicating whether the element's text is italic.
|
java.lang.String |
getFontName()
Gets the name of the font of the element's text.
|
java.lang.Double |
getFontSize()
Gets the size of the font of the element's text.
|
java.lang.Boolean |
getFontStrikeout()
Gets a value indicating whether the element's text is with a line through the middle.
|
int |
getFontStyle() |
java.lang.Boolean |
getFontUnderline()
Gets a value indicating whether the element's text is underlined.
|
java.lang.String |
getFormat()
Gets the format of the element's contents.
|
HorizontalAlignment |
getHorizontalAlignment()
Gets the horizontal alignment of the element's contents.
|
int |
getId()
Gets the style identifier.
|
Measure |
getIndent()
Gets the indentation of the element's text.
|
java.lang.String |
getName() |
Measure |
getPaddingBottom()
Gets the bottom padding of the element's contents.
|
Measure |
getPaddingLeft()
Gets the left padding of the element's contents.
|
Measure |
getPaddingRight()
Gets the right padding of the element's contents.
|
Measure |
getPaddingTop()
Gets the top padding of the element's contents.
|
java.awt.Color |
getPrimaryDiagonalColor()
Gets the color of the primary diagonal.
|
Measure |
getPrimaryDiagonalSize()
Gets the thickness of the primary diagonal.
|
DashStyle |
getPrimaryDiagonalStyle()
Gets the style of the primary diagonal.
|
Rotate |
getRotation()
Gets the orientation of the element's contents.
|
java.awt.Color |
getSecondaryDiagonalColor()
Gets the color of the secondary diagonal.
|
Measure |
getSecondaryDiagonalSize()
Gets the thickness of the secondary diagonal.
|
DashStyle |
getSecondaryDiagonalStyle()
Gets the style of the secondary diagonal.
|
java.awt.Rectangle |
getTargetRect() |
java.awt.Color |
getTextColor()
Gets the color of the element's text.
|
IValidation |
getValidation()
Gets an object that can be used to specify validation rules.
|
VerticalAlignment |
getVerticalAlignment()
Gets the vertical alignment of the element's contents.
|
Worksheet |
getWorksheet()
Gets the worksheet this style is associated with.
|
java.lang.Boolean |
getWrapText()
Gets a value indicating whether to wrap the element's text.
|
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isEqualTo(Style other) |
protected void |
onPropertyValueChanged(java.beans.PropertyChangeEvent e) |
protected void |
raisePropertyValueChanged(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Raises the
propertyChange event. |
void |
removePropertyChangedListener(java.beans.PropertyChangeListener listener)
Unregisters listener so that it will no longer receive style events.
|
void |
reset()
Resets the style to the default style.
|
void |
resetConditionalFormats()
Resets the conditional formats associated with this style.
|
void |
resetValidation()
Resets the validation associated with this style to the default validation.
|
void |
resumeEvents() |
void |
setBackground(Brush value)
Sets the background.
|
void |
setBarBrush(Brush value)
Sets the brush used to draw data bars.
|
void |
setBorderBottomColor(java.awt.Color value)
Sets the color of the bottom border.
|
void |
setBorderBottomSize(Measure value)
Sets the thickness of the bottom border.
|
void |
setBorderBottomStyle(DashStyle value)
Sets the style of the bottom border.
|
void |
setBorderLeftColor(java.awt.Color value)
Sets the color of the left border.
|
void |
setBorderLeftSize(Measure value)
Sets the thickness of the left border.
|
void |
setBorderLeftStyle(DashStyle value)
Sets the style of the left border.
|
void |
setBorderRightColor(java.awt.Color value)
Sets the color of the right border.
|
void |
setBorderRightSize(Measure value)
Sets the thickness of the right border.
|
void |
setBorderRightStyle(DashStyle value)
Sets the style of the right border.
|
void |
setBorderTopColor(java.awt.Color value)
Sets the color of the top border.
|
void |
setBorderTopSize(Measure value)
Sets the thickness of the top border.
|
void |
setBorderTopStyle(DashStyle value)
Sets the style of the top border.
|
void |
setFontBold(java.lang.Boolean value)
Sets a value indicating whether the element's text is bold.
|
void |
setFontDoubleUnderline(java.lang.Boolean value)
Sets a value indicating whether the element's text is underlined.
|
void |
setFontItalic(java.lang.Boolean value)
Sets a value indicating whether the element's text is italic.
|
void |
setFontName(java.lang.String value)
Sets the name of the font of the element's text.
|
void |
setFontSize(java.lang.Double value)
Sets the size of the font of the element's text.
|
void |
setFontStrikeout(java.lang.Boolean value)
Sets a value indicating whether the element's text is with a line through the middle.
|
void |
setFontUnderline(java.lang.Boolean value)
Sets a value indicating whether the element's text is underlined.
|
void |
setFormat(java.lang.String value)
Sets the format of the element's contents.
|
void |
setHorizontalAlignment(HorizontalAlignment value)
Sets the horizontal alignment of the element's contents.
|
void |
setId(int value)
Sets the style identifier.
|
void |
setIndent(Measure value)
Sets the indentation of the element's text.
|
void |
setName(java.lang.String value) |
void |
setPaddingBottom(Measure value)
Sets the bottom padding of the element's contents.
|
void |
setPaddingLeft(Measure value)
Sets the left padding of the element's contents.
|
void |
setPaddingRight(Measure value)
Sets the right padding of the element's contents.
|
void |
setPaddingTop(Measure value)
Sets the top padding of the element's contents.
|
void |
setPrimaryDiagonalColor(java.awt.Color value)
Sets the color of the primary diagonal.
|
void |
setPrimaryDiagonalSize(Measure value)
Sets the thickness of the primary diagonal.
|
void |
setPrimaryDiagonalStyle(DashStyle value)
Sets the style of the primary diagonal.
|
void |
setRotation(Rotate rotation)
Sets the orientation of the element's contents
|
void |
setSecondaryDiagonalColor(java.awt.Color value)
Sets the color of the secondary diagonal.
|
void |
setSecondaryDiagonalSize(Measure value)
Sets the thickness of the secondary diagonal.
|
void |
setSecondaryDiagonalStyle(DashStyle value)
Sets the style of the secondary diagonal.
|
void |
setTextColor(java.awt.Color value)
Sets the color of the element's text.
|
void |
setValidation(IValidation value) |
void |
setVerticalAlignment(VerticalAlignment value)
Sets the vertical alignment of the element's contents.
|
void |
setWrapText(java.lang.Boolean value)
Sets a value indicating whether to wrap the element's text.
|
void |
suspendEvents() |
public Style(Worksheet worksheet)
public static Style getDefaultStyle()
public void addPropertyChangedListener(java.beans.PropertyChangeListener listener)
addPropertyChangedListener in interface INotifyPropertyValueChangedlistener - An object implementing the PropertyChangeListener interface.public void removePropertyChangedListener(java.beans.PropertyChangeListener listener)
removePropertyChangedListener in interface INotifyPropertyValueChangedlistener - An object implementing the PropertyChangeListener interface.public java.lang.Object clone()
clone in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean isEqualTo(Style other)
isEqualTo in interface com.mindfusion.common.Equatable<Style>public boolean isEmpty()
public void reset()
IStylepublic void resetValidation()
IStyleresetValidation in interface IStylepublic void resetConditionalFormats()
IStyleresetConditionalFormats in interface IStylepublic Brush getBarBrush()
IStylegetBarBrush in interface IStylepublic void setBarBrush(Brush value)
IStylesetBarBrush in interface IStylevalue - A Brush instance.public java.awt.Rectangle getTargetRect()
getTargetRect in interface IStylepublic java.lang.Boolean getDrawDataBars()
IStylegetDrawDataBars in interface IStyleprotected void onPropertyValueChanged(java.beans.PropertyChangeEvent e)
protected void raisePropertyValueChanged(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
propertyChange event.public void suspendEvents()
public void resumeEvents()
public Worksheet getWorksheet()
IStylegetWorksheet in interface IStylepublic java.lang.String getName()
public void setName(java.lang.String value)
public int getId()
IStylepublic void setId(int value)
IStylepublic Brush getBackground()
IStylegetBackground in interface IStylepublic void setBackground(Brush value)
IStylesetBackground in interface IStylepublic java.awt.Color getBorderLeftColor()
IStylegetBorderLeftColor in interface IStylepublic void setBorderLeftColor(java.awt.Color value)
IStylesetBorderLeftColor in interface IStylepublic Measure getBorderLeftSize()
IStylegetBorderLeftSize in interface IStylepublic void setBorderLeftSize(Measure value)
IStylesetBorderLeftSize in interface IStylepublic DashStyle getBorderLeftStyle()
IStylegetBorderLeftStyle in interface IStylepublic void setBorderLeftStyle(DashStyle value)
IStylesetBorderLeftStyle in interface IStylepublic java.awt.Color getBorderTopColor()
IStylegetBorderTopColor in interface IStylepublic void setBorderTopColor(java.awt.Color value)
IStylesetBorderTopColor in interface IStylepublic Measure getBorderTopSize()
IStylegetBorderTopSize in interface IStylepublic void setBorderTopSize(Measure value)
IStylesetBorderTopSize in interface IStylepublic DashStyle getBorderTopStyle()
IStylegetBorderTopStyle in interface IStylepublic void setBorderTopStyle(DashStyle value)
IStylesetBorderTopStyle in interface IStylepublic java.awt.Color getBorderRightColor()
IStylegetBorderRightColor in interface IStylepublic void setBorderRightColor(java.awt.Color value)
IStylesetBorderRightColor in interface IStylepublic Measure getBorderRightSize()
IStylegetBorderRightSize in interface IStylepublic void setBorderRightSize(Measure value)
IStylesetBorderRightSize in interface IStylepublic DashStyle getBorderRightStyle()
IStylegetBorderRightStyle in interface IStylepublic void setBorderRightStyle(DashStyle value)
IStylesetBorderRightStyle in interface IStylepublic java.awt.Color getBorderBottomColor()
IStylegetBorderBottomColor in interface IStylepublic void setBorderBottomColor(java.awt.Color value)
IStylesetBorderBottomColor in interface IStylepublic Measure getBorderBottomSize()
IStylegetBorderBottomSize in interface IStylepublic void setBorderBottomSize(Measure value)
IStylesetBorderBottomSize in interface IStylepublic DashStyle getBorderBottomStyle()
IStylegetBorderBottomStyle in interface IStylepublic void setBorderBottomStyle(DashStyle value)
IStylesetBorderBottomStyle in interface IStylepublic java.awt.Color getPrimaryDiagonalColor()
IStylegetPrimaryDiagonalColor in interface IStylepublic void setPrimaryDiagonalColor(java.awt.Color value)
IStylesetPrimaryDiagonalColor in interface IStylepublic Measure getPrimaryDiagonalSize()
IStylegetPrimaryDiagonalSize in interface IStylepublic void setPrimaryDiagonalSize(Measure value)
IStylesetPrimaryDiagonalSize in interface IStylepublic DashStyle getPrimaryDiagonalStyle()
IStylegetPrimaryDiagonalStyle in interface IStylepublic void setPrimaryDiagonalStyle(DashStyle value)
IStylesetPrimaryDiagonalStyle in interface IStylepublic java.awt.Color getSecondaryDiagonalColor()
IStylegetSecondaryDiagonalColor in interface IStylepublic void setSecondaryDiagonalColor(java.awt.Color value)
IStylesetSecondaryDiagonalColor in interface IStylepublic Measure getSecondaryDiagonalSize()
IStylegetSecondaryDiagonalSize in interface IStylepublic void setSecondaryDiagonalSize(Measure value)
IStylesetSecondaryDiagonalSize in interface IStylepublic DashStyle getSecondaryDiagonalStyle()
IStylegetSecondaryDiagonalStyle in interface IStylepublic void setSecondaryDiagonalStyle(DashStyle value)
IStylesetSecondaryDiagonalStyle in interface IStylepublic java.lang.String getFormat()
IStylepublic void setFormat(java.lang.String value)
IStylepublic java.lang.String getFontName()
IStylegetFontName in interface IStylepublic void setFontName(java.lang.String value)
IStylesetFontName in interface IStylepublic java.lang.Double getFontSize()
IStylegetFontSize in interface IStylepublic void setFontSize(java.lang.Double value)
IStylesetFontSize in interface IStylepublic int getFontStyle()
public java.lang.Boolean getFontBold()
IStylegetFontBold in interface IStylepublic void setFontBold(java.lang.Boolean value)
IStylesetFontBold in interface IStylepublic java.lang.Boolean getFontItalic()
IStylegetFontItalic in interface IStylepublic void setFontItalic(java.lang.Boolean value)
IStylesetFontItalic in interface IStylepublic java.lang.Boolean getFontUnderline()
IStylegetFontUnderline in interface IStylepublic void setFontUnderline(java.lang.Boolean value)
IStylesetFontUnderline in interface IStylepublic java.lang.Boolean getFontDoubleUnderline()
IStylegetFontDoubleUnderline in interface IStylepublic void setFontDoubleUnderline(java.lang.Boolean value)
IStylesetFontDoubleUnderline in interface IStylepublic java.lang.Boolean getFontStrikeout()
IStylegetFontStrikeout in interface IStylepublic void setFontStrikeout(java.lang.Boolean value)
IStylesetFontStrikeout in interface IStylepublic java.awt.Color getTextColor()
IStylegetTextColor in interface IStylepublic void setTextColor(java.awt.Color value)
IStylesetTextColor in interface IStylepublic HorizontalAlignment getHorizontalAlignment()
IStylegetHorizontalAlignment in interface IStylepublic void setHorizontalAlignment(HorizontalAlignment value)
IStylesetHorizontalAlignment in interface IStylepublic VerticalAlignment getVerticalAlignment()
IStylegetVerticalAlignment in interface IStylepublic void setVerticalAlignment(VerticalAlignment value)
IStylesetVerticalAlignment in interface IStylepublic Rotate getRotation()
IStylegetRotation in interface IStylepublic void setRotation(Rotate rotation)
IStylesetRotation in interface IStylepublic java.lang.Boolean getWrapText()
IStylegetWrapText in interface IStylepublic void setWrapText(java.lang.Boolean value)
IStylesetWrapText in interface IStylepublic Measure getIndent()
IStylepublic void setIndent(Measure value)
IStylepublic Measure getPaddingLeft()
IStylegetPaddingLeft in interface IStylepublic void setPaddingLeft(Measure value)
IStylesetPaddingLeft in interface IStylepublic Measure getPaddingTop()
IStylegetPaddingTop in interface IStylepublic void setPaddingTop(Measure value)
IStylesetPaddingTop in interface IStylepublic Measure getPaddingRight()
IStylegetPaddingRight in interface IStylepublic void setPaddingRight(Measure value)
IStylesetPaddingRight in interface IStylepublic Measure getPaddingBottom()
IStylegetPaddingBottom in interface IStylepublic void setPaddingBottom(Measure value)
IStylesetPaddingBottom in interface IStylepublic IValidation getValidation()
IStylegetValidation in interface IStylepublic void setValidation(IValidation value)
public IConditionalFormatCollection getConditionalFormats()
IStylegetConditionalFormats in interface IStyle