public RectanglePainter(Paint fillPaint, Paint borderPaint, float borderWidth, RectanglePainter.Style style) { this(); setFillPaint(fillPaint); setBorderPaint(borderPaint); setBorderWidth(borderWidth); setStyle(style); } public RectanglePainter(int top, int left, int bottom, int right) {
public RectanglePainter(int top, int left, int bottom, int right, int roundWidth, int roundHeight, boolean rounded, Paint fillPaint, float strokeWidth, Paint borderPaint) { this.setInsets(new Insets(top,left,bottom,right)); setFillVertical(true); setFillHorizontal(true); this.roundWidth = roundWidth; this.roundHeight = roundHeight; this.rounded = rounded; this.setFillPaint(fillPaint); this.setBorderWidth(strokeWidth); this.setBorderPaint(borderPaint); }
public RectanglePainter(Insets insets, int width, int height, int roundWidth, int roundHeight, boolean rounded, Paint fillPaint, float strokeWidth, Paint borderPaint) { this.width = width; this.height = height; setFillHorizontal(false); setFillVertical(false); setInsets(insets); this.roundWidth = roundWidth; this.roundHeight = roundHeight; this.rounded = rounded; this.setFillPaint(fillPaint); this.setBorderWidth(strokeWidth); this.setBorderPaint(borderPaint); }
public RectanglePainter(Insets insets, int width, int height, int roundWidth, int roundHeight, boolean rounded, Paint fillPaint, float strokeWidth, Paint borderPaint) { this.width = width; this.height = height; setFillHorizontal(width < 0); setFillVertical(height < 0); setInsets(insets); this.roundWidth = roundWidth; this.roundHeight = roundHeight; this.rounded = rounded; this.setFillPaint(fillPaint); this.setBorderWidth(strokeWidth); this.setBorderPaint(borderPaint); this.setDirty(false); }
public RectanglePainter(Insets insets, int width, int height, int roundWidth, int roundHeight, boolean rounded, Paint fillPaint, float strokeWidth, Paint borderPaint) { this.width = width; this.height = height; setFillHorizontal(width < 0); setFillVertical(height < 0); setInsets(insets); this.roundWidth = roundWidth; this.roundHeight = roundHeight; this.rounded = rounded; this.setFillPaint(fillPaint); this.setBorderWidth(strokeWidth); this.setBorderPaint(borderPaint); this.setDirty(false); }
public RectanglePainter(Insets insets, int width, int height, int roundWidth, int roundHeight, boolean rounded, Paint fillPaint, float strokeWidth, Paint borderPaint) { this.width = width; this.height = height; setFillHorizontal(width < 0); setFillVertical(height < 0); setInsets(insets); this.roundWidth = roundWidth; this.roundHeight = roundHeight; this.rounded = rounded; this.setFillPaint(fillPaint); this.setBorderWidth(strokeWidth); this.setBorderPaint(borderPaint); this.setDirty(false); }