visual.statik.described
Class AggregateContent

java.lang.Object
  extended by visual.statik.AbstractTransformableContent
      extended by visual.statik.AbstractAggregateContent<Content>
          extended by visual.statik.described.AggregateContent
All Implemented Interfaces:
SimpleContent, TransformableContent

public class AggregateContent
extends AbstractAggregateContent<Content>
implements TransformableContent

A simple collection of Content objects This class is less flexible than the CompositeContent class but is simpler for some purposes.

See Also:
"The Design and Implementation of Multimedia Software © 2011"

Field Summary
 
Fields inherited from class visual.statik.AbstractAggregateContent
components
 
Fields inherited from class visual.statik.AbstractTransformableContent
angle, relocated, rerotated, rescaled, x, xRotation, xScale, y, yRotation, yScale
 
Constructor Summary
AggregateContent()
          Default Constructor
 
Method Summary
 void setColor(java.awt.Color color)
          Set the Color to use for stroking
 void setPaint(java.awt.Paint paint)
          Set the Paint to use for filling
 void setStroke(java.awt.Stroke stroke)
          Set the Stroke to use
 
Methods inherited from class visual.statik.AbstractAggregateContent
add, getBounds2D, iterator, remove, render
 
Methods inherited from class visual.statik.AbstractTransformableContent
getAffineTransform, getBounds2D, isTransformationRequired, setLocation, setRotation, setScale, setScale, setTransformationRequired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface visual.statik.TransformableContent
getBounds2D, setLocation, setRotation, setScale
 
Methods inherited from interface visual.statik.SimpleContent
render
 

Constructor Detail

AggregateContent

public AggregateContent()
Default Constructor

Method Detail

setColor

public void setColor(java.awt.Color color)
Set the Color to use for stroking

Parameters:
color - The Color to use (or null to prevent stroking)

setPaint

public void setPaint(java.awt.Paint paint)
Set the Paint to use for filling

Parameters:
paint - The Paint to use (or null to prevent filling)

setStroke

public void setStroke(java.awt.Stroke stroke)
Set the Stroke to use

Parameters:
stroke - The Stroke to use (or null to use the default)


Design and Implementation of Multimedia Software, Jones and Bartlett Publishers