public class CompositeModule extends Module
| 构造器和说明 |
|---|
CompositeModule()
Constructs a new Composite module that is initially empty.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
public CompositeModule()
public void add(Module module)
module - The module to addpublic int size()
public Module getModule(int index)
index - The module indexpublic java.lang.String getSymbol()
protected double draw(AbstractOutput output, double x, double y)