|
||||||||||
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
edu.rit.slides.items.FilledItem
public abstract class FilledItem
Class FilledItem is the abstract base class for a SlideItem
that has an outline and is filled with a paint.
Specify Fill.NONE for the fill paint to omit filling a slide item's
interior.
The static setDefaultFill() method is provided to set the default fill paint. If the fill paint is not specified when constructing a filled item, the current default fill paint is used.
Field Summary | |
---|---|
static Fill |
NORMAL_FILL
The normal fill paint: White. |
Fields inherited from class edu.rit.slides.items.OutlinedItem |
---|
NORMAL_OUTLINE |
Constructor Summary | |
---|---|
FilledItem()
Construct a new empty filled item. |
|
FilledItem(Outline theOutline,
Fill theFill)
Construct a new filled item. |
Method Summary | |
---|---|
void |
readExternal(ObjectInput in)
Read this filled item from the given object input stream. |
static void |
setDefaultFill(Fill theFill)
Set the default fill paint. |
void |
writeExternal(ObjectOutput out)
Write this filled item to the given object output stream. |
Methods inherited from class edu.rit.slides.items.OutlinedItem |
---|
setDefaultOutline |
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 Fill NORMAL_FILL
Constructor Detail |
---|
public FilledItem()
public FilledItem(Outline theOutline, Fill theFill)
theOutline
- Outline, or Outline.NONE.theFill
- Fill paint, or Fill.NONE.
IllegalArgumentException
- (unchecked exception) Thrown if both theOutline is
Outline.NONE (null) and theFill is
Fill.NONE (null).Method Detail |
---|
public static void setDefaultFill(Fill theFill)
theFill
- Fill paint, or Fill.NONE.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class OutlinedItem
out
- Object output stream.
IOException
- Thrown if an I/O error occurred.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class OutlinedItem
in
- Object input stream.
IOException
- Thrown if an I/O error occurred.
ClassNotFoundException
- Thrown if any class needed to deserialize this filled outlined item
cannot be found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |