/** * Create a new MattePainter for the given Paint. This can be a GradientPaint * (the gradient will not grow when the component becomes larger unless * you use the paintStretched boolean property), * TexturePaint, Color, or other Paint instance. * * @param paint Paint to fill with * @param paintStretched indicates if the paint should be stretched */ public MattePainter(Paint paint, boolean paintStretched) { super(paint); this.setPaintStretched(paintStretched); }
/** * Create a new MattePainter for the given Paint. This can be a GradientPaint * (the gradient will not grow when the component becomes larger unless * you use the paintStretched boolean property), * TexturePaint, Color, or other Paint instance. * * @param paint Paint to fill with * @param paintStretched indicates if the paint should be stretched */ public MattePainter(Paint paint, boolean paintStretched) { super(paint); this.setPaintStretched(paintStretched); }
/** * Create a new MattePainter for the given Paint. This can be a GradientPaint * (the gradient will not grow when the component becomes larger unless * you use the paintStretched boolean property), * TexturePaint, Color, or other Paint instance. * * @param paint Paint to fill with * @param paintStretched indicates if the paint should be stretched */ public MattePainter(Paint paint, boolean paintStretched) { super(paint); this.setPaintStretched(paintStretched); }
/** * Create a new MattePainter for the given Paint. This can be a GradientPaint * (the gradient will not grow when the component becomes larger unless * you use the paintStretched boolean property), * TexturePaint, Color, or other Paint instance. * * @param paint Paint to fill with * @param paintStretched indicates if the paint should be stretched */ public MattePainter(Paint paint, boolean paintStretched) { super(paint); this.setPaintStretched(paintStretched); }
protected Painter createBackgroundPainter() { MattePainter p = new MattePainter(new GradientPaint(0, 0, gradientLightColor, 1, 0, gradientDarkColor)); p.setPaintStretched(true); return new PainterUIResource(p); }
protected Painter createBackgroundPainter() { MattePainter p = new MattePainter(new GradientPaint(0, 0, gradientLightColor, 1, 0, gradientDarkColor)); p.setPaintStretched(true); return new PainterUIResource(p); }
protected Painter createBackgroundPainter() { MattePainter p = new MattePainter(new GradientPaint(0, 0, gradientLightColor, 1, 0, gradientDarkColor)); p.setPaintStretched(true); return new PainterUIResource(p); }
protected Painter createBackgroundPainter() { MattePainter p = new MattePainter(new GradientPaint(0, 0, gradientLightColor, 1, 0, gradientDarkColor)); p.setPaintStretched(true); return new PainterUIResource(p); }
protected Painter createBackgroundPainter() { MattePainter p = new MattePainter(new GradientPaint(0, 0, gradientLightColor, 1, 0, gradientDarkColor)); p.setPaintStretched(true); return new PainterUIResource(p); }