ca.gc.aafc.demos.furnituremodel
Class Leg
java.lang.Object
ca.gc.aafc.demos.furnituremodel.Leg
- public class Leg
- extends java.lang.Object
This is a model of a Table Leg.
|
Field Summary |
protected java.lang.String |
colour
|
protected java.lang.Float |
length
|
|
Constructor Summary |
Leg()
|
|
Method Summary |
void |
cut(java.lang.Float new_length)
Cuts the leg to a new length. |
java.lang.String |
getColour()
|
java.lang.Float |
getLength()
|
void |
setColour(java.lang.String newcolour)
|
void |
setLength(java.lang.Float newlength)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
colour
protected java.lang.String colour
length
protected java.lang.Float length
Leg
public Leg()
getColour
public java.lang.String getColour()
setColour
public void setColour(java.lang.String newcolour)
getLength
public java.lang.Float getLength()
setLength
public void setLength(java.lang.Float newlength)
cut
public void cut(java.lang.Float new_length)
throws NotImplementedException
Cuts the leg to a new length.
- Throws:
NotImplementedException