Package com.github.weisj.jsvg.nodes.mesh
Class MeshPatch
- java.lang.Object
-
- com.github.weisj.jsvg.nodes.AbstractSVGNode
-
- com.github.weisj.jsvg.nodes.container.BaseContainerNode<SVGNode>
-
- com.github.weisj.jsvg.nodes.container.ContainerNode
-
- com.github.weisj.jsvg.nodes.mesh.MeshPatch
-
@ElementCategories({}) @PermittedContent(categories=Descriptive, anyOf=Stop.class) public final class MeshPatch extends ContainerNode
-
-
Field Summary
Fields Modifier and Type Field Description (package private) @NotNull CoonPatch
coonPatch
(package private) java.awt.Color
east
private static int
MAX_DEPTH
(package private) java.awt.Color
north
(package private) java.awt.Color
south
static java.lang.String
TAG
(package private) java.awt.Color
west
-
Constructor Summary
Constructors Constructor Description MeshPatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private @NotNull java.awt.Color
bilinearInterpolation(float dx, float dy)
private int
clampColor(float v)
void
renderPath(@NotNull Output output)
private void
renderPath(@NotNull Output output, @NotNull CoonPatch patch, float scaleX, float scaleY, int depth)
@NotNull java.lang.String
tagName()
-
Methods inherited from class com.github.weisj.jsvg.nodes.container.ContainerNode
children, doAdd
-
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, build, 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
-
-
-
-
Field Detail
-
TAG
public static final java.lang.String TAG
- See Also:
- Constant Field Values
-
MAX_DEPTH
private static final int MAX_DEPTH
- See Also:
- Constant Field Values
-
north
java.awt.Color north
-
east
java.awt.Color east
-
south
java.awt.Color south
-
west
java.awt.Color west
-
coonPatch
@NotNull final @NotNull CoonPatch coonPatch
-
-
Method Detail
-
tagName
@NotNull public @NotNull java.lang.String tagName()
-
renderPath
public void renderPath(@NotNull @NotNull Output output)
-
renderPath
private void renderPath(@NotNull @NotNull Output output, @NotNull @NotNull CoonPatch patch, float scaleX, float scaleY, int depth)
-
bilinearInterpolation
@NotNull private @NotNull java.awt.Color bilinearInterpolation(float dx, float dy)
-
clampColor
private int clampColor(float v)
-
-