|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rit.draw.item.DrawingItem
edu.rit.draw.item.OutlinedItem
public abstract class OutlinedItem
Class OutlinedItem is the abstract base class for a DrawingItem that has an outline. Specify Outline.NONE for the outline to omit drawing a drawing item's outline.
The static defaultOutline() method is provided to set the default outline. If the outline is not specified, the current default outline is used.
| Field Summary | |
|---|---|
static Outline |
NORMAL_OUTLINE
The normal outline: Solid, square corners, 1 point wide, black. |
| Constructor Summary | |
|---|---|
OutlinedItem()
Construct a new outlined item with the default outline. |
|
OutlinedItem(OutlinedItem theItem)
Construct a new outlined item with the same outline as the given outlined item. |
|
| Method Summary | |
|---|---|
OutlinedItem |
add()
Add this outlined item to the end of the default drawing's sequence of drawing items. |
OutlinedItem |
add(Drawing theDrawing)
Add this outlined item to the end of the given drawing's sequence of drawing items. |
OutlinedItem |
addFirst()
Add this outlined item to the beginning of the default drawing's sequence of drawing items. |
OutlinedItem |
addFirst(Drawing theDrawing)
Add this outlined item to the beginning of the given drawing's sequence of drawing items. |
static Outline |
defaultOutline()
Returns the default outline. |
static void |
defaultOutline(Outline theOutline)
Set the default outline. |
Outline |
outline()
Returns this outlined item's outline. |
OutlinedItem |
outline(Outline theOutline)
Set this outlined item's outline. |
void |
readExternal(ObjectInput in)
Read this outlined item from the given object input stream. |
void |
writeExternal(ObjectOutput out)
Write this outlined item to the given object output stream. |
| Methods inherited from class edu.rit.draw.item.DrawingItem |
|---|
boundingBox, c, draw, e, height, n, ne, nw, s, se, size, sw, w, width |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Outline NORMAL_OUTLINE
| Constructor Detail |
|---|
public OutlinedItem()
public OutlinedItem(OutlinedItem theItem)
theItem - Outlined item.
NullPointerException - (unchecked exception) Thrown if theItem is null.| Method Detail |
|---|
public static Outline defaultOutline()
public static void defaultOutline(Outline theOutline)
theOutline - Default outline, or Outline.NONE.public Outline outline()
public OutlinedItem outline(Outline theOutline)
theOutline - Outline, or Outline.NONE.
public OutlinedItem add()
add in class DrawingItemNullPointerException - (unchecked exception) Thrown if there is no default drawing.Drawing.defaultDrawing()public OutlinedItem add(Drawing theDrawing)
add in class DrawingItemtheDrawing - Drawing.
NullPointerException - (unchecked exception) Thrown if theDrawing is null.public OutlinedItem addFirst()
addFirst in class DrawingItemNullPointerException - (unchecked exception) Thrown if there is no default drawing.Drawing.defaultDrawing()public OutlinedItem addFirst(Drawing theDrawing)
addFirst in class DrawingItemtheDrawing - Drawing.
NullPointerException - (unchecked exception) Thrown if theDrawing is null.
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizablewriteExternal in class DrawingItemout - Object output stream.
IOException - Thrown if an I/O error occurred.
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class DrawingItemin - Object input stream.
IOException - Thrown if an I/O error occurred.
ClassNotFoundException - Thrown if any class needed to deserialize this outlined item cannot
be found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||