Package ea.actor
Class Circle
java.lang.Object
ea.actor.Actor
ea.actor.Geometry
ea.actor.Circle
- All Implemented Interfaces:
FrameUpdateListenerContainer
,KeyListenerContainer
,MouseClickListenerContainer
,MouseWheelListenerContainer
Beschreibt einen Kreis.
- Author:
- Michael Andonie, Niklas Keller
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
Gibt den Durchmesser des Kreises aus.float
Gibt den Radius des Kreises aus.void
render
(Graphics2D g, float pixelPerMeter) Rendert das Objekt am Ursprung.void
resetRadius
(float radius) Setzt den Radius des Kreises neu.Methods inherited from class ea.actor.Geometry
animateColor, getColor, setColor
Methods inherited from class ea.actor.Actor
addCollisionListener, addCollisionListener, addCollisionListener, addMountListener, addUnmountListener, animateOpacity, animateParticle, applyForce, applyForce, applyImpulse, applyImpulse, applyTorque, contains, createDistanceJoint, createPrismaticJoint, createRevoluteJoint, createRopeJoint, createWeldJoint, getAngularDamping, getAngularVelocity, getBodyType, getCenter, getCenterRelative, getCollisions, getDensity, getFrameUpdateListeners, getFriction, getGravityScale, getKeyListeners, getLayer, getLayerPosition, getLinearDamping, getMass, getMouseClickListeners, getMouseWheelListeners, getOpacity, getPhysicsHandler, getPosition, getRestitution, getRotation, getVelocity, getX, getY, isGrounded, isMounted, isRotationLocked, isVisible, moveBy, moveBy, overlaps, remove, removeMountListener, removeUnmountListener, renderBasic, resetMovement, rotateBy, setAngularDamping, setAngularVelocity, setBodyType, setCenter, setCenter, setDensity, setFixture, setFixtures, setFixtures, setFriction, setGravityScale, setLayerPosition, setLinearDamping, setOpacity, setPhysicsHandler, setPosition, setPosition, setRestitution, setRotation, setRotationLocked, setVelocity, setVisible, setX, setY
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ea.event.FrameUpdateListenerContainer
addFrameUpdateListener, defer, delay, removeFrameUpdateListener, repeat
Methods inherited from interface ea.event.KeyListenerContainer
addKeyListener, removeKeyListener
Methods inherited from interface ea.event.MouseClickListenerContainer
addMouseClickListener, removeMouseClickListener
Methods inherited from interface ea.event.MouseWheelListenerContainer
addMouseWheelListener, removeMouseWheelListener
-
Constructor Details
-
Circle
public Circle(float diameter) Konstruktor.- Parameters:
diameter
- Durchmesser des Kreises
-
-
Method Details
-
getDiameter
@API public float getDiameter()Gibt den Durchmesser des Kreises aus.- Returns:
- Durchmesser des Kreises.
-
getRadius
@API public float getRadius()Gibt den Radius des Kreises aus.- Returns:
- Radius des Kreises.
-
render
Description copied from class:Actor
Rendert das Objekt am Ursprung.- Die Position ist (0|0).
- Die Roation ist 0.
-
resetRadius
@API public void resetRadius(float radius) Setzt den Radius des Kreises neu. Ă„ndert damit die physikalischen Eigenschaften des Objekts.- Parameters:
radius
- Der neue Radius des Kreises.
-