java.lang.Objectobjectdraw.ObjectDrawObject
objectdraw.ObjectDrawShape
legos.LegoPiece
legos.Leg
public class Leg
A Leg
is a LegoPiece
representing the leg of a lego person. It
has no subunits.
Constructor Summary | |
---|---|
Leg()
Construct a leg, but do not make it appear on any canvas yet. |
|
Leg(Color color)
Construct a leg, but do not make it appear on any canvas yet. |
|
Leg(Color color,
DrawingCanvas canvas)
Construct a leg, placing it on the given canvas. |
|
Leg(DrawingCanvas canvas)
Construct a leg, placing it on the given canvas. |
Method Summary |
---|
Methods inherited from class legos.LegoPiece |
---|
addToCanvas, canAttach, contains, detach, getAttachmentPoint, getCanvas, getColor, getDoubleX, getDoubleY, getLocation, getOwner, getSubunit, getSubunitCount, getX, getY, hide, isHidden, move, moveTo, moveTo, removeFromCanvas, removeSubunit, removeSubunit, sendBackward, sendForward, sendToBack, sendToFront, setColor, setSubunit, show, toString |
Methods inherited from class objectdraw.ObjectDrawShape |
---|
clearCanvas, draw, draw, getDrawables, getShape, makeShape, removeCanvas, setMyShape, update |
Methods inherited from class objectdraw.ObjectDrawObject |
---|
deferUpdates, depend, runUpdates, undepend |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface objectdraw.DrawableInterface |
---|
draw, getShape |
Constructor Detail |
---|
public Leg()
Legs
that is already visible on a canvas.
public Leg(Color color)
Legs
that is already visible on a canvas.
color
- The color of the leg.public Leg(Color color, DrawingCanvas canvas)
color
- The color of the leg.canvas
- Canvas to place this leg on.public Leg(DrawingCanvas canvas)
canvas
- Canvas to place this leg on.