|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.jagrlib.DefaultProperty
cz.cuni.jagrlib.Piece
cz.cuni.jagrlib.DefaultInputListener
cz.cuni.jagrlib.piece.MouseFrame
public class MouseFrame
Rectangle image frame defined by interactive mouse input.
Field Summary | |
---|---|
protected boolean |
all
Need to repaint the whole canvas? |
protected static java.lang.String |
CATEGORY
Object category. |
protected boolean |
dragging
Right mouse button - dragging. |
protected GraphicsViewer |
gw
Accelerator - viewer window reference. |
static RegPiece |
reg
Static registration instance for this class. |
protected boolean |
stretching
Left mouse button - stretching. |
protected static java.lang.String |
TEMPLATE_NAME
Object template identifier. |
protected int |
x0
X coordinate of frame origin (or Integer.MIN_VALUE if no frame is defined). |
protected int |
x1
X coordinate of opposite frame corner. |
protected int |
xi
X coordinate of invalidated point. |
protected int |
xr
X coordinate of right mouse dragging. |
protected int |
y0
Y coordinate of frame origin. |
protected int |
y1
Y coordinate of opposite frame corner. |
protected int |
yi
Y coordinate of invalidated point. |
protected int |
yr
Y coordinate of right mouse dragging. |
Fields inherited from class cz.cuni.jagrlib.Piece |
---|
channels, info, pl, plugs, TEMPLATE_TYPE, userBreak |
Fields inherited from interface cz.cuni.jagrlib.iface.InputListener |
---|
BUTTON1, BUTTON2, BUTTON3 |
Fields inherited from interface cz.cuni.jagrlib.iface.Property |
---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
Constructor Summary | |
---|---|
MouseFrame()
|
Method Summary | |
---|---|
void |
mouseButton(java.lang.Object sender,
long when,
int x,
int y,
int button,
boolean press,
int flags)
Mouse button was pressed/released. |
void |
mouseMove(java.lang.Object sender,
long when,
int x,
int y,
int flags)
Mouse pointer was moved. |
protected void |
setFrame()
Sets actual HUD frame into attached viewer window. |
static int |
setTemplate(Template t,
int ord)
General-purpose registration routine. |
Methods inherited from class cz.cuni.jagrlib.DefaultInputListener |
---|
keyboard, mouseHover, mouseWheel, setWindowSize, windowClose |
Methods inherited from class cz.cuni.jagrlib.Piece |
---|
className, connect, findPlug, findPlug, getInfo, getInterface, getInterface, getPlug, getReg, init, isCompatible, isCompatible, isConnected, logError, logWarning, myInterface, newInputPlug, newOptOutputPlug, newOutputPlug, newPlug, noTemplates, propBegin, propBounds, propDefault, propEnd, propEnum, propManipulator, propManipulator, setProgressListener, setRegStrings, setTemplateDynamic, stop |
Methods inherited from class cz.cuni.jagrlib.DefaultProperty |
---|
booleanProperty, booleanProperty, colorDoubleProperty, colorProperty, commit, doubleProperty, doubleProperty, doubleProperty, enumProperty, floatProperty, floatProperty, floatProperty, get, intProperty, intProperty, intProperty, longProperty, longProperty, longProperty, set, set, stringProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int x0
Integer.MIN_VALUE
if no frame is defined).
protected int y0
protected int x1
protected int y1
protected int xr
protected int yr
protected boolean stretching
protected boolean dragging
protected GraphicsViewer gw
protected int xi
protected int yi
protected boolean all
protected static final java.lang.String TEMPLATE_NAME
protected static final java.lang.String CATEGORY
public static final RegPiece reg
Constructor Detail |
---|
public MouseFrame()
Method Detail |
---|
protected void setFrame()
public void mouseButton(java.lang.Object sender, long when, int x, int y, int button, boolean press, int flags)
mouseButton
in interface InputListener
mouseButton
in class DefaultInputListener
sender
- Originator of the eventwhen
- System time in milliseconds.x
- Horizontal screen position in pixels.y
- Vertical screen position in pixels.button
- Button number (InputListener.BUTTON1
, etc.).press
- Was it press or release?flags
- Input system status (key shifts/alts, ..).public void mouseMove(java.lang.Object sender, long when, int x, int y, int flags)
mouseMove
in interface InputListener
mouseMove
in class DefaultInputListener
sender
- Originator of the eventwhen
- System time in milliseconds.x
- Horizontal screen position in pixels.y
- Vertical screen position in pixels.flags
- Input system status (key shifts/alts, ..).public static int setTemplate(Template t, int ord)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |