| Modifier and Type | Field and Description |
|---|---|
ClippingFactory |
clippingFactory
The clipping factory.
|
boolean |
effectsSupported
True if the effects are supported.
|
Map<String,FilterSpec> |
filterSpecs
The filters specifications.
|
Map<String,javafx.scene.paint.Paint> |
gradients
The gradients.
|
Map<String,GradientSpec> |
gradientSpecs
The gradients specifications.
|
Map<String,MarkerSpec> |
markers
The markers specifications.
|
LoaderParameters |
params
The loader parameters.
|
SVGImage |
root
The resulting group.
|
Styles |
svgStyle
The overall "styles" elements if it exists.
|
URL |
url
The SVG file url.
|
Stack<Viewport> |
viewports
The viewport.
|
| Constructor and Description |
|---|
LoaderContext(SVGImage root,
LoaderParameters params,
URL url)
Create a loader context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAnimations(List<javafx.animation.Animation> theAnimations)
Add a list of animations.
|
void |
addMarker(String id,
MarkerSpec xmlNode)
Add a marker node.
|
void |
addNamedNode(String id,
XMLNode xmlNode)
Add a named node.
|
void |
addSymbol(String id,
SymbolSpec symbol)
Add a symbol.
|
void |
addTransition(javafx.animation.Animation animation)
Add an animation.
|
List<javafx.animation.Animation> |
getAnimations()
Return the animations.
|
Viewport |
getCurrentViewport()
Rerurn the current viewport.
|
double |
getDPI()
Return the screen dpi.
|
MarkerSpec |
getMarker(String id)
Return the marker of a specified id.
|
XMLNode |
getNamedNode(String id)
Return the node of a specified id.
|
URL |
getParentURL()
Return the SVG file parent URL.
|
XMLNode |
getReifiedNamedNode(String id)
Return the node of a specified id.
|
SymbolSpec |
getSymbol(String id)
Return the symbol of a specified id.
|
URL |
getURL()
Return the SVG file URL.
|
boolean |
hasAnimations()
Return true if there are animations.
|
boolean |
hasMarker(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(String id)
Return true if there is a node with a specified id.
|
boolean |
hasReifiedNamedNode(String id)
Return true if there is a node with a specified id.
|
boolean |
hasSymbol(String id)
Return true if there is a symbol with a specified id.
|
boolean |
hasViewports()
Return true if there are viewports.
|
void |
playAnimations()
Play the transitions.
|
Viewport |
popViewport()
Pop the viewport stack.
|
void |
pushViewport(Viewport viewport)
Push a viewport on the viewports stack.
|
public final SVGImage root
public final LoaderParameters params
public Styles svgStyle
public final URL url
public final ClippingFactory clippingFactory
public final Map<String,GradientSpec> gradientSpecs
public final Map<String,FilterSpec> filterSpecs
public final Map<String,MarkerSpec> markers
public boolean effectsSupported
public LoaderContext(SVGImage root, LoaderParameters params, URL url)
root - the root imageparams - the loader parametersurl - the SVG URLpublic URL getURL()
public URL getParentURL()
public boolean hasViewports()
public void pushViewport(Viewport viewport)
viewport - the viewportpublic Viewport getCurrentViewport()
public Viewport popViewport()
public double getDPI()
public void addNamedNode(String id, XMLNode xmlNode)
id - the node idxmlNode - the nodepublic void addMarker(String id, MarkerSpec xmlNode)
id - the node idxmlNode - the nodepublic boolean hasMarkers()
public boolean hasMarker(String id)
id - the marker idpublic MarkerSpec getMarker(String id)
id - the marker idpublic boolean hasReifiedNamedNode(String id)
id - the node idpublic boolean hasNamedNode(String id)
id - the node idpublic XMLNode getReifiedNamedNode(String id)
id - the node idpublic XMLNode getNamedNode(String id)
id - the node idpublic void addSymbol(String id, SymbolSpec symbol)
id - the symbols idsymbol - the symbolpublic boolean hasSymbol(String id)
id - the symbols idpublic SymbolSpec getSymbol(String id)
id - the symbols idpublic boolean hasAnimations()
public List<javafx.animation.Animation> getAnimations()
public void addTransition(javafx.animation.Animation animation)
animation - the animation.public void addAnimations(List<javafx.animation.Animation> theAnimations)
theAnimations - the animations.public void playAnimations()
Copyright © 2026. All rights reserved.