Module com.github.weisj.jsvg
Class HasContextImpl
- java.lang.Object
-
- com.github.weisj.jsvg.nodes.prototype.impl.HasContextImpl
-
- All Implemented Interfaces:
HasContext,HasFontContext,HasFontRenderContext,HasPaintContext
public final class HasContextImpl extends java.lang.Object implements HasContext
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.prototype.HasContext
HasContext.ByDelegate
-
-
Field Summary
Fields Modifier and Type Field Description private @NotNull FontRenderContextfontRenderContextprivate @NotNull AttributeFontSpecfontSpecprivate @NotNull PaintContextpaintContext
-
Constructor Summary
Constructors Modifier Constructor Description privateHasContextImpl(@NotNull PaintContext paintContext, @NotNull FontRenderContext fontRenderContext, @NotNull AttributeFontSpec fontSpec)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull FontRenderContextfontRenderContext()@NotNull Mutator<MeasurableFontSpec>fontSpec()@NotNull Mutator<PaintContext>paintContext()static @NotNull HasContextparse(@NotNull AttributeNode attributeNode)
-
-
-
Field Detail
-
paintContext
@NotNull private final @NotNull PaintContext paintContext
-
fontRenderContext
@NotNull private final @NotNull FontRenderContext fontRenderContext
-
fontSpec
@NotNull private final @NotNull AttributeFontSpec fontSpec
-
-
Constructor Detail
-
HasContextImpl
private HasContextImpl(@NotNull @NotNull PaintContext paintContext, @NotNull @NotNull FontRenderContext fontRenderContext, @NotNull @NotNull AttributeFontSpec fontSpec)
-
-
Method Detail
-
parse
@NotNull public static @NotNull HasContext parse(@NotNull @NotNull AttributeNode attributeNode)
-
fontSpec
@NotNull public @NotNull Mutator<MeasurableFontSpec> fontSpec()
- Specified by:
fontSpecin interfaceHasFontContext
-
fontRenderContext
@NotNull public @NotNull FontRenderContext fontRenderContext()
- Specified by:
fontRenderContextin interfaceHasFontRenderContext
-
paintContext
@NotNull public @NotNull Mutator<PaintContext> paintContext()
- Specified by:
paintContextin interfaceHasPaintContext
-
-