public class ResourcesComponentLibrary extends Object implements ComponentLibrary
Constructor and Description |
---|
ResourcesComponentLibrary(String directory,
String... additionalDirectories)
Constructs a new library containing the components in the given directories
|
Modifier and Type | Method and Description |
---|---|
List<AnchorPoint> |
getAnchorPoints(String type) |
Map<String,ComponentSize> |
getComponentsSize() |
ComponentSize |
getSize(String type) |
String |
getStyleSheet() |
Map<String,org.apache.batik.anim.dom.SVGOMDocument> |
getSvgDocument(String type) |
boolean |
isAllowRotation(String type) |
public ResourcesComponentLibrary(String directory, String... additionalDirectories)
directory
- main directory containing the resources components: SVG files, with associated components.xml
(containing the list of SVG files) and components.css (containing the style applied to each
component)additionalDirectories
- directories for additional components (each directory containing SVG files,
associated components.xml and components.css).public Map<String,org.apache.batik.anim.dom.SVGOMDocument> getSvgDocument(String type)
getSvgDocument
in interface ComponentLibrary
public List<AnchorPoint> getAnchorPoints(String type)
getAnchorPoints
in interface ComponentLibrary
public ComponentSize getSize(String type)
getSize
in interface ComponentLibrary
public Map<String,ComponentSize> getComponentsSize()
getComponentsSize
in interface ComponentLibrary
public boolean isAllowRotation(String type)
isAllowRotation
in interface ComponentLibrary
public String getStyleSheet()
getStyleSheet
in interface ComponentLibrary
Copyright © 2020. All rights reserved.