fr.emn.examples.icondraw
Class DInDraw

java.lang.Object
  extended byfr.emn.reactiveinput.AbstractDevice
      extended byfr.emn.examples.icondraw.DInDraw
All Implemented Interfaces:
Device, Processor

public class DInDraw
extends AbstractDevice


Field Summary
 Out inside
           
protected  java.awt.Point pt
           
 In x
           
 In y
           
 
Fields inherited from class fr.emn.reactiveinput.AbstractDevice
currIndex, ins, outs
 
Fields inherited from interface fr.emn.reactiveinput.Device
AUTO_PROPERTIES
 
Constructor Summary
DInDraw()
           
DInDraw(java.lang.String name, DrawView view)
           
 
Method Summary
 void paint(java.awt.Graphics2D g)
           
 void update()
          Updates device's output values.
 
Methods inherited from class fr.emn.reactiveinput.AbstractDevice
addIn, addIn, addOut, close, copy, doDisable, doEnable, finalize, getError, getIndex, getInfo, getIns, getName, getOuts, getProperties, hasExternalInput, hasExternalOutput, init, insertAt, insertAtEnd, insertBefore, isCopiable, isEnabled, isOpenable, open, setEnabled, setInfo, setInfo, setLastError, setName
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public final In x

y

public final In y

inside

public final Out inside

pt

protected java.awt.Point pt
Constructor Detail

DInDraw

public DInDraw()

DInDraw

public DInDraw(java.lang.String name,
               DrawView view)
Method Detail

paint

public void paint(java.awt.Graphics2D g)

update

public void update()
Description copied from class: AbstractDevice
Updates device's output values.

Subclass init() and update() methods if you want the device to process the data itself. Otherwise, subclass getProcessor() method to use extern processors.

Specified by:
update in interface Processor
Overrides:
update in class AbstractDevice
See Also:
Processor.update()