public class BatikLoader extends SV_DocumentLoader
Loads an SVG document using Batik and provides some methods to deal with layers.
isLoaded, layers| Constructor and Description |
|---|
BatikLoader() |
| Modifier and Type | Method and Description |
|---|---|
BridgeContext |
getBridgeContext()
Returns the loader’s bridge context.
|
Document |
getDocument()
Returns the loader’s document.
|
static String |
getLabel(Node node)
Returns the Inkscape label for a given node.
|
Dimension |
getSize()
Returns the document size.
|
String |
load(String fn)
Loads the SVG file.
|
void |
switchOffAllLayers()
Switch all layers off.
|
void |
switchOnAllLayers()
Switch all layers off.
|
void |
switchOnLayer(String layer)
Switches the given layer on, nothing happens if the layer was blank or not in the layer list.
|
getLayers, hasInkscapeLayers, isLoadedpublic static String getLabel(Node node)
Returns the Inkscape label for a given node.
node - XML/SVG nodepublic String load(String fn)
SV_DocumentLoaderLoads the SVG file. This method will not re-load an SVG file once the loader already has a document loaded.
load in class SV_DocumentLoaderfn - the file name for the SVG documentpublic void switchOnAllLayers()
SV_DocumentLoaderSwitch all layers off.
switchOnAllLayers in class SV_DocumentLoaderpublic void switchOffAllLayers()
SV_DocumentLoaderSwitch all layers off.
switchOffAllLayers in class SV_DocumentLoaderpublic void switchOnLayer(String layer)
SV_DocumentLoaderSwitches the given layer on, nothing happens if the layer was blank or not in the layer list.
switchOnLayer in class SV_DocumentLoaderlayer - the layer to be switched onpublic Document getDocument()
Returns the loader’s document.
public BridgeContext getBridgeContext()
Returns the loader’s bridge context.
public Dimension getSize()
Returns the document size.
Copyright © 2012–2017. All rights reserved.