class SvgConverter extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
SvgConverter.InnerRadiusCompare |
private static class |
SvgConverter.InnerZCompare |
private static class |
SvgConverter.ZPlaneCompare
Order a List of ZPlanes by Z value.
|
Modifier and Type | Field and Description |
---|---|
private static DecimalFormat |
df |
private static org.jdom.Element |
labelsX |
private static org.jdom.Element |
labelsY |
private static double |
minTrackerLayerThickness |
private static org.jdom.Namespace |
ns |
private static double |
scale |
private static double |
viewportX |
private static double |
viewportY |
private static org.jdom.Namespace |
xlink |
private static double |
xmargin |
private static double |
yLabelMarginX |
private static double |
yLabelTolerance |
private static double |
ymargin |
private static double |
zLabelOffsetY |
Constructor and Description |
---|
SvgConverter() |
Modifier and Type | Method and Description |
---|---|
static org.jdom.Element |
convert(Detector d) |
private static String |
convertColor(VisAttributes vis) |
private static void |
convertSubdetector(org.jdom.Element parent,
Subdetector subdet,
double maxZ,
double maxY) |
private static void |
convertSubdetectors(org.jdom.Element parent,
Detector detector,
double maxZ,
double maxY) |
private static double[] |
findMaxZY(Detector detector) |
private static org.jdom.Element |
line(org.jdom.Element parent,
double x1,
double y1,
double x2,
double y2) |
private static org.jdom.Element |
rect(org.jdom.Element parent,
double x,
double y,
double height,
double width) |
private static org.jdom.Element |
text(org.jdom.Element parent,
String text,
double x,
double y) |
private static final org.jdom.Namespace ns
private static final org.jdom.Namespace xlink
private static final double scale
private static final double xmargin
private static final double ymargin
private static final double viewportX
private static final double viewportY
private static final DecimalFormat df
private static org.jdom.Element labelsY
private static org.jdom.Element labelsX
private static double yLabelTolerance
private static double yLabelMarginX
private static double zLabelOffsetY
private static double minTrackerLayerThickness
public static org.jdom.Element convert(Detector d)
private static String convertColor(VisAttributes vis)
private static void convertSubdetectors(org.jdom.Element parent, Detector detector, double maxZ, double maxY)
private static void convertSubdetector(org.jdom.Element parent, Subdetector subdet, double maxZ, double maxY)
private static org.jdom.Element line(org.jdom.Element parent, double x1, double y1, double x2, double y2)
private static org.jdom.Element rect(org.jdom.Element parent, double x, double y, double height, double width)
private static org.jdom.Element text(org.jdom.Element parent, String text, double x, double y)
private static double[] findMaxZY(Detector detector)
Copyright © 2016 Linear Collider Detector (LCD). All rights reserved.