Module com.github.weisj.jsvg
Class FontRenderContext
- java.lang.Object
-
- com.github.weisj.jsvg.renderer.impl.context.FontRenderContext
-
public final class FontRenderContext extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private @Nullable DominantBaselinedominantBaselineprivate @Nullable LengthletterSpacingprivate @Nullable TextAnchortextAnchor
-
Constructor Summary
Constructors Constructor Description FontRenderContext(@Nullable Length letterSpacing, @Nullable DominantBaseline dominantBaseline, @Nullable TextAnchor textAnchor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @NotNull FontRenderContextcreateDefault()@NotNull FontRenderContextderive(@Nullable FontRenderContext frc)@NotNull DominantBaselinedominantBaseline()booleanequals(java.lang.Object o)inthashCode()@NotNull LengthletterSpacing()static @NotNull FontRenderContextparse(@NotNull AttributeNode attributeNode)@NotNull TextAnchortextAnchor()java.lang.StringtoString()
-
-
-
Field Detail
-
letterSpacing
@Nullable private final @Nullable Length letterSpacing
-
dominantBaseline
@Nullable private final @Nullable DominantBaseline dominantBaseline
-
textAnchor
@Nullable private final @Nullable TextAnchor textAnchor
-
-
Constructor Detail
-
FontRenderContext
public FontRenderContext(@Nullable @Nullable Length letterSpacing, @Nullable @Nullable DominantBaseline dominantBaseline, @Nullable @Nullable TextAnchor textAnchor)
-
-
Method Detail
-
letterSpacing
@NotNull public @NotNull Length letterSpacing()
-
textAnchor
@NotNull public @NotNull TextAnchor textAnchor()
-
dominantBaseline
@NotNull public @NotNull DominantBaseline dominantBaseline()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
createDefault
@NotNull public static @NotNull FontRenderContext createDefault()
-
parse
@NotNull public static @NotNull FontRenderContext parse(@NotNull @NotNull AttributeNode attributeNode)
-
derive
@NotNull public @NotNull FontRenderContext derive(@Nullable @Nullable FontRenderContext frc)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-