One option would be to wrap the graphics object that you are passing around and add getters and setters for individual properties that are otherwise only available as parameters.
Pseudo-code:
public class CustomGraphics
{
// -- here is the wrapped graphics object
protected var _graphics:Graphics;
// -- unique properties for line style
protected var _lineColor:uint;
protected var _lineThickness:int;
protected var _lineAlpha:Number;
public function CustomGraphics( gfx:Graphics )
{
_graphics = gfx;
_lineColor = 0;
_lineThickness = 1;
_lineAlpha = 1;
draw();
}
public function set lineAlpha( value:Number ):void
{
if( _lineAlpha != value ) {
_lineAlpha = value;
// -- insert code to redraw or invalidate here
draw();
}
}
public function draw():void {
_graphics.setLineStyle( _lineThickness, _lineColor, _lineAlpha );
}
}