本文整理汇总了Java中org.newdawn.slick.svg.inkscape.ElementProcessor类的典型用法代码示例。如果您正苦于以下问题:Java ElementProcessor类的具体用法?Java ElementProcessor怎么用?Java ElementProcessor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ElementProcessor类属于org.newdawn.slick.svg.inkscape包,在下文中一共展示了ElementProcessor类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: loadElement
import org.newdawn.slick.svg.inkscape.ElementProcessor; //导入依赖的package包/类
/**
* Load a single element into the diagram
*
* @param element
* The element ot be loaded
* @param t
* The transform to apply to the loaded element from the parent
* @throws ParsingException
* Indicates a failure to parse the element
*/
private void loadElement(Element element, Transform t)
throws ParsingException {
for (int i = 0; i < processors.size(); i++) {
ElementProcessor processor = (ElementProcessor) processors.get(i);
if (processor.handles(element)) {
processor.process(this, element, diagram, t);
}
}
}
示例2: addElementProcessor
import org.newdawn.slick.svg.inkscape.ElementProcessor; //导入依赖的package包/类
/**
* Add an <code>ElementProcessor</code> which will be passed
* each element read as the Inkscape SVG document is processed.
*
* @param proc The processor to be added
*/
public static void addElementProcessor(ElementProcessor proc) {
processors.add(proc);
}