sjm.examples.sling
Class SliderAssembler
java.lang.Object
|
+--sjm.parse.Assembler
|
+--sjm.examples.sling.SliderAssembler
- public class SliderAssembler
- extends Assembler
Uses one of the sliders in an assembly's target to create
a Slider function, and pushes this
function.
This class expects the assembly's target to contain a
SlingPlot object which holds references to
two JSlider objects. This class's
constructor determines which slider to ask for. When an
object of this class works on an assembly, it gets the
slider component from the target, creates a
Slider function with it, and pushes this
function.
|
Field Summary |
protected int |
slider
|
|
Constructor Summary |
SliderAssembler(int slider)
Creates an assembler that will extract the indicated
slider from an assembly's target. |
|
Method Summary |
void |
workOn(Assembly a)
Push a Slider object formed from a
JSlider
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
slider
protected int slider
SliderAssembler
public SliderAssembler(int slider)
- Creates an assembler that will extract the indicated
slider from an assembly's target.
workOn
public void workOn(Assembly a)
- Push a
Slider object formed from a
JSlider
Ask the assembly's target, which must be a SlingTarget
, for a JSlider component. Which slider
to ask for depends on the int this object was constructed
with. Create a Slider around this JSlider
, and push it.
- Overrides:
- workOn in class Assembler
- Parameters:
Assembly - the assembly to work on