|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rit.slides.items.SlideItem
edu.rit.slides.items.OutlinedItem
public abstract class OutlinedItem
Class OutlinedItem is the abstract base class for a SlideItem
that has an outline. Specify Outline.NONE
for the outline to omit drawing a slide item's outline.
The static setDefaultOutline() method is provided to set the default outline. If the outline is not specified when constructing an outlined item, 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 empty outlined item. |
|
OutlinedItem(Outline theOutline)
Construct a new outlined item. |
Method Summary | |
---|---|
void |
readExternal(ObjectInput in)
Read this outlined item from the given object input stream. |
static void |
setDefaultOutline(Outline theOutline)
Set the default outline. |
void |
writeExternal(ObjectOutput out)
Write this outlined item to the given object output stream. |
Methods inherited from class edu.rit.slides.items.SlideItem |
---|
draw |
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(Outline theOutline)
theOutline
- Outline, or Outline.NONE.Method Detail |
---|
public static void setDefaultOutline(Outline theOutline)
theOutline
- Default outline, or Outline.NONE.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
out
- Object output stream.
IOException
- Thrown if an I/O error occurred.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
in
- 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 |