Class AttributeFontSpec
- java.lang.Object
-
- com.github.weisj.jsvg.attributes.font.FontSpec
-
- com.github.weisj.jsvg.attributes.font.AttributeFontSpec
-
- All Implemented Interfaces:
Mutator<MeasurableFontSpec>
public final class AttributeFontSpec extends FontSpec implements Mutator<MeasurableFontSpec>
-
-
Field Summary
Fields Modifier and Type Field Description private @Nullable FontSize
size
private @Nullable FontWeight
weight
-
Fields inherited from class com.github.weisj.jsvg.attributes.font.FontSpec
families, sizeAdjust, stretch, style
-
-
Constructor Summary
Constructors Constructor Description AttributeFontSpec(@NotNull java.lang.String[] families, @Nullable FontStyle style, @Nullable Length sizeAdjust, float stretch, @Nullable FontSize size, @Nullable FontWeight weight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
hashCode()
@NotNull MeasurableFontSpec
mutate(@NotNull MeasurableFontSpec element)
@Nullable FontSize
size()
java.lang.String
toString()
@Nullable FontWeight
weight()
-
-
-
Field Detail
-
size
@Nullable private final @Nullable FontSize size
-
weight
@Nullable private final @Nullable FontWeight weight
-
-
Constructor Detail
-
AttributeFontSpec
AttributeFontSpec(@NotNull @NotNull java.lang.String[] families, @Nullable @Nullable FontStyle style, @Nullable @Nullable Length sizeAdjust, float stretch, @Nullable @Nullable FontSize size, @Nullable @Nullable FontWeight weight)
-
-
Method Detail
-
weight
@Nullable public @Nullable FontWeight weight()
-
size
@Nullable public @Nullable FontSize size()
-
mutate
@NotNull public @NotNull MeasurableFontSpec mutate(@NotNull @NotNull MeasurableFontSpec element)
- Specified by:
mutate
in interfaceMutator<MeasurableFontSpec>
-
-