public class LoaderContext
extends java.lang.Object
SVGLoader
.Modifier and Type | Field and Description |
---|---|
ClippingFactory |
clippingFactory
The clipping factory.
|
boolean |
effectsSupported
True if the effects are supported.
|
java.util.Map<java.lang.String,FilterSpec> |
filterSpecs
The filters specifications.
|
java.util.Map<java.lang.String,javafx.scene.paint.Paint> |
gradients
The gradients.
|
java.util.Map<java.lang.String,GradientSpec> |
gradientSpecs
The gradients specifications.
|
java.util.Map<java.lang.String,MarkerSpec> |
markers |
LoaderParameters |
params
The loader parameters.
|
SVGImage |
root
The resulting group.
|
Styles |
svgStyle
The overall "styles" element if it exists.
|
java.net.URL |
url
The SVG file url.
|
Viewport |
viewport
The viewport.
|
Constructor and Description |
---|
LoaderContext(SVGImage root,
LoaderParameters params,
java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
void |
addAnimations(java.util.List<javafx.animation.Animation> theAnimations)
Add a list of animations.
|
void |
addMarker(java.lang.String id,
MarkerSpec xmlNode)
Add a marker node.
|
void |
addNamedNode(java.lang.String id,
XMLNode xmlNode)
Add a named node.
|
void |
addSymbol(java.lang.String id,
SymbolSpec symbol)
Add a symbol.
|
void |
addTransition(javafx.animation.Animation animation)
Add an animation.
|
java.util.List<javafx.animation.Animation> |
getAnimations()
Return the animations.
|
MarkerSpec |
getMarker(java.lang.String id)
Return the marker of a specified id.
|
XMLNode |
getNamedNode(java.lang.String id)
Return the node of a specified id.
|
XMLNode |
getReifiedNamedNode(java.lang.String id)
Return the node of a specified id.
|
SymbolSpec |
getSymbol(java.lang.String id)
Return the symbol of a specified id.
|
boolean |
hasAnimations()
Return true if there are animations.
|
boolean |
hasMarker(java.lang.String id)
Return true if there is a marker with a specified id.
|
boolean |
hasMarkers()
Return true if there is at least one marker.
|
boolean |
hasNamedNode(java.lang.String id)
Return true if there is a node with a specified id.
|
boolean |
hasReifiedNamedNode(java.lang.String id)
Return true if there is a node with a specified id.
|
boolean |
hasSymbol(java.lang.String id)
Return true if there is a symbol with a specified id.
|
void |
playAnimations()
Play the transitions.
|
public final SVGImage root
public final LoaderParameters params
public Viewport viewport
public Styles svgStyle
public final java.net.URL url
public final ClippingFactory clippingFactory
public final java.util.Map<java.lang.String,GradientSpec> gradientSpecs
public final java.util.Map<java.lang.String,FilterSpec> filterSpecs
public final java.util.Map<java.lang.String,javafx.scene.paint.Paint> gradients
public final java.util.Map<java.lang.String,MarkerSpec> markers
public boolean effectsSupported
public LoaderContext(SVGImage root, LoaderParameters params, java.net.URL url)
public void addNamedNode(java.lang.String id, XMLNode xmlNode)
id
- the node idxmlNode
- the nodepublic void addMarker(java.lang.String id, MarkerSpec xmlNode)
id
- the node idxmlNode
- the nodepublic boolean hasMarkers()
public boolean hasMarker(java.lang.String id)
id
- the marker idpublic MarkerSpec getMarker(java.lang.String id)
id
- the marker idpublic boolean hasReifiedNamedNode(java.lang.String id)
id
- the node idpublic boolean hasNamedNode(java.lang.String id)
id
- the node idpublic XMLNode getReifiedNamedNode(java.lang.String id)
id
- the node idpublic XMLNode getNamedNode(java.lang.String id)
id
- the node idpublic void addSymbol(java.lang.String id, SymbolSpec symbol)
id
- the symbols idsymbol
- the symbolpublic boolean hasSymbol(java.lang.String id)
id
- the symbols idpublic SymbolSpec getSymbol(java.lang.String id)
id
- the symbols idpublic boolean hasAnimations()
public java.util.List<javafx.animation.Animation> getAnimations()
public void addTransition(javafx.animation.Animation animation)
animation
- the animation.public void addAnimations(java.util.List<javafx.animation.Animation> theAnimations)
theAnimations
- the animations.public void playAnimations()
Copyright © 2021, 2022, 2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence