private MutableTreeNode createPinstripePainterDemos() {
DefaultMutableTreeNode node = createInfoNode("Pinstripe Painter Demos", null);
MattePainter black = new MattePainter(Color.BLACK);
PinstripePainter pp = new PinstripePainter(Color.WHITE, 45, 1, 10);
CompoundPainter<Object> cp = new CompoundPainter<Object>(black, pp);
node.add(createInfoNode("45deg white pinstripe on black", cp));
pp = new PinstripePainter(Color.WHITE, 0, 1, 10);
pp.setAntialiasing(true);
cp = new CompoundPainter<Object>(black, pp);
node.add(createInfoNode("vertical white pinstripe on black", cp));
pp = new PinstripePainter(Color.WHITE, 90, 1, 10);
pp.setAntialiasing(true);
cp = new CompoundPainter<Object>(black, pp);
node.add(createInfoNode("horizontal white pinstripe on black", cp));
pp = new PinstripePainter(Color.WHITE, 45, 3, 10);
pp.setAntialiasing(true);
cp = new CompoundPainter<Object>(black, pp);
node.add(createInfoNode("3px wide white pinstripe on black", cp));
pp = new PinstripePainter(Color.WHITE, 45, 10, 2);
pp.setAntialiasing(true);
cp = new CompoundPainter<Object>(black, pp);
node.add(createInfoNode("10px wide pinstripe w/ 2px spacing on black", cp));
pp = new PinstripePainter(Color.WHITE, 45, 3, 15);
pp.setAntialiasing(true);
pp.setPaint(
new GradientPaint(new Point(0, 0), Color.WHITE, new Point(10, 10), Color.BLACK));
cp = new CompoundPainter<Object>(black, pp);
node.add(createInfoNode("pinstripe w/ 10px gradient", cp));
pp = new PinstripePainter(Color.WHITE, 45, 3, 15);
pp.setAntialiasing(true);
pp.setPaint(
new GradientPaint(new Point(0, 0), Color.WHITE, new Point(200, 200), Color.BLACK));
cp = new CompoundPainter<Object>(black, pp);
node.add(createInfoNode("pinstripe w/ 200px gradient", cp));
return node;