|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.barbecue.Module
net.sourceforge.barbecue.CompositeModule
Specific implementation of Module that allows the grouping of multiple Modules into one parent module.
Note: You should not instantiate this class directly.
Field Summary |
Fields inherited from class net.sourceforge.barbecue.Module |
bars |
Constructor Summary | |
CompositeModule()
Constructs a new Composite module that is initially empty. |
Method Summary | |
void |
add(Module module)
Adds the given module to this composite module. |
protected double |
draw(AbstractOutput output,
double x,
double y)
Draws the module to the given outputter at the specified origin. |
Module |
getModule(int index)
Returns the child module at the specified index. |
java.lang.String |
getSymbol()
Returns the symbol group encoded by this module. |
int |
size()
Returns the number of modules currently contained within this composite module. |
Methods inherited from class net.sourceforge.barbecue.Module |
equals, hashCode, setSymbol, toString, widthInBars |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CompositeModule()
Method Detail |
public void add(Module module)
module
- The module to addpublic int size()
public Module getModule(int index)
index
- The module index
public java.lang.String getSymbol()
getSymbol
in class Module
protected double draw(AbstractOutput output, double x, double y)
draw
in class Module
output
- The outputter to draw tox
- The X component of the originy
- The Y component of the origin
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |