yPos = 65;
float xPos = 20;
GUIComponentSet toggleSetCaps = new GUIComponentSet();
GUILabel label = new GUILabel(xPos-2, yPos-16, "cap\nstyle",gui);
this.add(label);
xPos+=30;
GUIToggle toggle = new GUIToggle(xPos, yPos, "gui/GUI_SHAPE_CAP_ROUND.png",
gui);
toggle.setComponentSet(toggleSetCaps);
toggle.addActionListener(GLOBAL.uiTools.SketchTools, "selectCap",
SketchSpline.CAP_ROUND);
/*toggle.setLabel("round");
toggle.label.align = GUILabel.CENTRE;
toggle.label.layout = GUILabel.UNDER_COMPONENT;*/
if(GLOBAL.uiTools.SketchTools.getCap() == SketchSpline.CAP_ROUND)
toggle.toggleDown();
add(toggle);
xPos+=30;
toggle = new GUIToggle(xPos, yPos, "gui/GUI_SHAPE_CAP_BUT.png", gui);
toggle.setComponentSet(toggleSetCaps);
toggle.addActionListener(GLOBAL.uiTools.SketchTools, "selectCap",
SketchSpline.CAP_BUTT);
/*toggle.setLabel("butt");
toggle.label.align = GUILabel.CENTRE;
toggle.label.layout = GUILabel.UNDER_COMPONENT;*/
if(GLOBAL.uiTools.SketchTools.getCap() == SketchSpline.CAP_BUTT)
toggle.toggleDown();
add(toggle);
xPos+=30;
toggle = new GUIToggle(xPos, yPos, "gui/GUI_SHAPE_CAP_PARALLEL.png", gui);
toggle.setComponentSet(toggleSetCaps);
toggle.addActionListener(GLOBAL.uiTools.SketchTools, "selectCap",
SketchSpline.CAP_PARRALEL);
/*toggle.setLabel("parallel");
toggle.label.align = GUILabel.CENTRE;
toggle.label.layout = GUILabel.UNDER_COMPONENT;*/
if(GLOBAL.uiTools.SketchTools.getCap() == SketchSpline.CAP_PARRALEL)
toggle.toggleDown();
add(toggle);
xPos+=85;
label = new GUILabel(xPos-35, yPos-14, "cut\nshape",gui);
this.add(label);
toggle = new GUIToggle(xPos, yPos,
"gui/GUI_SHAPE_CUT.png", gui);