|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject com.levigo.jadice.swing.tool.EditEvent
public abstract class EditEvent
Field Summary | |
---|---|
protected InputEvent |
inputEvent
|
protected Rectangle |
pageBounds
|
Fields inherited from class java.util.EventObject |
---|
source |
Method Summary | |
---|---|
void |
consume()
|
static EditEvent |
create(JComponent source,
InputEvent e,
Page page,
int pageIndex,
Rectangle renderBounds,
RenderControls renderControls)
Create the correct EditEvent for the given InputEvent. |
int |
getID()
|
abstract InputEvent |
getInputEvent()
|
int |
getModifiers()
|
int |
getModifiersEx()
|
Page |
getPage()
Return the Page to which this event pertains to. |
int |
getPageIndex()
|
RenderControls |
getPageRenderControls()
Return RenderControls used to render the page this event pertains to. |
Rectangle |
getRenderedPageBounds()
Return bounds of the rendered page this event pertains to. |
Dimension |
getRenderedSize()
Return size of the rendered page this event pertains to. |
JComponent |
getSource()
|
long |
getWhen()
|
boolean |
hasPageContext()
Return whether this event has a Page as a context. |
boolean |
isAltDown()
|
boolean |
isAltGraphDown()
|
boolean |
isConsumed()
|
boolean |
isControlDown()
|
boolean |
isMetaDown()
|
boolean |
isShiftDown()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final InputEvent inputEvent
protected final Rectangle pageBounds
Method Detail |
---|
public static EditEvent create(JComponent source, InputEvent e, Page page, int pageIndex, Rectangle renderBounds, RenderControls renderControls)
source
- e
- page
- pageIndex
- TODOrenderBounds
- the bounds where the page was renderedrenderControls
-
public JComponent getSource()
getSource
in class EventObject
public Dimension getRenderedSize()
Caveat: Clients must not attempt to call this method unless hasPageContext()
returned
true
.
IllegalStateException
- if the event does not have a page contexthasPageContext()
public Rectangle getRenderedPageBounds()
Caveat: Clients must not attempt to call this method unless hasPageContext()
returned
true
.
IllegalStateException
- if the event does not have a page contexthasPageContext()
public abstract InputEvent getInputEvent()
public RenderControls getPageRenderControls()
RenderControls
used to render the page this event pertains to.
Caveat: Clients must not attempt to call this method unless hasPageContext()
returned
true
.
IllegalStateException
- if the event does not have a page contexthasPageContext()
public boolean isConsumed()
InputEvent.isConsumed()
public void consume()
InputEvent.consume()
public int getModifiers()
InputEvent.getModifiers()
public int getModifiersEx()
InputEvent.getModifiersEx()
public long getWhen()
InputEvent.getWhen()
public boolean isAltDown()
InputEvent.isAltDown()
public boolean isAltGraphDown()
InputEvent.isAltGraphDown()
public boolean isControlDown()
InputEvent.isControlDown()
public boolean isMetaDown()
InputEvent.isMetaDown()
public boolean isShiftDown()
InputEvent.isShiftDown()
public int getID()
public Page getPage()
null
for events
happening outside the scope of a page.
public int getPageIndex()
public boolean hasPageContext()
Page
as a context. An event typically has a page as its
context, if the mouse currently resides within the bounds of some rendered page. In some cases,
an event can have a context page, event if the mouse is not currently within the page's render
bounds, such as for drag events for a drag gesture that started within the bounds but have
since left it.
Caveat: Clients must not attempt to call this method unless hasPageContext()
returned
true
.
IllegalStateException
- if the event does not have a page contexthasPageContext()
public String toString()
toString
in class EventObject
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |