Class MenuItem
java.lang.Object
pi.actor.Actor
pi.actor.Rectangle
pi.Rectangle
demos.docs.main_classes.scene.tutorial.MenuItem
- All Implemented Interfaces:
FrameUpdateListener,FrameUpdateListenerRegistration,KeyStrokeListenerRegistration,MouseClickListener,MouseClickListenerRegistration,MouseScrollListenerRegistration
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonFrameUpdate(double pastTime) Diese Methode wird bei jedem Einzelbild eines angemeldeten Objekts erneut aufgerufen.voidonMouseDown(Vector clickLoc, MouseButton mouseButton) Diese Methode wird bei jedem Klick aufgerufen, unabhängig davon an welcher Position sich die Maus befindet.Methods inherited from class pi.actor.Rectangle
borderRadius, borderRadius, height, height, size, width, widthMethods inherited from class pi.actor.Actor
addCollisionListener, addCollisionListener, addCollisionListener, addMountListener, addUnmountListener, anchor, anchor, anchor, anchorformatted, angularDamping, angularDamping, angularVelocity, angularVelocity, animateColor, animateOpacity, animateParticle, applyForce, applyForce, applyForce, applyImpulse, applyImpulse, applyImpulse, applyRotationImpulse, applyTorque, awake, bodyType, bodyType, center, center, center, centerRelative, collisions, color, color, color, complementaryColor, contains, createDistanceJoint, createPrismaticJoint, createRevoluteJoint, createRopeJoint, createWeldJoint, density, density, fixture, fixtures, fixtures, frameUpdateListeners, friction, friction, gravityScale, gravityScale, hide, isGrounded, isMounted, isRotationLocked, isVisible, keyStrokeListeners, layer, layerPosition, layerPosition, linearDamping, linearDamping, listenerBundle, lockRotation, makeDynamic, makeKinematic, makeParticle, makeSensor, makeStatic, mass, mouseClickListeners, mouseScrollListeners, moveBy, moveBy, opacity, opacity, overlaps, remove, removeMountListener, removeUnmountListener, resetMovement, restitution, restitution, rotateBy, rotation, rotation, rotationLocked, show, sleep, toggleVisible, toStringFormatter, update, velocity, velocity, visible, x, x, y, yMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pi.event.FrameUpdateListenerRegistration
addFrameUpdateListener, defer, delay, removeFrameUpdateListener, repeat, repeat, repeat, repeat, repeatMethods inherited from interface pi.event.KeyStrokeListenerRegistration
addKeyStrokeListener, removeKeyStrokeListenerMethods inherited from interface pi.event.MouseClickListener
onMouseUpMethods inherited from interface pi.event.MouseClickListenerRegistration
addMouseClickListener, removeMouseClickListenerMethods inherited from interface pi.event.MouseScrollListenerRegistration
addMouseScrollListener, removeMouseScrollListener
-
Constructor Details
-
MenuItem
-
-
Method Details
-
onMouseDown
Description copied from interface:MouseClickListenerDiese Methode wird bei jedem Klick aufgerufen, unabhängig davon an welcher Position sich die Maus befindet.Natürlich muss dafür erst der
MouseClickListenerangemeldet werden.- Specified by:
onMouseDownin interfaceMouseClickListener- Parameters:
clickLoc- Der Punkt auf der Zeichenebene.mouseButton- Die Maustaste, die gedrückt wurde.
-
onFrameUpdate
public void onFrameUpdate(double pastTime) Description copied from interface:FrameUpdateListenerDiese Methode wird bei jedem Einzelbild eines angemeldeten Objekts erneut aufgerufen.- Specified by:
onFrameUpdatein interfaceFrameUpdateListener- Parameters:
pastTime- Die Zeit in Sekunden, die seit der letzten Aktualisierung vergangen ist.
-