void applyStroke( Stroke stroke, UOM uom, Shape object, double perpendicularOffset, PerpendicularOffsetType type ) {
if ( stroke == null || isZero( stroke.width ) ) {
graphics.setPaint( new Color( 0, 0, 0, 0 ) );
return;
}
if ( stroke.fill == null ) {
graphics.setPaint( stroke.color );
} else {
fillRenderer.applyGraphicFill( stroke.fill, uom );
}
if ( stroke.stroke != null ) {
if ( applyGraphicStroke( stroke, uom, object, perpendicularOffset, type ) ) {
return;
}
} else {
applyNormalStroke( stroke, uom, object, perpendicularOffset, type );
}
graphics.draw( object );
}