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 void
applyTo(@NotNull 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(@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 Color
getDropShadowColor()
float
getDropShadowRadius()
float
getDropShadowXOffset()
float
getDropShadowYOffset()
@NotNull Color
getFillColor()
@NotNull FillRule
getFillRule()
@NotNull java.lang.String
getFontFamily()
float
getFontLineHeight()
float
getFontSize()
@NotNull java.lang.String
getFontStyle()
@NotNull java.lang.String
getFontVariant()
int
getFontWeight()
@NotNull Color
getStrokeColor()
@org.jetbrains.annotations.Nullable float[]
getStrokeDashArray()
float
getStrokeDashOffset()
@NotNull LineCap
getStrokeLineCap()
@NotNull LineJoin
getStrokeLineJoin()
float
getStrokeMiterLimit()
float
getStrokeWidth()
int
hashCode()
void
setDropShadowColor(@NotNull Color dropShadowColor)
void
setDropShadowRadius(float dropShadowRadius)
void
setDropShadowXOffset(float dropShadowXOffset)
void
setDropShadowYOffset(float dropShadowYOffset)
void
setFillColor(@NotNull Color fillColor)
void
setFillRule(@NotNull FillRule fillRule)
void
setFontFamily(@NotNull java.lang.String fontFamily)
void
setFontLineHeight(float fontLineHeight)
void
setFontSize(float fontSize)
void
setFontStyle(@NotNull java.lang.String fontStyle)
void
setFontVariant(@NotNull java.lang.String fontVariant)
void
setFontWeight(int fontWeight)
void
setStrokeColor(@NotNull Color strokeColor)
void
setStrokeDashArray(@org.jetbrains.annotations.Nullable float[] strokeDashArray)
void
setStrokeDashOffset(float strokeDashOffset)
void
setStrokeLineCap(@NotNull LineCap strokeLineCap)
void
setStrokeLineJoin(@NotNull LineJoin strokeLineJoin)
void
setStrokeMiterLimit(float strokeMiterLimit)
void
setStrokeWidth(float strokeWidth)
@NotNull java.lang.String
toString()
-
-
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-