Package com.github.weisj.jsvg.renderer
Class FontRenderContext
- java.lang.Object
-
- com.github.weisj.jsvg.renderer.FontRenderContext
-
@Immutable public final class FontRenderContext extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private @Nullable DominantBaseline
dominantBaseline
private @Nullable Length
letterSpacing
private @Nullable TextAnchor
textAnchor
-
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 FontRenderContext
createDefault()
@NotNull FontRenderContext
derive(@Nullable FontRenderContext frc)
@NotNull DominantBaseline
dominantBaseline()
boolean
equals(java.lang.Object o)
int
hashCode()
@NotNull Length
letterSpacing()
static @NotNull FontRenderContext
parse(@NotNull AttributeNode attributeNode)
@NotNull TextAnchor
textAnchor()
java.lang.String
toString()
-
-
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in 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:
toString
in classjava.lang.Object
-
-