@Override public Canvas strokeRect(float x, float y, float w, float h) { ctx.strokeRect(x, y, w, h); isDirty = true; return this; }
@Override public Canvas strokeRect(float x, float y, float w, float h) { ctx.strokeRect(x, y, w, h); isDirty = true; return this; }
@Override public Canvas strokeRect(float x, float y, float w, float h) { ctx.strokeRect(x, y, w, h); isDirty = true; return this; }
@Override public void paint(Canvas canvas, Matrix matrix) { canvas.getContext2d().save(); canvas.getContext2d().setFillStyle(fillStyle); canvas.getContext2d().fillRect(box.getX(), box.getY(), box.getWidth(), box.getHeight()); canvas.getContext2d().setStrokeStyle(strokeStyle); canvas.getContext2d().setLineWidth(strokeWidthPixels / matrix.getXx()); canvas.getContext2d().strokeRect(box.getX(), box.getY(), box.getWidth(), box.getHeight()); canvas.getContext2d().restore(); }
@Override public void paint(Canvas canvas, Matrix matrix) { canvas.getContext2d().save(); canvas.getContext2d().setFillStyle(fillStyle); canvas.getContext2d().fillRect(box.getX(), box.getY(), box.getWidth(), box.getHeight()); canvas.getContext2d().setStrokeStyle(strokeStyle); canvas.getContext2d().setLineWidth(strokeWidthPixels / matrix.getXx()); canvas.getContext2d().strokeRect(box.getX(), box.getY(), box.getWidth(), box.getHeight()); canvas.getContext2d().restore(); }
ctx.strokeRect(rect.getX(), rect.getY(), rect.getWidth(), rect.getHeight());