Class DecorationStyle
- java.lang.Object
-
- io.github.humbleui.skija.paragraph.DecorationStyle
-
public class DecorationStyle extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description int_colorboolean_gapsDecorationLineStyle_lineStyleboolean_lineThroughboolean_overlinefloat_thicknessMultiplierboolean_underlinestatic DecorationStyleNONE
-
Constructor Summary
Constructors Constructor Description DecorationStyle(boolean underline, boolean overline, boolean lineThrough, boolean gaps, int color, int lineStyle, float thicknessMultiplier)DecorationStyle(boolean underline, boolean overline, boolean lineThrough, boolean gaps, int color, DecorationLineStyle lineStyle, float thicknessMultiplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)intgetColor()DecorationLineStylegetLineStyle()floatgetThicknessMultiplier()booleanhasGaps()inthashCode()booleanhasLineThrough()booleanhasOverline()booleanhasUnderline()java.lang.StringtoString()DecorationStylewithColor(int _color)DecorationStylewithGaps(boolean _gaps)DecorationStylewithLineStyle(DecorationLineStyle _lineStyle)DecorationStylewithLineThrough(boolean _lineThrough)DecorationStylewithOverline(boolean _overline)DecorationStylewithThicknessMultiplier(float _thicknessMultiplier)DecorationStylewithUnderline(boolean _underline)
-
-
-
Field Detail
-
NONE
public static final DecorationStyle NONE
-
_underline
public final boolean _underline
-
_overline
public final boolean _overline
-
_lineThrough
public final boolean _lineThrough
-
_gaps
public final boolean _gaps
-
_color
public final int _color
-
_lineStyle
public final DecorationLineStyle _lineStyle
-
_thicknessMultiplier
public final float _thicknessMultiplier
-
-
Constructor Detail
-
DecorationStyle
@Internal public DecorationStyle(boolean underline, boolean overline, boolean lineThrough, boolean gaps, int color, int lineStyle, float thicknessMultiplier)
-
DecorationStyle
public DecorationStyle(boolean underline, boolean overline, boolean lineThrough, boolean gaps, int color, DecorationLineStyle lineStyle, float thicknessMultiplier)
-
-
Method Detail
-
hasUnderline
public boolean hasUnderline()
-
hasOverline
public boolean hasOverline()
-
hasLineThrough
public boolean hasLineThrough()
-
hasGaps
public boolean hasGaps()
-
getColor
public int getColor()
-
getLineStyle
public DecorationLineStyle getLineStyle()
-
getThicknessMultiplier
public float getThicknessMultiplier()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
withUnderline
public DecorationStyle withUnderline(boolean _underline)
- Returns:
this.
-
withOverline
public DecorationStyle withOverline(boolean _overline)
- Returns:
this.
-
withLineThrough
public DecorationStyle withLineThrough(boolean _lineThrough)
- Returns:
this.
-
withGaps
public DecorationStyle withGaps(boolean _gaps)
- Returns:
this.
-
withColor
public DecorationStyle withColor(int _color)
- Returns:
this.
-
withLineStyle
public DecorationStyle withLineStyle(DecorationLineStyle _lineStyle)
- Returns:
this.
-
withThicknessMultiplier
public DecorationStyle withThicknessMultiplier(float _thicknessMultiplier)
- Returns:
this.
-
-