public void setTo(OMGraphic graphic) { setOMGraphicEdgeAttributes(graphic);         if (fillPattern != null && (fillPaint == null || OMGraphic.isClear(fillPaint))) { graphic.setFillPaint(fillPattern); } else { graphic.setFillPaint(fillPaint); graphic.setTextureMask(fillPattern); }  graphic.setMatted(matted); graphic.setMattingPaint(mattingPaint);  if (graphic instanceof OMPoint) { ((OMPoint)graphic).setRadius(pointRadius); ((OMPoint)graphic).setOval(pointOval); }
public void setTo(DrawingAttributes clone) { clone.linePaint = linePaint;  clone.selectPaint = selectPaint; clone.fillPaint = fillPaint; clone.mattingPaint = mattingPaint; clone.fillPattern = fillPattern; clone.setStroke(stroke); clone.baseScale = baseScale; clone.matted = matted;
    public void setTo(OMGraphic graphic) {        setOMGraphicEdgeAttributes(graphic);        // If the fillPattern is set to a TexturePaint, and the        // fillPaint is null or clear, then the fillPattern will be        // set as the fill paint.  Otherwise, the fillPaint will be        // set in the OMGraphic, and the fillPattern will be set too.        // If the OMGraphic.textureMask is != null, then it will get        // painted on top of the fillPaint.  Makes for effects if the        // fillPattern has some transparent spots.        if (fillPattern != null &&             (fillPaint == null || OMGraphic.isClear(fillPaint))) {            graphic.setFillPaint(fillPattern);        } else {            graphic.setFillPaint(fillPaint);            graphic.setTextureMask(fillPattern);        }        graphic.setMatted(matted);        graphic.setMattingPaint(mattingPaint);        if (graphic instanceof OMPoint) {            ((OMPoint)graphic).setRadius(pointRadius);            ((OMPoint)graphic).setOval(pointOval);        }    }