|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.event.MouseAdapter
com.lizardtech.djvubean.anno.AnnoManager
public class AnnoManager
Field Summary | |
---|---|
protected DjVuBean |
djvuBean
DjVuBean to use. |
Constructor Summary | |
---|---|
AnnoManager(DjVuBean bean)
Creates a new AnnoManager object. |
Method Summary | |
---|---|
void |
draw(java.awt.Graphics g)
Called to draw the Rects. |
java.util.Vector |
getMapArea()
Query the vector of GRectMap objects. |
Rect |
getMapArea(int x,
int y)
Optains a MapArea which contains the specified coordinates. |
Rect |
getMapRect()
Obtain the current GMapRect, normally set by the mouse listener as the hyperlink the mouse is currently over. |
void |
mouseClicked(java.awt.event.MouseEvent event)
Submit the Rect if right clicked. |
void |
mouseDragged(java.awt.event.MouseEvent event)
Event indicating the mouse was dragged. |
void |
mouseMoved(java.awt.event.MouseEvent event)
Event indicating the mouse was moved. |
void |
setMapRect(Rect mapRect)
Set the current GMapRect, normally set by the mouse listener as the hyperlink the mouse is currently over. |
Methods inherited from class java.awt.event.MouseAdapter |
---|
mouseEntered, mouseExited, mousePressed, mouseReleased |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final DjVuBean djvuBean
Constructor Detail |
---|
public AnnoManager(DjVuBean bean)
bean
- DjVuBean to use.Method Detail |
---|
public Rect getMapArea(int x, int y)
x
- position along the X axis.y
- position along the Y axis.
public java.util.Vector getMapArea()
public void draw(java.awt.Graphics g)
g
- graphics area to draw with.public Rect getMapRect()
public void setMapRect(Rect mapRect)
mapRect
- the current Rect.public void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked
in interface java.awt.event.MouseListener
mouseClicked
in class java.awt.event.MouseAdapter
event
- describing the mouse action.public void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged
in interface java.awt.event.MouseMotionListener
event
- describing the mouse action.public void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved
in interface java.awt.event.MouseMotionListener
event
- describing the mouse action.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |