Class Style


  • public class Style
    extends java.lang.Object
    • 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 to clearChangeFlags().
        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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        @NotNull
        public @NotNull java.lang.String toString()
        Overrides:
        toString in class java.lang.Object