|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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 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. |
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. |
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). |
Methods inherited from class net.sourceforge.barbecue.Module |
equals, hashCode, setSymbol, toString |
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
public int widthInBars()
widthInBars
in class Module
protected int draw(Output output, int x, int y, int barWidth, int barHeight) throws OutputException
draw
in class Module
output
- The outputter to draw tox
- The X component of the originy
- The Y component of the originbarWidth
- barHeight
-
OutputException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |