String costString = null;
String costString;
        private void drawMovementCost(MoveStep step, Point stepPos, Graphics graph, Color col, boolean shiftFlag) {            String costString = null;            StringBuffer costStringBuf = new StringBuffer();            costStringBuf.append(step.getMpUsed());            // If the step is using a road bonus, mark it.            if (step.isPavementStep() && step.getParent().getEntity() instanceof Tank) {                costStringBuf.append("+"); //$NON-NLS-1$            }            // If the step is dangerous, mark it.            if (step.isDanger()) {                costStringBuf.append("*"); //$NON-NLS-1$            }            // If the step is past danger, mark that.            if (step.isPastDanger()) {                costStringBuf.insert(0, "("); //$NON-NLS-1$                costStringBuf.append(")"); //$NON-NLS-1$            }            if (step.isUsingMASC()) {                costStringBuf.append("["); //$NON-NLS-1$                costStringBuf.append(step.getTargetNumberMASC());                costStringBuf.append("+]"); //$NON-NLS-1$            }            if (step.getMovementType() == IEntityMovementType.MOVE_VTOL_WALK                    || step.getMovementType() == IEntityMovementType.MOVE_VTOL_RUN                    || step.getMovementType() == IEntityMovementType.MOVE_SUBMARINE_WALK                    || step.getMovementType() == IEntityMovementType.MOVE_SUBMARINE_RUN                    || step.getElevation() != 0) {                costStringBuf.append("{")                        .append(step.getElevation())                        .append("}");            }            // Convert the buffer to a String and draw it.            costString = costStringBuf.toString();            graph.setFont(new Font("SansSerif", Font.PLAIN, 12)); //$NON-NLS-1$            int costX = stepPos.x + 42;            if (shiftFlag) {                costX -= (graph.getFontMetrics(graph.getFont()).stringWidth(costString) / 2);            }            graph.setColor(Color.darkGray);            graph.drawString(costString, costX, stepPos.y + 39);            graph.setColor(col);            graph.drawString(costString, costX - 1, stepPos.y + 38);        }