Package pi.actor
Class Line
java.lang.Object
pi.actor.Actor
pi.actor.Line
- All Implemented Interfaces:
FrameUpdateListenerRegistration,KeyStrokeListenerRegistration,MouseClickListenerRegistration,MouseScrollListenerRegistration
- Direct Known Subclasses:
LabeledEdge
Eine Linie zwischen zwei Punkten.
- Since:
- 0.36.0
- Author:
- Josef Friedrich
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDie verschiedenen Arten einer Pfeilspitze.classEin Linienende. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Line.LineEndDas Linenende bei Punkt 1.final Line.LineEndDas Linienende bei Punkt 2. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondashed(boolean dashed) Setzt, ob eine gestrichelte Linie gezeichnet werden soll oder nicht.offset(double offset) point1()point2()strokeWidth(double strokeWidth) Setzt die Dicke der Linie in Meter.Methods inherited from class pi.actor.Actor
addCollisionListener, addCollisionListener, addCollisionListener, addMountListener, addUnmountListener, anchor, anchor, anchor, anchorformatted, angularDamping, angularDamping, angularVelocity, angularVelocity, 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, 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.MouseClickListenerRegistration
addMouseClickListener, removeMouseClickListenerMethods inherited from interface pi.event.MouseScrollListenerRegistration
addMouseScrollListener, removeMouseScrollListener
-
Field Details
-
end1
Das Linenende bei Punkt 1. -
end2
Das Linienende bei Punkt 2.
-
-
Constructor Details
-
Line
public Line(double x1, double y1, double x2, double y2) -
Line
-
-
Method Details
-
point1
-
point1
-
point2
-
point2
-
strokeWidth
Setzt die Dicke der Linie in Meter.- Parameters:
strokeWidth- Die Dicke der Linie in Meter.
-
dashed
Setzt, ob eine gestrichelte Linie gezeichnet werden soll oder nicht.- Parameters:
dashed- Die Dicke der Linie in Meter.
-
offset
-