// this.pgraphics3D = (PGraphics3D)pApplet.g;
if (openGl){
this.pgl = ((PGraphicsOpenGL)pa.g);
}
this.setStrokeColor(new MTColor(0, 0, 0, 200));
this.setFillColor(new MTColor(200, 200, 210, 200));
this.setNoStroke(false);
this.setDrawSmooth(true);
this.setGestureAllowance(DragProcessor.class, false);
this.setGestureAllowance(RotateProcessor.class, false);
this.setGestureAllowance(ScaleProcessor.class, false);
this.setGestureAllowance(TapProcessor.class, false);
if (font == null)
this.setDrawActionText(false);
else
this.setDrawActionText(true);
b = new Vector3D(this.getWidthXY(TransformSpace.RELATIVE_TO_PARENT)/2, this.getHeightXY(TransformSpace.RELATIVE_TO_PARENT)/2, 0);
outerBar = new MTRectangle(0, 0, 0, 200, 30, pa);
outerBar.setStrokeWeight(1);
// outerBar.setNoStroke(true);
outerBar.setStrokeColor(new MTColor(0, 0, 0, 255));
outerBar.setFillColor(new MTColor(100, 100, 100, 200));
outerBar.setGestureAllowance(DragProcessor.class, false);
outerBar.setGestureAllowance(RotateProcessor.class, false);
outerBar.setGestureAllowance(ScaleProcessor.class, false);
outerBar.setGestureAllowance(TapProcessor.class, false);
c = new Vector3D(b.x - outerBar.getWidthXY(TransformSpace.RELATIVE_TO_PARENT)/2, b.y - outerBar.getHeightXY(TransformSpace.RELATIVE_TO_PARENT)/2, 0);
outerBar.translate(c);
outerBar.setName("MTProgressbar outer bar");
this.addChild(outerBar);
innerBar = new MTRectangle(0, 0, 0, 199, 29, pa);
innerBar.setStrokeWeight(1);
innerBar.setNoStroke(true);
innerBar.setStrokeColor(new MTColor(255, 255, 255, 200));
innerBar.setFillColor(new MTColor(250, 150, 150, 200));
innerBar.setGestureAllowance(DragProcessor.class, false);
innerBar.setGestureAllowance(RotateProcessor.class, false);
innerBar.setGestureAllowance(ScaleProcessor.class, false);