fr.emn.examples.icondraw
Class DLine
java.lang.Object
fr.emn.reactiveinput.AbstractDevice
fr.emn.examples.icondraw.DTool
fr.emn.examples.icondraw.DBrushTool
fr.emn.examples.icondraw.DLine
- All Implemented Interfaces:
- Device, Processor
- public class DLine
- extends DBrushTool
Field Summary |
protected java.awt.Point |
pp1
|
protected java.awt.Point |
pp2
|
In |
x2
|
In |
y2
|
Fields inherited from class fr.emn.examples.icondraw.DBrushTool |
a, b, color, context, g, r, stroke, w_val, width, x, y |
Method Summary |
void |
paint(java.awt.Graphics2D g)
Draw brush feedback |
void |
update_abort()
Aborts an interaction. |
boolean |
update_begin()
Initiates an interaction.
|
void |
update_end()
Ends and validates an interaction. |
void |
update_value(boolean force)
Update interaction values.
|
Methods inherited from class fr.emn.examples.icondraw.DTool |
close, copy, getActivated, getScreenCoordinates, hasExternalOutput, isActive, isUsed, setActivated, setScreenCoordinates, toLocal, update |
Methods inherited from class fr.emn.reactiveinput.AbstractDevice |
addIn, addIn, addOut, 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 |
x2
public final In x2
y2
public final In y2
pp1
protected java.awt.Point pp1
pp2
protected java.awt.Point pp2
DLine
public DLine()
DLine
public DLine(java.lang.String name,
DrawView view)
paint
public void paint(java.awt.Graphics2D g)
- Description copied from class:
DBrushTool
- Draw brush feedback
- Overrides:
paint
in class DBrushTool
update_abort
public void update_abort()
- Description copied from class:
DTool
- Aborts an interaction.
- Specified by:
update_abort
in class DTool
update_begin
public boolean update_begin()
- Description copied from class:
DTool
- Initiates an interaction.
You can refuse starting an interaction by returning false (e.g. if you do not have
enough data). This method will be re-checked the next tick.
- Overrides:
update_begin
in class DBrushTool
update_end
public void update_end()
- Description copied from class:
DTool
- Ends and validates an interaction.
- Specified by:
update_end
in class DTool
update_value
public void update_value(boolean force)
- Description copied from class:
DTool
- Update interaction values.
This method is called during an interaction every time a value may have changed.
Additionnaly, it is called with first=true just after interaction has been
initiated (provided that update_begin returned true) and just before interaction has
been aborted or validated.
- Overrides:
update_value
in class DBrushTool