Package com.myscript.iink.graphics
Class Style
- java.lang.Object
-
- com.myscript.iink.graphics.Style
-
public class Style extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyTo(@NotNull ICanvas canvas)Apply changed style attributes to the specified target canvas.voidclear()Reset all style attributes to their default values and clear the change flags.voidclearChangeFlags()Clears the change flags.booleanequals(@Nullable java.lang.Object obj)@NotNull java.util.EnumSet<StyleFlag>getChangeFlags()Returns the set of style attributes changed since construction or last call toclearChangeFlags().@NotNull ColorgetDropShadowColor()floatgetDropShadowRadius()floatgetDropShadowXOffset()floatgetDropShadowYOffset()@NotNull ColorgetFillColor()@NotNull FillRulegetFillRule()@NotNull java.lang.StringgetFontFamily()floatgetFontLineHeight()floatgetFontSize()@NotNull java.lang.StringgetFontStyle()@NotNull java.lang.StringgetFontVariant()intgetFontWeight()@NotNull ColorgetStrokeColor()@org.jetbrains.annotations.Nullable float[]getStrokeDashArray()floatgetStrokeDashOffset()@NotNull LineCapgetStrokeLineCap()@NotNull LineJoingetStrokeLineJoin()floatgetStrokeMiterLimit()floatgetStrokeWidth()inthashCode()voidsetDropShadowColor(@NotNull Color dropShadowColor)voidsetDropShadowRadius(float dropShadowRadius)voidsetDropShadowXOffset(float dropShadowXOffset)voidsetDropShadowYOffset(float dropShadowYOffset)voidsetFillColor(@NotNull Color fillColor)voidsetFillRule(@NotNull FillRule fillRule)voidsetFontFamily(@NotNull java.lang.String fontFamily)voidsetFontLineHeight(float fontLineHeight)voidsetFontSize(float fontSize)voidsetFontStyle(@NotNull java.lang.String fontStyle)voidsetFontVariant(@NotNull java.lang.String fontVariant)voidsetFontWeight(int fontWeight)voidsetStrokeColor(@NotNull Color strokeColor)voidsetStrokeDashArray(@org.jetbrains.annotations.Nullable float[] strokeDashArray)voidsetStrokeDashOffset(float strokeDashOffset)voidsetStrokeLineCap(@NotNull LineCap strokeLineCap)voidsetStrokeLineJoin(@NotNull LineJoin strokeLineJoin)voidsetStrokeMiterLimit(float strokeMiterLimit)voidsetStrokeWidth(float strokeWidth)@NotNull java.lang.StringtoString()
-
-
-
Constructor Detail
-
Style
public Style()
-
Style
public Style(@NotNull @NotNull Style other)
-
-
Method Detail
-
clear
public void clear()
Reset all style attributes to their default values and clear the change flags.
-
setStrokeColor
public void setStrokeColor(@NotNull @NotNull Color strokeColor)
-
getStrokeColor
@NotNull public @NotNull Color getStrokeColor()
-
setStrokeWidth
public void setStrokeWidth(float strokeWidth)
-
getStrokeWidth
public float getStrokeWidth()
-
setStrokeLineCap
public void setStrokeLineCap(@NotNull @NotNull LineCap strokeLineCap)
-
getStrokeLineCap
@NotNull public @NotNull LineCap getStrokeLineCap()
-
setStrokeLineJoin
public void setStrokeLineJoin(@NotNull @NotNull LineJoin strokeLineJoin)
-
getStrokeLineJoin
@NotNull public @NotNull LineJoin getStrokeLineJoin()
-
setStrokeMiterLimit
public void setStrokeMiterLimit(float strokeMiterLimit)
-
getStrokeMiterLimit
public float getStrokeMiterLimit()
-
setStrokeDashArray
public void setStrokeDashArray(@Nullable @org.jetbrains.annotations.Nullable float[] strokeDashArray)
-
getStrokeDashArray
@Nullable public @org.jetbrains.annotations.Nullable float[] getStrokeDashArray()
-
setStrokeDashOffset
public void setStrokeDashOffset(float strokeDashOffset)
-
getStrokeDashOffset
public float getStrokeDashOffset()
-
setFillColor
public void setFillColor(@NotNull @NotNull Color fillColor)
-
getFillColor
@NotNull public @NotNull Color getFillColor()
-
setFillRule
public void setFillRule(@NotNull @NotNull FillRule fillRule)
-
getFillRule
@NotNull public @NotNull FillRule getFillRule()
-
setFontFamily
public void setFontFamily(@NotNull @NotNull java.lang.String fontFamily)
-
getFontFamily
@NotNull public @NotNull java.lang.String getFontFamily()
-
setFontLineHeight
public void setFontLineHeight(float fontLineHeight)
-
getFontLineHeight
public float getFontLineHeight()
-
setFontSize
public void setFontSize(float fontSize)
-
getFontSize
public float getFontSize()
-
setFontStyle
public void setFontStyle(@NotNull @NotNull java.lang.String fontStyle)
-
getFontStyle
@NotNull public @NotNull java.lang.String getFontStyle()
-
setFontVariant
public void setFontVariant(@NotNull @NotNull java.lang.String fontVariant)
-
getFontVariant
@NotNull public @NotNull java.lang.String getFontVariant()
-
setFontWeight
public void setFontWeight(int fontWeight)
-
getFontWeight
public int getFontWeight()
-
setDropShadowXOffset
public void setDropShadowXOffset(float dropShadowXOffset)
-
getDropShadowXOffset
public float getDropShadowXOffset()
-
setDropShadowYOffset
public void setDropShadowYOffset(float dropShadowYOffset)
-
getDropShadowYOffset
public float getDropShadowYOffset()
-
setDropShadowRadius
public void setDropShadowRadius(float dropShadowRadius)
-
getDropShadowRadius
public float getDropShadowRadius()
-
setDropShadowColor
public void setDropShadowColor(@NotNull @NotNull Color dropShadowColor)
-
getDropShadowColor
@NotNull public @NotNull Color getDropShadowColor()
-
getChangeFlags
@NotNull public @NotNull java.util.EnumSet<StyleFlag> getChangeFlags()
Returns the set of style attributes changed since construction or last call toclearChangeFlags().- Returns:
- the set of style flags.
-
clearChangeFlags
public void clearChangeFlags()
Clears the change flags.
-
applyTo
public void applyTo(@NotNull @NotNull ICanvas canvas)Apply changed style attributes to the specified target canvas.- Parameters:
canvas- the target canvas.- See Also:
getChangeFlags()
-
equals
public boolean equals(@Nullable @Nullable java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-