135136137138139140141142143144145
g2.setStroke(new BasicStroke(metrics.getHeight() / 14)); g2.drawLine(x, y, x + textWidth, y); //state.postDraw(); } state.postDrawText(); } protected int calcDeltaX(final int valign, final int textWidth) { if (valign == TextConstants.TA_LEFT)
5758596061626364656667
final Graphics2D graphics = file.getGraphics2D(); final MfDcState state = file.getCurrentState(); state.prepareDrawText(); graphics.drawString(text, x, y); state.postDrawText(); } /** * Creates a empty unintialized copy of this command implementation. *