Module com.github.weisj.jsvg
Class BaseInnerViewContainer
java.lang.Object
com.github.weisj.jsvg.nodes.AbstractSVGNode
com.github.weisj.jsvg.nodes.container.BaseContainerNode<SVGNode>
com.github.weisj.jsvg.nodes.container.CommonRenderableContainerNode
com.github.weisj.jsvg.nodes.container.BaseInnerViewContainer
- All Implemented Interfaces:
Container<SVGNode>
,HasClip
,HasContext
,HasContext.ByDelegate
,HasFillRule
,HasFilter
,HasFontContext
,HasFontRenderContext
,HasGeometryContext
,HasGeometryContext.ByDelegate
,HasPaintContext
,Renderable
,Transformable
,SVGNode
- Direct Known Subclasses:
CommonInnerViewContainer
,Marker
,Pattern
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.prototype.HasContext
HasContext.ByDelegate
Nested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.prototype.HasGeometryContext
HasGeometryContext.ByDelegate
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Overflow
protected PreserveAspectRatio
protected ViewBox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract @Nullable Point2D
anchorLocation
(@NotNull MeasureContext context) void
build
(@NotNull AttributeNode attributeNode) protected @NotNull RenderContext
createInnerContext
(@NotNull RenderContext context, @NotNull ViewBox viewBox) protected abstract @NotNull Overflow
protected abstract @NotNull Point2D
outerLocation
(@NotNull MeasureContext context) void
render
(@NotNull RenderContext context, @NotNull Output output) protected void
renderWithCurrentViewBox
(@NotNull RenderContext context, @NotNull Output output) final void
renderWithSize
(@NotNull FloatSize useSiteSize, @Nullable ViewBox view, @Nullable PreserveAspectRatio preserveAspectRatio, @NotNull RenderContext context, @NotNull Output output) final void
renderWithSize
(@NotNull FloatSize useSiteSize, @Nullable ViewBox view, @NotNull RenderContext context, @NotNull Output output) abstract @NotNull FloatSize
size
(@NotNull RenderContext context) @NotNull ViewBox
staticViewBox
(@NotNull FloatSize fallbackSize) @Nullable ViewBox
viewBox
(@NotNull RenderContext context) Methods inherited from class com.github.weisj.jsvg.nodes.container.CommonRenderableContainerNode
children, contextDelegate, doAdd, geometryContextDelegate, isVisible
Methods inherited from class com.github.weisj.jsvg.nodes.container.BaseContainerNode
acceptChild, addChild, isAcceptableType
Methods inherited from class com.github.weisj.jsvg.nodes.AbstractSVGNode
addContent, id, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.Container
childrenOfType
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasContext.ByDelegate
fillRule, fontRenderContext, fontSpec, paintContext
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasGeometryContext.ByDelegate
clipPath, filter, mask, transform, transformOrigin
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.Renderable
parseIsVisible, requiresInstantiation, shouldEstablishChildContext
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.Transformable
applyTransform, shouldTransform, transformShape
-
Field Details
-
viewBox
-
preserveAspectRatio
-
overflow
-
-
Constructor Details
-
BaseInnerViewContainer
public BaseInnerViewContainer()
-
-
Method Details
-
outerLocation
@NotNull protected abstract @NotNull Point2D outerLocation(@NotNull @NotNull MeasureContext context) -
anchorLocation
@Nullable protected abstract @Nullable Point2D anchorLocation(@NotNull @NotNull MeasureContext context) -
size
-
defaultOverflow
-
viewBox
-
staticViewBox
-
build
- Specified by:
build
in interfaceSVGNode
- Overrides:
build
in classCommonRenderableContainerNode
-
renderWithCurrentViewBox
protected void renderWithCurrentViewBox(@NotNull @NotNull RenderContext context, @NotNull @NotNull Output output) -
render
- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classCommonRenderableContainerNode
-
createInnerContext
@NotNull protected @NotNull RenderContext createInnerContext(@NotNull @NotNull RenderContext context, @NotNull @NotNull ViewBox viewBox) -
renderWithSize
public final void renderWithSize(@NotNull @NotNull FloatSize useSiteSize, @Nullable @Nullable ViewBox view, @NotNull @NotNull RenderContext context, @NotNull @NotNull Output output) -
renderWithSize
public final void renderWithSize(@NotNull @NotNull FloatSize useSiteSize, @Nullable @Nullable ViewBox view, @Nullable @Nullable PreserveAspectRatio preserveAspectRatio, @NotNull @NotNull RenderContext context, @NotNull @NotNull Output output)
-