lcsim/src/org/lcsim/util/heprep
diff -u -r1.20 -r1.21
--- LCSimHepRepConverter.java 8 Apr 2010 17:05:38 -0000 1.20
+++ LCSimHepRepConverter.java 8 Dec 2010 23:29:59 -0000 1.21
@@ -128,32 +128,28 @@
axis.addAttValue("layer", "Axis");
axis.addAttValue("lineWidth", 20);
- Color xcolor = new Color(100, 0, 0);
HepRepType xaxis = factory.createHepRepType(axis, "xaxis");
- xaxis.addAttValue("color",xcolor);
+ xaxis.addAttValue("color",Color.RED);
xaxis.addAttValue("fill",true);
- xaxis.addAttValue("fillColor",xcolor);
+ xaxis.addAttValue("fillColor",Color.RED);
HepRepInstance x = factory.createHepRepInstance(instanceTree, xaxis);
- x.addAttValue("lineWidth", 20);
factory.createHepRepPoint(x,0,0,0);
factory.createHepRepPoint(x,2000,0,0);
- Color ycolor = new Color(0, 100, 0);
HepRepType yaxis = factory.createHepRepType(axis, "yaxis");
- yaxis.addAttValue("color",ycolor);
+ yaxis.addAttValue("color",Color.GREEN);
yaxis.addAttValue("fill",true);
- yaxis.addAttValue("fillColor",ycolor);
+ yaxis.addAttValue("fillColor",Color.GREEN);
HepRepInstance y = factory.createHepRepInstance(instanceTree, yaxis);
factory.createHepRepPoint(y,0,0,0);
factory.createHepRepPoint(y,0,2000,0);
- Color zcolor = new Color(0, 0, 100);
HepRepType zaxis = factory.createHepRepType(axis, "zaxis");
- zaxis.addAttValue("color",zcolor);
+ zaxis.addAttValue("color",Color.BLUE);
zaxis.addAttValue("fill",true);
- zaxis.addAttValue("fillColor",zcolor);
+ zaxis.addAttValue("fillColor",Color.BLUE);
HepRepInstance z = factory.createHepRepInstance(instanceTree, zaxis);
factory.createHepRepPoint(z,0,0,0);
factory.createHepRepPoint(z,0,0,2000);
}
-}
+}
\ No newline at end of file