com.flagstone.transform.shape
Interface ShapeTag

All Superinterfaces:
Copyable<MovieTag>, DefineTag, MovieTag, SWFEncodeable
All Known Implementing Classes:
DefineMorphShape, DefineMorphShape2, DefineShape, DefineShape2, DefineShape3, DefineShape4

public interface ShapeTag
extends DefineTag

The ShapeTag interface provides a common set of methods for accessing the bounding box, line styles, fill styles and shape of all the different shape definitions available in Flash.


Method Summary
 ShapeTag add(FillStyle style)
          Add a fill style.
 ShapeTag add(LineStyle style)
          Add a line style.
 Bounds getBounds()
          Get the bounding rectangle that completely enclosed the shape.
 List<FillStyle> getFillStyles()
          Get the list fill styles.
 List<LineStyle> getLineStyles()
          Get the list line styles.
 Shape getShape()
          Get the shape.
 void setBounds(Bounds rect)
          Sets the bounding rectangle that encloses the shape.
 void setFillStyles(List<FillStyle> styles)
          Sets the list fill styles that will be used to draw the shape.
 void setLineStyles(List<LineStyle> styles)
          Sets the list of styles that will be used to draw the outline of the shape.
 void setShape(Shape aShape)
          Sets the shape.
 
Methods inherited from interface com.flagstone.transform.DefineTag
getIdentifier, setIdentifier
 
Methods inherited from interface com.flagstone.transform.coder.SWFEncodeable
encode, prepareToEncode
 
Methods inherited from interface com.flagstone.transform.coder.Copyable
copy
 

Method Detail

getBounds

Bounds getBounds()
Get the bounding rectangle that completely enclosed the shape.

Returns:
the Bounds that encloses the shape

setBounds

void setBounds(Bounds rect)
Sets the bounding rectangle that encloses the shape.

Parameters:
rect - set the bounding rectangle for the shape. Must not be null.

getLineStyles

List<LineStyle> getLineStyles()
Get the list line styles.

Returns:
the list of line styles used in the shape.

setLineStyles

void setLineStyles(List<LineStyle> styles)
Sets the list of styles that will be used to draw the outline of the shape.

Parameters:
styles - the line styles for the shape. Must not be null.

add

ShapeTag add(LineStyle style)
Add a line style.

Parameters:
style - an instance of LineStyle. Must not be null.
Returns:
this ShapeTag object.

getFillStyles

List<FillStyle> getFillStyles()
Get the list fill styles.

Returns:
the list of fill styles used in the shape.

setFillStyles

void setFillStyles(List<FillStyle> styles)
Sets the list fill styles that will be used to draw the shape.

Parameters:
styles - the fill styles for the shape. Must not be null.

add

ShapeTag add(FillStyle style)
Add a fill style.

Parameters:
style - an instance of FillStyle. Must not be null.
Returns:
this ShapeTag object.

getShape

Shape getShape()
Get the shape.

Returns:
the shape.

setShape

void setShape(Shape aShape)
Sets the shape.

Parameters:
aShape - set the shape to be drawn. Must not be null.


Copyright © 2002-2010 Flagstone Software Ltd.. All Rights Reserved.