Fovia's Java Client/Server API
Public Member Functions | List of all members
com.fovia.hdrc.interact.hdrcAdaptor Class Reference
Inheritance diagram for com.fovia.hdrc.interact.hdrcAdaptor:
MouseMotionListener MouseListener com.fovia.hdrc.interact.hdrcAutonavigateAdapter com.fovia.hdrc.interact.hdrcCPRotateAdapter com.fovia.hdrc.interact.hdrcLightAdjustAdapter com.fovia.hdrc.interact.hdrcOrbitAdaptor com.fovia.hdrc.interact.hdrcPanAdapter com.fovia.hdrc.interact.hdrcRotateAdaptor com.fovia.hdrc.interact.hdrcRotateAnotherAdaptor com.fovia.hdrc.interact.hdrcSegmentingAdaptor com.fovia.hdrc.interact.hdrcSlabAdapter com.fovia.hdrc.interact.hdrcSlabThicknessAdaptor com.fovia.hdrc.interact.hdrcTrackballAdapter com.fovia.hdrc.interact.hdrcWindowLevelAdaptor com.fovia.hdrc.interact.hdrcZoomAdapter

Public Member Functions

void mouseClicked (MouseEvent e)
 
void mouseClicked (int x, int y)
 
void mouseDragged (MouseEvent e)
 
void mouseDragged (int x, int y)
 
void mouseEntered (MouseEvent e)
 
void mouseEntered (int x, int y)
 
void mouseExited (MouseEvent e)
 
void mouseExited (int x, int y)
 
void mouseManuallyMoved (int offsetX, int offsetY)
 
void mouseMoved (MouseEvent e)
 
void mouseMoved (int x, int y)
 
void mousePressed (MouseEvent e)
 
void mousePressed (int x, int y)
 
void mouseReleased (MouseEvent e)
 
void mouseReleased (int x, int y)
 

Detailed Description

Allows you to use adaptors as direct mouse listeners

Member Function Documentation

void com.fovia.hdrc.interact.hdrcAdaptor.mouseClicked ( MouseEvent  e)

Call this function when the mouse is clicked on a rendered image.

Parameters
eA MouseEvent object with data on the mouseClicked event.

References com.fovia.hdrc.interact.hdrcAdaptor.mouseClicked().

Referenced by com.fovia.hdrc.interact.hdrcAdaptor.mouseClicked().

void com.fovia.hdrc.interact.hdrcAdaptor.mouseClicked ( int  x,
int  y 
)

Call this function when the mouse is clicked on a rendered image.

Parameters
xThe horizontal offset from the left side of the rendered image.
yThe vertical offset from the top of the rendered image.
void com.fovia.hdrc.interact.hdrcAdaptor.mouseDragged ( MouseEvent  e)

Call this function when the mouse is dragged on a rendered image (mouse button is down and the mouse has moved).

Parameters
eA MouseEvent object with data on the mouseDragged event.

References com.fovia.hdrc.interact.hdrcAdaptor.mouseDragged().

Referenced by com.fovia.hdrc.interact.hdrcAdaptor.mouseDragged().

void com.fovia.hdrc.interact.hdrcAdaptor.mouseDragged ( int  x,
int  y 
)

Call this function when the mouse is dragged on a rendered image (mouse button is down and the mouse has moved).

Parameters
xThe horizontal offset from the left side of the rendered image.
yThe vertical offset from the top of the rendered image.
void com.fovia.hdrc.interact.hdrcAdaptor.mouseEntered ( MouseEvent  e)

Call this function when the mouse has entered the active area of a rendered image.

Parameters
eA MouseEvent object with data on the mouseEntered event.

References com.fovia.hdrc.interact.hdrcAdaptor.mouseEntered().

Referenced by com.fovia.hdrc.interact.hdrcAdaptor.mouseEntered().

void com.fovia.hdrc.interact.hdrcAdaptor.mouseEntered ( int  x,
int  y 
)

Call this function when the mouse has entered the active area of a rendered image.

Parameters
xThe horizontal offset from the left side of the rendered image.
yThe vertical offset from the top of the rendered image.
void com.fovia.hdrc.interact.hdrcAdaptor.mouseExited ( MouseEvent  e)

Call this function when the mouse has exited the active area of a rendered image.

Parameters
eA MouseEvent object with data on the mouseExited event.

References com.fovia.hdrc.interact.hdrcAdaptor.mouseExited().

Referenced by com.fovia.hdrc.interact.hdrcAdaptor.mouseExited().

void com.fovia.hdrc.interact.hdrcAdaptor.mouseExited ( int  x,
int  y 
)

Call this function when the mouse has exited the active area of a rendered image.

Parameters
xThe horizontal offset from the left side of the rendered image.
yThe vertical offset from the top of the rendered image.
void com.fovia.hdrc.interact.hdrcAdaptor.mouseManuallyMoved ( int  offsetX,
int  offsetY 
)

Sometimes one might want to move the mouse manually. Perhaps you don't want the mouse to hit the edge of the screen so you wrap it around to the other side of the image. This function is intended to allow this adjsutment without causing the adaptor to jump positions suddenly because it didn't know the cursor was manually moved. Essentially, this adds the offset to the last mouse position to keep things smooth.

Parameters
offsetXThe x component of the vector subtraction of the new point minus the old point.
offsetYThe y component of the vector subtraction of the new point minus the old point.
void com.fovia.hdrc.interact.hdrcAdaptor.mouseMoved ( MouseEvent  e)

Call this function when the mouse is moved on a rendered image (mouse button is up and the mouse has moved).

Parameters
eA MouseEvent object with data on the mouseMoved event.

References com.fovia.hdrc.interact.hdrcAdaptor.mouseMoved().

Referenced by com.fovia.hdrc.interact.hdrcAdaptor.mouseMoved().

void com.fovia.hdrc.interact.hdrcAdaptor.mouseMoved ( int  x,
int  y 
)

Call this function when the mouse is moved on a rendered image (mouse button is up and the mouse has moved).

Parameters
xThe horizontal offset from the left side of the rendered image.
yThe vertical offset from the top of the rendered image.
void com.fovia.hdrc.interact.hdrcAdaptor.mousePressed ( MouseEvent  e)

Call this function when the mouse is first pressed on a rendered image.

Parameters
eA MouseEvent object with data on the mousePressed event.

References com.fovia.hdrc.interact.hdrcAdaptor.mousePressed().

Referenced by com.fovia.hdrc.interact.hdrcAdaptor.mousePressed().

void com.fovia.hdrc.interact.hdrcAdaptor.mousePressed ( int  x,
int  y 
)

Call this function when the mouse is first pressed on a rendered image.

Parameters
xThe horizontal offset from the left side of the rendered image.
yThe vertical offset from the top of the rendered image.
void com.fovia.hdrc.interact.hdrcAdaptor.mouseReleased ( MouseEvent  e)

Call this function when the mouse is first released on a rendered image.

Parameters
eA MouseEvent object with data on the mouseReleased event.

References com.fovia.hdrc.interact.hdrcAdaptor.mouseReleased().

Referenced by com.fovia.hdrc.interact.hdrcAdaptor.mouseReleased().

void com.fovia.hdrc.interact.hdrcAdaptor.mouseReleased ( int  x,
int  y 
)

Call this function when the mouse is first released on a rendered image.

Parameters
xThe horizontal offset from the left side of the rendered image.
yThe vertical offset from the top of the rendered image.