sjm.examples.sling
Class AddFunctionCommand
java.lang.Object
|
+--sjm.imperative.Command
|
+--sjm.examples.sling.AddFunctionCommand
- public class AddFunctionCommand
- extends Command
This command, when executed, evaluates a renderable
function and adds it to a renderable collection.
|
Method Summary |
void |
execute()
Evaluate the function and add it to the collection. |
java.lang.String |
toString()
Returns a string description of this command. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
renderables
protected RenderableCollection renderables
f
protected SlingFunction f
nLine
protected Variable nLine
AddFunctionCommand
public AddFunctionCommand(RenderableCollection renderables,
SlingFunction f,
Variable nLine)
- Construct a command to add the supplied function to the
supplied function collection.
- Parameters:
RenderableCollection - the collectionSlingFunction - the function to evaluate and add
at execution timenLine - a varialbe representing the number of
lines to plot when rendering the
function
execute
public void execute()
- Evaluate the function and add it to the collection.
- Overrides:
- execute in class Command
toString
public java.lang.String toString()
- Returns a string description of this command.
- Overrides:
- toString in class java.lang.Object
- Returns:
- a string description of this command