|
CubeTwister 2.0alpha142 2012-02-11 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
ch.randelshofer.rubik.Cube3DEvent
public class Cube3DEvent
Cube3DEvent is used to notify interested parties that an event has occured in a Cube3D object.
| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
Cube3DEvent(Cube3D source,
int partIndex,
int orientation,
int sideIndex,
int stickerIndex,
int modifiersEx)
Creates a new instance. |
|
Cube3DEvent(Cube3D source,
int partIndex,
int orientation,
int sideIndex,
int stickerIndex,
int scraping,
int modifiersEx)
|
|
Cube3DEvent(Cube3D source,
int partIndex,
int orientation,
int sideIndex,
int stickerIndex,
int scraping,
java.awt.event.MouseEvent mouseEvent)
|
|
Cube3DEvent(Cube3D source,
int partIndex,
int orientation,
int sideIndex,
int stickerIndex,
java.awt.event.MouseEvent mouseEvent)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
applyTo(Cube cube)
Applies this event to the specified cube. |
int |
getAngle()
|
int |
getAxis()
|
Cube |
getCube()
|
Cube3D |
getCube3D()
|
int |
getLayerMask()
|
int |
getModifiersEx()
The extended modifiers. |
java.awt.event.MouseEvent |
getMouseEvent()
The mouse event. |
int |
getOrientation()
The orientation of the face on the part. |
int |
getPartIndex()
The index of the cube part. |
int |
getSideIndex()
The side of the cube. |
int |
getStickerIndex()
The sticker index or -1 if there is no sticker on the face of the part where the mouse event occured. |
boolean |
isDoubleAngle()
|
boolean |
isDoubleLayer()
|
boolean |
isInverse()
|
java.lang.String |
toString()
|
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Cube3DEvent(Cube3D source,
int partIndex,
int orientation,
int sideIndex,
int stickerIndex,
java.awt.event.MouseEvent mouseEvent)
public Cube3DEvent(Cube3D source,
int partIndex,
int orientation,
int sideIndex,
int stickerIndex,
int scraping,
java.awt.event.MouseEvent mouseEvent)
public Cube3DEvent(Cube3D source,
int partIndex,
int orientation,
int sideIndex,
int stickerIndex,
int modifiersEx)
public Cube3DEvent(Cube3D source,
int partIndex,
int orientation,
int sideIndex,
int stickerIndex,
int scraping,
int modifiersEx)
| Method Detail |
|---|
public Cube3D getCube3D()
public Cube getCube()
public boolean isInverse()
public boolean isDoubleAngle()
public boolean isDoubleLayer()
public int getAxis()
public int getLayerMask()
public int getAngle()
public void applyTo(Cube cube)
public int getPartIndex()
public int getOrientation()
public int getSideIndex()
public int getStickerIndex()
public int getModifiersEx()
public java.awt.event.MouseEvent getMouseEvent()
public java.lang.String toString()
toString in class java.util.EventObject
|
(c) Werner Randelshofer. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||