public class CalculatorCollectionManager
extends java.lang.Object
Constructor and Description |
---|
CalculatorCollectionManager(IContainer container,
CalculatorEventProcessor eventProcessor)
Instantiates a new calculator collection manager.
|
Modifier and Type | Method and Description |
---|---|
Calculator |
addCalculator(java.lang.String name,
float x,
float y)
Adds the calculator.
|
Calculator |
getCalculatorForUser(java.lang.String user)
Gets the calculator for user.
|
java.util.Collection<java.lang.String> |
getUsersWhoHaveCalculators()
Gets the users who have calculators.
|
void |
removeCalculator(java.lang.String name)
Removes the calculator.
|
void |
setAllCalculatorsVisible(boolean visible)
Sets the all calculators visible.
|
void |
setAvailableCalculatorCollection(java.util.List<java.lang.String> names)
Sets the available calculator collection.
|
public CalculatorCollectionManager(IContainer container, CalculatorEventProcessor eventProcessor)
container
- the containereventProcessor
- the event processorpublic Calculator addCalculator(java.lang.String name, float x, float y)
name
- the namex
- the xy
- the ypublic Calculator getCalculatorForUser(java.lang.String user)
user
- the userpublic java.util.Collection<java.lang.String> getUsersWhoHaveCalculators()
public void removeCalculator(java.lang.String name)
name
- the namepublic void setAllCalculatorsVisible(boolean visible)
visible
- the new all calculators visiblepublic void setAvailableCalculatorCollection(java.util.List<java.lang.String> names)
names
- the new available calculator collection