Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.HyperMouse
Source: src/com/multiversesocial/hyperview/HyperMouse.java

HyperMouse

HyperView V3.2 — class
version V3.2 class

Summary

boolean focusLock; static Object viewFocusLock; AKA An Excerpt from Somewhere in the JDK Source

Source file: HyperMouse.java

Hierarchy

Extends: Component

Implements: Runnable, HyperConstants, MouseHandlerConstants, ThreadReport

Referenced HyperView classes

Media files used

Declaration & members

public class HyperMouse extends Component implements Runnable, HyperConstants, MouseHandlerConstants, ThreadReport

Declared in src/com/multiversesocial/hyperview/HyperMouse.java, lines 1–826. 29 field(s), 1 constructor(s), 10 method(s). Every member has an anchor you can link to (e.g. HyperMouse.html#<id>).

Fields (29)

DeclarationValue / initializerDescriptionSource
int clickCountNo comment in source; assigned in HyperMouse(), run().line 32
int[][] coordinatesNo comment in source; assigned in HyperMouse(); used in run().line 35
HyperView curViewNo comment in source; assigned in HyperMouse(), setView(); used in run(), forbid().line 14
long doubleClickTimeNo comment in source; assigned in HyperMouse(); used in run().line 24
FileOutputStream fpNo comment in source; not referenced by name in this type’s methods.line 39
volatile int intBufferIndexNo comment in source; assigned in HyperMouse(); used in run().line 31
int iterationNo comment in source; assigned in HyperMouse(), run(), getRunInfo(); used in start().line 17
HyperKeyboard keyboardNo comment in source; assigned in HyperMouse(), setView(); used in run().line 28
int lastIterationNo comment in source; assigned in HyperMouse().line 18
long lastRunNo comment in source; assigned in HyperMouse(), run(), getRunInfo().line 23
volatile Gadget leftGrabGadgetNo comment in source; used in run().line 13
volatile int mainBufferIndexNo comment in source; assigned in HyperMouse(), run().line 30
int maxCoordinatesNo comment in source; assigned in HyperMouse(); used in run().line 37
HyperMenu menuBaseNo comment in source; assigned in HyperMouse(), setView(), run().line 27
volatile int mouseFlagsNo comment in source; assigned in HyperMouse(), start(), run(), forbid(), permit().line 26
Thread mouseTaskNo comment in source; assigned in start(), halt(), kickStart(); used in run().line 29
volatile int mouseXNo comment in source; assigned in run().line 10
volatile int mouseYNo comment in source; assigned in run().line 10
volatile MouseEvent[] msgNo comment in source; assigned in HyperMouse(), flush(); used in run().line 33
long nowTime of the last HyperView() run of this Threadline 21
RunInfo runInfoNo comment in source; assigned in HyperMouse(); used in start(), halt(), run(), getRunInfo().line 12
long runLagNo comment in source; assigned in HyperMouse(), getRunInfo().line 22
HyperView setViewNo comment in source; used in setView().line 15
int sizeIndexNo comment in source; assigned in HyperMouse(); used in run().line 34
long startTimeNo comment in source; assigned in HyperMouse(), setView(), getRunInfo().line 19
int totalCoordinatesNo comment in source; assigned in HyperMouse(), run().line 36
int traceNo comment in source; assigned in HyperMouse().line 25
int waitTimeNo comment in source; assigned in HyperMouse(), getRunInfo().line 20
boolean workingNo comment in source; assigned in HyperMouse().line 38

Constructors (1)

SignatureDescriptionSource
HyperMouse(HyperView tView)AKA An Excerpt from Somewhere in the JDK Sourceline 43

Methods (10)

SignatureDescriptionSource
public synchronized void flush()1 statement(s).line 769
public synchronized void forbid()2 statement(s).line 756
public RunInfo getRunInfo()7 statement(s).
Implements ThreadReport.getRunInfo()
line 783
public synchronized void halt()4 statement(s); calls tTask.interrupt().line 109
public String kickStart()8 statement(s); calls tTask.interrupt(), tTask.getName(), mouseTask.start(); creates Thread.line 803
public synchronized void permit()1 statement(s).line 765
public synchronized void run()37 statement(s); calls Thread.currentThread(), ((MouseEvent)tMsg).getX(), ((MouseEvent)tMsg).getY(), curView.frame.getInsets(), tMsg.getID() ….
Implements Runnable.run()
line 121
public void setView(HyperView tView)1 statement(s); calls notifyAll().line 81
public synchronized void start()9 statement(s); calls tTask.interrupt(), mouseTask.setName(), mouseTask.setPriority(), mouseTask.start(); creates Thread.line 93
public synchronized void wake()1 statement(s); calls notify().line 794

Inherited members

Non-private members inherited from HyperView superclasses and not overridden or hidden here.

Also inherits the public/protected members of java.awt.Component (JDK class) and its superclasses.

Examples

Real usage taken from elsewhere in the HyperView 3.2 source (file and line shown; source path src/com/multiversesocial/hyperview/).

instantiation — HyperView.java, line 1237

 1237  mouse = new HyperMouse(this);

constant — AWTEventManager.java, line 106

  106  if (!(mouse.intBufferIndex < HyperMouse.MAX_MOUSE_MESSAGES))
  107  {

declaration — HyperFrame.java, line 222

  222  HyperMouse mouse = ((HyperView) orange).mouse;

Applet hosting

Delivers mouse input to a ported applet’s panes: sets curView.mouseX/mouseY, calls onMouseOver(), and flags onClick() (GOB_CLICK_METHOD) and onRelease() (GOB_RELEASE_METHOD) for HyperView’s display loop. See the Applet Migration Guide.

Hits--