public GScrollbar(PApplet theApplet, float p0, float p1, float p2, float p3) {
super(theApplet, p0, p1, p2, p3);
buffer = (PGraphicsJava2D) winApp.createGraphics((int)width, (int)height, PApplet.JAVA2D);
buffer.rectMode(PApplet.CORNER);
hotspots = new HotSpot[]{
new HSrect(1, 0, 0, 16, height), // low cap
new HSrect(2, width - 16, 0, 16, height), // high cap
new HSrect(9, 17, 0, width - 17, height) // thumb track
};
lowCap = new RoundRectangle2D.Float(1, 1, 15, height-2, 6, 6);
highCap = new RoundRectangle2D.Float(width - 15, 1, 14.5f, height-2, 6, 6);