net.paulhertz.aifile
Interface ColorableINF

All Known Implementing Classes:
BezCircle, BezCurve, BezCurveShape, BezEllipse, BezLine, BezMultiCurve, BezMultiLine, BezPoly, BezRectangle, BezRegularPoly, BezShape, BezTriangle, ShapeAttributeVisitor, Turtle

public interface ColorableINF


Method Summary
 int fillColor()
           
 int fillOpacity()
           
 boolean hasFill()
           
 boolean hasStroke()
           
 void setFillColor(int newFillColor)
          Sets the current fill color.
 void setFillOpacity(int opacity)
          Sets opacity of current fill color.
 void setNoFill()
          Marks this component as having no fill.
 void setNoStroke()
          Marks this component as having no stroke Equivalent to setHasStroke(false), if the implementor provides a setHasStroke method
 void setStrokeColor(int newStrokeColor)
          Sets the current stroke color.
 void setStrokeOpacity(int opacity)
          Sets opacity of current stroke color.
 void setWeight(float newWeight)
           
 int strokeColor()
           
 int strokeOpacity()
           
 float weight()
          Returns the current weight (in points) of stroked lines.
 

Method Detail

hasFill

boolean hasFill()
Returns:
true if this component is filled, false otherwise

setNoFill

void setNoFill()
Marks this component as having no fill. Equivalent to setHasFill(false), if the implementor provides a setHasFill method


hasStroke

boolean hasStroke()
Returns:
true if this component is stroked, false otherwise

setNoStroke

void setNoStroke()
Marks this component as having no stroke Equivalent to setHasStroke(false), if the implementor provides a setHasStroke method


fillColor

int fillColor()
Returns:
the current fill color

setFillColor

void setFillColor(int newFillColor)
Sets the current fill color.

Parameters:
newFillColor - a Processing color (32-bit int with ARGB bytes).

strokeColor

int strokeColor()
Returns:
the current stroke color

setStrokeColor

void setStrokeColor(int newStrokeColor)
Sets the current stroke color.

Parameters:
newStrokeColor - a Processing color (32-bit int with ARGB bytes).

setFillOpacity

void setFillOpacity(int opacity)
Sets opacity of current fill color.

Parameters:
opacity - a number in the range 0..255. Value is not checked!

fillOpacity

int fillOpacity()
Returns:
the opacity value of the current fill color

setStrokeOpacity

void setStrokeOpacity(int opacity)
Sets opacity of current stroke color.

Parameters:
opacity - a number in the range 0..255. Value is not checked!

strokeOpacity

int strokeOpacity()
Returns:
the opacity value of the current stroke color

weight

float weight()
Returns the current weight (in points) of stroked lines.

Returns:
the current weight (in points) of stroked lines. One point = one pixel on screen.

setWeight

void setWeight(float newWeight)
Parameters:
newWeight - the new weight of stroked lines.


Processing library IgnoCodeLib by Paul Hertz. (C) 2013