public class Style
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.EnumSet<StyleFlag> |
changeFlags |
protected Color |
fillColor |
protected FillRule |
fillRule |
protected java.lang.String |
fontFamily |
protected float |
fontLineHeight |
protected float |
fontSize |
protected java.lang.String |
fontStyle |
protected java.lang.String |
fontVariant |
protected int |
fontWeight |
protected Color |
strokeColor |
protected float[] |
strokeDashArray |
protected float |
strokeDashOffset |
protected LineCap |
strokeLineCap |
protected LineJoin |
strokeLineJoin |
protected float |
strokeMiterLimit |
protected float |
strokeWidth |
Modifier and Type | Method and Description |
---|---|
void |
applyTo(ICanvas canvas)
Apply changed style attributes to the specified target canvas.
|
void |
clear()
Reset all style attributes to their default values and clear the change flags.
|
void |
clearChangeFlags()
Clears the change flags.
|
boolean |
equals(java.lang.Object obj) |
java.util.EnumSet<StyleFlag> |
getChangeFlags()
Returns the set of style attributes changed since construction or last call
to
clearChangeFlags() . |
Color |
getFillColor() |
FillRule |
getFillRule() |
java.lang.String |
getFontFamily() |
float |
getFontLineHeight() |
float |
getFontSize() |
java.lang.String |
getFontStyle() |
java.lang.String |
getFontVariant() |
int |
getFontWeight() |
Color |
getStrokeColor() |
float[] |
getStrokeDashArray() |
float |
getStrokeDashOffset() |
LineCap |
getStrokeLineCap() |
LineJoin |
getStrokeLineJoin() |
float |
getStrokeMiterLimit() |
float |
getStrokeWidth() |
int |
hashCode() |
void |
setFillColor(Color fillColor) |
void |
setFillRule(FillRule fillRule) |
void |
setFontFamily(java.lang.String fontFamily) |
void |
setFontLineHeight(float fontLineHeight) |
void |
setFontSize(float fontSize) |
void |
setFontStyle(java.lang.String fontStyle) |
void |
setFontVariant(java.lang.String fontVariant) |
void |
setFontWeight(int fontWeight) |
void |
setStrokeColor(Color strokeColor) |
void |
setStrokeDashArray(float[] strokeDashArray) |
void |
setStrokeDashOffset(float strokeDashOffset) |
void |
setStrokeLineCap(LineCap strokeLineCap) |
void |
setStrokeLineJoin(LineJoin strokeLineJoin) |
void |
setStrokeMiterLimit(float strokeMiterLimit) |
void |
setStrokeWidth(float strokeWidth) |
java.lang.String |
toString() |
protected Color strokeColor
protected float strokeWidth
protected LineCap strokeLineCap
protected LineJoin strokeLineJoin
protected float strokeMiterLimit
protected float[] strokeDashArray
protected float strokeDashOffset
protected Color fillColor
protected FillRule fillRule
protected java.lang.String fontFamily
protected float fontLineHeight
protected float fontSize
protected java.lang.String fontStyle
protected java.lang.String fontVariant
protected int fontWeight
protected java.util.EnumSet<StyleFlag> changeFlags
public Style()
public Style(Style other)
public void clear()
public void setStrokeColor(Color strokeColor)
public Color getStrokeColor()
public void setStrokeWidth(float strokeWidth)
public float getStrokeWidth()
public void setStrokeLineCap(LineCap strokeLineCap)
public LineCap getStrokeLineCap()
public void setStrokeLineJoin(LineJoin strokeLineJoin)
public LineJoin getStrokeLineJoin()
public void setStrokeMiterLimit(float strokeMiterLimit)
public float getStrokeMiterLimit()
public void setStrokeDashArray(float[] strokeDashArray)
public float[] getStrokeDashArray()
public void setStrokeDashOffset(float strokeDashOffset)
public float getStrokeDashOffset()
public void setFillColor(Color fillColor)
public Color getFillColor()
public void setFillRule(FillRule fillRule)
public FillRule getFillRule()
public void setFontFamily(java.lang.String fontFamily)
public java.lang.String getFontFamily()
public void setFontLineHeight(float fontLineHeight)
public float getFontLineHeight()
public void setFontSize(float fontSize)
public float getFontSize()
public void setFontStyle(java.lang.String fontStyle)
public java.lang.String getFontStyle()
public void setFontVariant(java.lang.String fontVariant)
public java.lang.String getFontVariant()
public void setFontWeight(int fontWeight)
public int getFontWeight()
public java.util.EnumSet<StyleFlag> getChangeFlags()
clearChangeFlags()
.public void clearChangeFlags()
public void applyTo(ICanvas canvas)
canvas
- the target canvas.getChangeFlags()
public boolean equals(java.lang.Object obj)
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