@Override public Canvas drawPoint(float x, float y) { currentState().prepareStroke(g2d); g2d.drawLine((int) x, (int) y, (int) x, (int) y); isDirty = true; return this; }
@Override public Canvas drawPoint(float x, float y) { currentState().prepareStroke(g2d); g2d.drawLine((int) x, (int) y, (int) x, (int) y); isDirty = true; return this; }
@Override public Canvas drawPoint(float x, float y) { currentState().prepareStroke(gfx); gfx.drawLine((int) x, (int) y, (int) x, (int) y); isDirty = true; return this; }
@Override public Canvas strokePath(Path path) { currentState().prepareStroke(g2d); g2d.setColor(new Color(currentState().strokeColor, false)); g2d.draw(((JavaPath) path).path); isDirty = true; return this; }
@Override public Canvas strokePath(Path path) { currentState().prepareStroke(gfx); gfx.setColor(new Color(currentState().strokeColor, false)); gfx.draw(((JavaPath) path).path); isDirty = true; return this; }
@Override public Canvas strokePath(Path path) { currentState().prepareStroke(g2d); g2d.setColor(new Color(currentState().strokeColor, false)); g2d.draw(((JavaPath) path).path); isDirty = true; return this; }
@Override public Canvas strokePath(Path path) { currentState().prepareStroke(gfx); gfx.setColor(new Color(currentState().strokeColor, false)); gfx.draw(((JavaPath) path).path); isDirty = true; return this; }
@Override public Canvas strokeRoundRect(float x, float y, float width, float height, float radius) { currentState().prepareStroke(gfx); roundRect.setRoundRect(x, y, width, height, radius*2, radius*2); gfx.draw(roundRect); isDirty = true; return this; }
@Override public Canvas drawLine(float x0, float y0, float x1, float y1) { currentState().prepareStroke(g2d); line.setLine(x0, y0, x1, y1); g2d.draw(line); isDirty = true; return this; }
@Override public Canvas strokeCircle(float x, float y, float radius) { currentState().prepareStroke(g2d); ellipse.setFrame(x - radius, y - radius, 2 * radius, 2 * radius); g2d.draw(ellipse); isDirty = true; return this; }
@Override public Canvas strokeCircle(float x, float y, float radius) { currentState().prepareStroke(gfx); ellipse.setFrame(x - radius, y - radius, 2 * radius, 2 * radius); gfx.draw(ellipse); isDirty = true; return this; }
@Override public Canvas strokeRect(float x, float y, float width, float height) { currentState().prepareStroke(gfx); rect.setRect(x, y, width, height); gfx.draw(rect); isDirty = true; return this; }
@Override public Canvas strokeRect(float x, float y, float width, float height) { currentState().prepareStroke(g2d); rect.setRect(x, y, width, height); g2d.draw(rect); isDirty = true; return this; }
@Override public Canvas strokeRoundRect(float x, float y, float width, float height, float radius) { currentState().prepareStroke(g2d); roundRect.setRoundRect(x, y, width, height, radius*2, radius*2); g2d.draw(roundRect); isDirty = true; return this; }
@Override public Canvas strokeRect(float x, float y, float width, float height) { currentState().prepareStroke(g2d); rect.setRect(x, y, width, height); g2d.draw(rect); isDirty = true; return this; }
@Override public Canvas strokeRoundRect(float x, float y, float width, float height, float radius) { currentState().prepareStroke(g2d); roundRect.setRoundRect(x, y, width, height, radius*2, radius*2); g2d.draw(roundRect); isDirty = true; return this; }
@Override public Canvas strokeCircle(float x, float y, float radius) { currentState().prepareStroke(g2d); ellipse.setFrame(x - radius, y - radius, 2 * radius, 2 * radius); g2d.draw(ellipse); isDirty = true; return this; }
@Override public Canvas drawLine(float x0, float y0, float x1, float y1) { currentState().prepareStroke(gfx); line.setLine(x0, y0, x1, y1); gfx.draw(line); isDirty = true; return this; }
@Override public Canvas strokeRoundRect(float x, float y, float width, float height, float radius) { currentState().prepareStroke(gfx); roundRect.setRoundRect(x, y, width, height, radius*2, radius*2); gfx.draw(roundRect); isDirty = true; return this; }
@Override public Canvas strokeText(TextLayout layout, float x, float y) { currentState().prepareStroke(g2d); ((JavaTextLayout)layout).stroke(g2d, x, y); isDirty = true; return this; }