fr.emn.reactiveinput.devices
Class DQuikWrite

java.lang.Object
  extended byfr.emn.reactiveinput.AbstractDevice
      extended byfr.emn.reactiveinput.devices.DQuikWrite
All Implemented Interfaces:
Device, Processor

public class DQuikWrite
extends AbstractDevice


Field Summary
 Out action_backspace
           
 Out action_enter
           
 Out area
           
 In help
           
 Out text
           
 In transparency
           
 In use
           
 Out usethru
           
 In x
           
 Out xthru
           
 In y
           
 Out ythru
           
 
Fields inherited from class fr.emn.reactiveinput.AbstractDevice
currIndex, ins, outs
 
Fields inherited from interface fr.emn.reactiveinput.Device
AUTO_PROPERTIES
 
Constructor Summary
DQuikWrite()
           
 
Method Summary
protected  void checkAreaChange()
           
 void close()
          Add closing code here if needed.
 boolean getCenteredInsertionPoint()
           
 boolean getCharDisplayEnabled()
           
 double getDefaultTransparency()
           
 boolean getHighlightEnabled()
           
 int getTotalSize()
          Params
 boolean getTraceEnabled()
           
 boolean hasExternalOutput()
          Specifies whether this device has external (implicit) output or not.
 Processor open(OpenContext context)
          Subclass this method if you want to specialize data processing, or if you want to perform some initializations before running the device.
 void setCenteredInsertionPoint(boolean v)
           
 void setCharDisplayEnabled(boolean v)
           
 void setDefaultTransparency(double def)
           
 void setHighlightEnabled(boolean v)
           
 void setTotalSize(int size)
           
 void setTraceEnabled(boolean v)
           
 void update()
          Updates device's output values.
 
Methods inherited from class fr.emn.reactiveinput.AbstractDevice
addIn, addIn, addOut, copy, doDisable, doEnable, finalize, getError, getIndex, getInfo, getIns, getName, getOuts, getProperties, hasExternalInput, init, insertAt, insertAtEnd, insertBefore, isCopiable, isEnabled, isOpenable, 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

use

public final In use

transparency

public final In transparency

help

public final In help

usethru

public final Out usethru

xthru

public final Out xthru

ythru

public final Out ythru

text

public final Out text

action_backspace

public final Out action_backspace

action_enter

public final Out action_enter

area

public final Out area
Constructor Detail

DQuikWrite

public DQuikWrite()
Method Detail

open

public Processor open(OpenContext context)
Description copied from class: AbstractDevice
Subclass this method if you want to specialize data processing, or if you want to perform some initializations before running the device.

By default, open() does nothing and returns the device itself as the Processor (or null if it is not openable): AbstractDevice implements both Device and Processor interfaces, so that you can add processing code directly into the device.

If you want to add specialization features, subclass this method to return a specific processor implementation depending on your device configuration.

Example :

public Processor getProcessor() { if (super.open() == null) return null; // Select the right processor if (in2.isValid()) { return new twoParamProcessor(in1, in2, out); else return new oneParamProcessor(in1, out); }

In this method, you may also perform all necessary pre-running initialization. If initialization fails, return null even if isOpenable() returns true.

In all cases, return null if isOpenable() returns false.

Specified by:
open in interface Device
Overrides:
open in class AbstractDevice
See Also:
Processor, Device.open()

close

public void close()
Description copied from class: AbstractDevice
Add closing code here if needed.

Specified by:
close in interface Device
Overrides:
close in class AbstractDevice

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()

checkAreaChange

protected void checkAreaChange()

getTotalSize

public int getTotalSize()
Params


setTotalSize

public void setTotalSize(int size)

getDefaultTransparency

public double getDefaultTransparency()

setDefaultTransparency

public void setDefaultTransparency(double def)

hasExternalOutput

public boolean hasExternalOutput()
Description copied from class: AbstractDevice
Specifies whether this device has external (implicit) output or not. Returns false by default.

Return false if the device has no border effects. Most of input and processing devices are in this case.

Return true if the device has border effects, such as graphical feedback, or control of some external value. Examples of devices with external output are application-interfacing devices and all user feedback devices.

This method can be used by the editor for the device's graphical representation. However there is at now no clear definition of what is external output.

Specified by:
hasExternalOutput in interface Device
Overrides:
hasExternalOutput in class AbstractDevice

getHighlightEnabled

public boolean getHighlightEnabled()

setHighlightEnabled

public void setHighlightEnabled(boolean v)

getTraceEnabled

public boolean getTraceEnabled()

setTraceEnabled

public void setTraceEnabled(boolean v)

getCharDisplayEnabled

public boolean getCharDisplayEnabled()

setCharDisplayEnabled

public void setCharDisplayEnabled(boolean v)

getCenteredInsertionPoint

public boolean getCenteredInsertionPoint()

setCenteredInsertionPoint

public void setCenteredInsertionPoint(boolean v)