public static class SVGRenderTargetBuilder.SVGRenderTargetImpl extends AbstractRenderTarget implements SVGTarget
| Modifier and Type | Field and Description |
|---|---|
private Document |
document |
private float |
scaleRatio |
private Map<String,Element> |
topElements |
cancel, progressTicketSCALE_STROKES, TOP_ARROWS, TOP_EDGE_LABELS, TOP_EDGE_LABELS_OUTLINE, TOP_EDGES, TOP_NODE_LABELS, TOP_NODE_LABELS_OUTLINE, TOP_NODESG2D_TARGET, PDF_TARGET, SVG_TARGET| Constructor and Description |
|---|
SVGRenderTargetBuilder.SVGRenderTargetImpl(CanvasSize cs,
boolean scaleStrokes) |
| Modifier and Type | Method and Description |
|---|---|
Element |
createElement(String qualifiedName)
Create a new element
qualifiedName in the document. |
Text |
createTextNode(String data)
Create a new text node with
data in it. |
Document |
getDocument()
Returns the SVG document
|
float |
getScaleRatio()
When
SCALE_STROKES property is true returns
the scale ratio to scale strokes with. |
Element |
getTopElement(String name)
Returns the top element
name in the document. |
String |
toHexString(Color color)
Returns
color in the hex format (e.g. |
cancel, getProgressTicket, isCancelled, setProgressTicketprivate final Document document
private float scaleRatio
public SVGRenderTargetBuilder.SVGRenderTargetImpl(CanvasSize cs, boolean scaleStrokes)
public Element getTopElement(String name)
SVGTargetname in the document. Top elements are
direct children of the root node and help to organize the SVG document (e.g.
all edges in the same parent DOM node). Create the top element if it missing.getTopElement in interface SVGTargetname - the top element name to lookuppublic Document getDocument()
SVGTargetgetDocument in interface SVGTargetpublic float getScaleRatio()
SVGTargetSCALE_STROKES property is true returns
the scale ratio to scale strokes with.getScaleRatio in interface SVGTargetpublic Element createElement(String qualifiedName)
SVGTargetqualifiedName in the document.createElement in interface SVGTargetqualifiedName - the name of the elementpublic Text createTextNode(String data)
SVGTargetdata in it.createTextNode in interface SVGTargetdata - the text datapublic String toHexString(Color color)
SVGTargetcolor in the hex format (e.g. #ff0000).toHexString in interface SVGTargetcolor - the color to convertCopyright © 2007–2016 Gephi Consortium. All rights reserved.