public class CompositeModule extends Module
| Constructor and Description |
|---|
CompositeModule()
Constructs a new Composite module that is initially empty.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Module module)
Adds the given module to this composite module.
|
protected int |
draw(Output output,
int x,
int y,
int barWidth,
int barHeight)
Draws the module to the given outputter at the specified origin.
|
Module |
getModule(int index)
Returns the child module at the specified index.
|
String |
getSymbol()
Returns the symbol group encoded by this module.
|
int |
size()
Returns the number of modules currently contained within this composite module.
|
int |
widthInBars()
Returns the underlying total width of the bars from the bar specification (that is, the sum of original bar widths
in base bar units).
|
public CompositeModule()
public void add(Module module)
module - The module to addpublic int size()
public Module getModule(int index)
index - The module indexpublic String getSymbol()
public int widthInBars()
widthInBars in class Moduleprotected int draw(Output output, int x, int y, int barWidth, int barHeight) throws OutputException
draw in class Moduleoutput - The outputter to draw tox - The X component of the originy - The Y component of the originbarWidth - barHeight - OutputExceptionCopyright © 2003-2013 barbecue.sourceforge.net. All Rights Reserved.