public class ElementLike extends Object
| Modifier and Type | Field and Description |
|---|---|
LinkedHashMap<String,String> |
Attributes |
ArrayList<ElementLike> |
Children |
String |
Name |
String |
Text |
| Constructor and Description |
|---|
ElementLike(String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
attribute(String name,
String value) |
StringBuilder |
buildString(int indentation) |
void |
child(ElementLike element) |
ElementLike |
clone() |
static ElementLike |
createRectangularClipPath(String idName,
double marginLeft,
double marginBottom,
double xAxisTickHeight,
double yAxisTickWidth)
Get a rectangle that can be used to remove the things that fall outside of it.
|
void |
d(com.vividsolutions.jts.geom.Geometry polygon,
boolean absoluteCoordinates,
boolean implicitlyClosePath) |
String |
generateSVGDataAttribute(com.vividsolutions.jts.geom.Geometry polygon,
boolean absoluteCoordinates,
boolean implicitlyClosePath)
Generates a String that represents the "d" attribute of an SVG path.
|
static String |
getNumberStringForDisplay(Double valueAtLocation) |
String |
getValidName() |
void |
text(String text) |
String |
toString() |
public String Name
public String Text
public LinkedHashMap<String,String> Attributes
public ArrayList<ElementLike> Children
public ElementLike(String name)
name - public static ElementLike createRectangularClipPath(String idName, double marginLeft, double marginBottom, double xAxisTickHeight, double yAxisTickWidth)
idName - marginLeft - marginBottom - xAxisTickHeight - yAxisTickWidth - public String getValidName()
public void text(String text)
public void child(ElementLike element)
public static String getNumberStringForDisplay(Double valueAtLocation)
valueAtLocation - public ElementLike clone()
public StringBuilder buildString(int indentation)
indentation - public void d(com.vividsolutions.jts.geom.Geometry polygon,
boolean absoluteCoordinates,
boolean implicitlyClosePath)
polygon - absoluteCoordinates - implicitlyClosePath - public String generateSVGDataAttribute(com.vividsolutions.jts.geom.Geometry polygon, boolean absoluteCoordinates, boolean implicitlyClosePath)
polygon - absoluteCoordinates - implicitlyClosePath - Copyright © 2017 OpenSource BIM. All rights reserved.