ADDITIVE, ANIMATE, ANIMATE_MOTION, ANIMATE_TRANSFORM, ATTRIBUTE_NAME, AZIMUTH, BASELINE_SHIFT, BASELINE_SUB, BASELINE_SUPER, BEGIN, BEVEL, BOLD, BOLDER, BUTT, CIRCLE, CLASS, CLIP_PATH, CLIP_PATH_SPEC, CLIP_PATH_UNITS, CLIP_RULE, CONTEXT_FILL, CONTEXT_STROKE, CX, CY, D, DEFS, DIFFUSE_CONSTANT, DILATE, DUR, DX, DY, ELEVATION, ELLIPSE, END, EVEN_ODD, FE_COMPOSITE, FE_DIFFUSE_LIGHTING, FE_DISTANT_LIGHT, FE_DROP_SHADOW, FE_FLOOD, FE_GAUSSIAN_BLUR, FE_IMAGE, FE_MERGE, FE_MERGE_NODE, FE_MORPHOLOGY, FE_OFFSET, FE_POINT_LIGHT, FE_SPECULAR_LIGHTING, FE_SPOT_LIGHT, FILL, FILL_OPACITY, FILL_RULE, FILTER, FLOOD_COLOR, FLOOD_OPACITY, FONT_FAMILY, FONT_SIZE, FONT_STYLE, FONT_WEIGHT, FROM, FX, FY, G, GRADIENT_TRANSFORM, GRADIENT_UNITS, HEIGHT, HIDDEN, HREF, ID, IMAGE, IN, IN2, INDEFINITE, ITALIC, LIGHTER, LIGHTING_COLOR, LINE, LINE_THROUGH, LINEAR_GRADIENT, MARKER, MARKER_END, MARKER_HEIGHT, MARKER_MID, MARKER_START, MARKER_WIDTH, MASK, MIDDLE, MITER, NON_ZERO, NONE, NORMAL, OBJECT_BOUNDINGBOX, OBLIQUE, OFFSET, OPACITY, OPERATOR, OPERATOR_ARITHMETIC, OPERATOR_ATOP, OPERATOR_IN, OPERATOR_OUT, OPERATOR_OVER, OPERATOR_XOR, PATH, POINT_AT_X, POINT_AT_Y, POINT_AT_Z, POINTS, POLYGON, POLYLINE, PRESERVE_ASPECT_RATIO, R, RADIAL_GRADIENT, RADIUS, RECT, REFX, REFY, REPEAT_COUNT, RESULT, ROTATE, ROUND, RX, RY, SCALE, SET, SKEW_X, SKEW_Y, SOURCE_ALPHA, SOURCE_GRAPHIC, SPECULAR_CONSTANT, SPECULAR_EXPONENT, SPREAD_METHOD, SPREAD_PAD, SPREAD_REFLECT, SPREAD_REPEAT, SQUARE, START, STD_DEVIATION, STOP, STOP_COLOR, STOP_OPACITY, STROKE, STROKE_DASHARRAY, STROKE_DASHOFFSET, STROKE_LINECAP, STROKE_LINEJOIN, STROKE_MITERLIMIT, STROKE_WIDTH, STYLE, SURFACE_SCALE, SVG, SYMBOL, TEXT, TEXT_ANCHOR, TEXT_DECORATION, TO, TRANSFORM, TRANSLATE, TSPAN, TYPE, UNDERLINE, USE, USERSPACE_ON_USE, VALUES, VIEWBOX, VISIBILITY, VISIBLE, WIDTH, X, X1, X2, XLINK_HREF, Y, Y1, Y2, Z
Modifier and Type | Method and Description |
---|---|
static SVGImage |
load(java.io.File file)
Load a svg File.
|
static SVGImage |
load(java.io.File file,
double width)
Load a svg File, and scale the associated JavaFX Node.
|
static SVGImage |
load(java.io.File file,
double width,
java.lang.String styleSheets)
Load a svg File, set the styleSheets and set the resulting width of the associated JavaFX Node.
|
static SVGImage |
load(java.io.File file,
LoaderParameters params)
Load a svg File.
|
static SVGImage |
load(java.io.File file,
java.lang.String styleSheets)
Load a svg File, and set the styleSheets of the associated JavaFX Node.
|
static SVGImage |
load(java.lang.String content)
Load a svg URL.
|
static SVGImage |
load(java.lang.String content,
double width)
Load a svg String content, and set the resulting width the associated JavaFX Node.
|
static SVGImage |
load(java.lang.String content,
double width,
java.lang.String styleSheets)
Load a svg String content, set the styleSheets and set the resulting width of the associated JavaFX Node.
|
static SVGImage |
load(java.lang.String content,
LoaderParameters params)
Load a svg String content, and set the parameters of the associated JavaFX Node.
|
static SVGImage |
load(java.lang.String content,
java.lang.String styleSheets)
Load a svg String content, and set the styleSheets of the associated JavaFX Node.
|
static SVGImage |
load(java.net.URL url)
Load a svg URL.
|
static SVGImage |
load(java.net.URL url,
double width)
Load a svg URL, and set the resulting width the associated JavaFX Node.
|
static SVGImage |
load(java.net.URL url,
double width,
java.lang.String styleSheets)
Load a svg URL, set the styleSheets and set the resulting width of the associated JavaFX Node.
|
static SVGImage |
load(java.net.URL url,
LoaderParameters params)
Load a svg URL, and set the parameters of the associated JavaFX Node.
|
static SVGImage |
load(java.net.URL url,
java.lang.String styleSheets)
Load a svg URL, and set the styleSheets of the associated JavaFX Node.
|
static SVGImage |
loadScaled(java.io.File file,
double scale)
Load a svg File, and scale the associated JavaFX Node.
|
static SVGImage |
loadScaled(java.io.File file,
double scale,
java.lang.String styleSheets)
Load a svg File, set the styleSheets and scale of the associated JavaFX Node.
|
static SVGImage |
loadScaled(java.lang.String content,
double scale)
Load a svg String content, and scale the associated JavaFX Node.
|
static SVGImage |
loadScaled(java.lang.String content,
double scale,
java.lang.String styleSheets)
Load a svg String content, set the styleSheets and scale of the associated JavaFX Node.
|
static SVGImage |
loadScaled(java.net.URL url,
double scale)
Load a svg URL, and scale the associated JavaFX Node.
|
static SVGImage |
loadScaled(java.net.URL url,
double scale,
java.lang.String styleSheets)
Load a svg URL, set the styleSheets and scale of the associated JavaFX Node.
|
public static SVGImage load(java.io.File file) throws SVGParsingException
file
- the fileSVGParsingException
- if the file cannot be converted to a URLpublic static SVGImage load(java.net.URL url) throws SVGParsingException
url
- the URLSVGParsingException
- if the SVGLoader cannot be initializedpublic static SVGImage load(java.lang.String content) throws SVGParsingException
content
- the contentSVGParsingException
- if the SVGLoader cannot be initializedpublic static SVGImage load(java.io.File file, java.lang.String styleSheets) throws SVGParsingException
file
- the filestyleSheets
- the styleSheetsSVGParsingException
- if the file cannot be converted to a URLpublic static SVGImage load(java.io.File file, LoaderParameters params) throws SVGParsingException
file
- the fileparams
- the loader parametersSVGParsingException
- if the file cannot be converted to a URLpublic static SVGImage load(java.net.URL url, java.lang.String styleSheets) throws SVGParsingException
url
- the URLstyleSheets
- the styleSheetsSVGParsingException
- if the file cannot be converted to a URLpublic static SVGImage load(java.lang.String content, java.lang.String styleSheets) throws SVGParsingException
content
- the String contentstyleSheets
- the styleSheetsSVGParsingException
- if the SVGLoader cannot be initializedpublic static SVGImage loadScaled(java.io.File file, double scale) throws SVGParsingException
file
- the filescale
- the scaleSVGParsingException
- if the SVGLoader cannot be initializedpublic static SVGImage loadScaled(java.net.URL url, double scale) throws SVGParsingException
url
- the URLscale
- the scaleSVGParsingException
- if the SVGLoader cannot be initializedpublic static SVGImage loadScaled(java.lang.String content, double scale) throws SVGParsingException
content
- the String contentscale
- the scaleSVGParsingException
- if the SVGLoader cannot be initializedpublic static SVGImage load(java.io.File file, double width) throws SVGParsingException
file
- the filewidth
- the resulting widthSVGParsingException
- if the SVGLoader cannot be initialized or the file cannot be converted to a URLpublic static SVGImage load(java.net.URL url, double width) throws SVGParsingException
url
- the URLwidth
- the resulting widthSVGParsingException
- if the SVGLoader cannot be initializedpublic static SVGImage load(java.lang.String content, double width) throws SVGParsingException
content
- the String contentwidth
- the resulting widthSVGParsingException
- if the SVGLoader cannot be initializedpublic static SVGImage load(java.io.File file, double width, java.lang.String styleSheets) throws SVGParsingException
file
- the Filewidth
- the resulting widthstyleSheets
- the styleSheetsSVGParsingException
- if the SVGLoader cannot be initialized or the file cannot be converted to a URLpublic static SVGImage load(java.net.URL url, double width, java.lang.String styleSheets) throws SVGParsingException
url
- the URLwidth
- the resulting widthstyleSheets
- the styleSheetsSVGParsingException
- if the SVGLoader cannot be initializedpublic static SVGImage load(java.lang.String content, double width, java.lang.String styleSheets) throws SVGParsingException
content
- the String contentwidth
- the resulting widthstyleSheets
- the styleSheetsSVGParsingException
- if the SVGLoader cannot be initializedpublic static SVGImage loadScaled(java.io.File file, double scale, java.lang.String styleSheets) throws SVGParsingException
file
- the Filescale
- the scalestyleSheets
- the styleSheetsSVGParsingException
- if the SVGLoader cannot be initialized or the file cannot be converted to a URLpublic static SVGImage loadScaled(java.net.URL url, double scale, java.lang.String styleSheets) throws SVGParsingException
url
- the URLscale
- the scalestyleSheets
- the styleSheetsSVGParsingException
- if the SVGLoader cannot be initializedpublic static SVGImage loadScaled(java.lang.String content, double scale, java.lang.String styleSheets) throws SVGParsingException
content
- the String contentscale
- the scalestyleSheets
- the styleSheetsSVGParsingException
- if the SVGLoader cannot be initializedpublic static SVGImage load(java.net.URL url, LoaderParameters params) throws SVGParsingException
url
- the URLparams
- the parametersSVGParsingException
- if the SVGLoader cannot be initializedpublic static SVGImage load(java.lang.String content, LoaderParameters params) throws SVGParsingException
content
- the String contentparams
- the parametersSVGParsingException
- if the SVGLoader cannot be initializedCopyright © 2021, 2022, 2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence