public class AttributesFlyweight
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static AttributesFlyweight |
create(java.awt.Color foreground,
java.awt.Color background,
int fontType,
java.awt.Color effectColor,
EffectType effectType,
java.awt.Color errorStripeColor) |
static AttributesFlyweight |
create(java.awt.Color foreground,
java.awt.Color background,
int fontType,
java.awt.Color effectColor,
EffectType effectType,
java.util.Map<EffectType,java.awt.Color> additionalEffects,
java.awt.Color errorStripeColor) |
static AttributesFlyweight |
create(Element element) |
boolean |
equals(java.lang.Object o) |
java.awt.Color |
getBackground() |
java.awt.Color |
getEffectColor() |
EffectType |
getEffectType() |
java.awt.Color |
getErrorStripeColor() |
int |
getFontType() |
java.awt.Color |
getForeground() |
boolean |
hasEffects() |
int |
hashCode() |
java.lang.String |
toString() |
AttributesFlyweight |
withAdditionalEffects(java.util.Map<EffectType,java.awt.Color> additionalEffects) |
AttributesFlyweight |
withBackground(java.awt.Color background) |
AttributesFlyweight |
withEffectColor(java.awt.Color effectColor) |
AttributesFlyweight |
withEffectType(EffectType effectType) |
AttributesFlyweight |
withErrorStripeColor(java.awt.Color stripeColor) |
AttributesFlyweight |
withFontType(int fontType) |
AttributesFlyweight |
withForeground(java.awt.Color foreground) |
public static AttributesFlyweight create(java.awt.Color foreground, java.awt.Color background, int fontType, java.awt.Color effectColor, EffectType effectType, java.awt.Color errorStripeColor)
public static AttributesFlyweight create(java.awt.Color foreground, java.awt.Color background, int fontType, java.awt.Color effectColor, EffectType effectType, java.util.Map<EffectType,java.awt.Color> additionalEffects, java.awt.Color errorStripeColor)
public static AttributesFlyweight create(Element element) throws InvalidDataException
InvalidDataException
public java.awt.Color getForeground()
public java.awt.Color getBackground()
public int getFontType()
public java.awt.Color getEffectColor()
public EffectType getEffectType()
public boolean hasEffects()
public java.awt.Color getErrorStripeColor()
public AttributesFlyweight withForeground(java.awt.Color foreground)
public AttributesFlyweight withBackground(java.awt.Color background)
public AttributesFlyweight withFontType(int fontType)
public AttributesFlyweight withEffectColor(java.awt.Color effectColor)
public AttributesFlyweight withEffectType(EffectType effectType)
public AttributesFlyweight withErrorStripeColor(java.awt.Color stripeColor)
public AttributesFlyweight withAdditionalEffects(java.util.Map<EffectType,java.awt.Color> additionalEffects)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object