|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rit.slides.items.DottedOutline
public class DottedOutline
Class DottedOutline provides an object that outlines an area in a SlideItem
with a square-cornered dotted stroke in a
solid color.
Field Summary | |
---|---|
static Fill |
NORMAL_FILL
The normal dotted outline fill paint (black). |
static DottedOutline |
NORMAL_OUTLINE
The normal dotted outline (width = 1, fill paint = black). |
static float |
NORMAL_WIDTH
The normal dotted outline width (1). |
Fields inherited from interface edu.rit.slides.items.Outline |
---|
NONE |
Constructor Summary | |
---|---|
DottedOutline()
Construct a new dotted outline object with the normal width (1) and the normal fill paint (black). |
|
DottedOutline(Fill theFill)
Construct a new dotted outline object with the normal width (1) and the given fill paint. |
|
DottedOutline(float theWidth)
Construct a new dotted outline object with the given width and the normal fill paint (black). |
|
DottedOutline(float theWidth,
Fill theFill)
Construct a new dotted outline object with the given width and the given fill paint. |
Method Summary | |
---|---|
float |
getStrokeWidth()
Returns the stroke width of this outline. |
void |
readExternal(ObjectInput in)
Read this dotted outline object from the given object input stream. |
void |
setGraphicsContext(Graphics2D g2d)
Set the given graphics context's stroke and paint attributes as specified by this outline object. |
void |
writeExternal(ObjectOutput out)
Write this dotted outline object to the given object output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final float NORMAL_WIDTH
public static final Fill NORMAL_FILL
public static final DottedOutline NORMAL_OUTLINE
Constructor Detail |
---|
public DottedOutline()
public DottedOutline(float theWidth)
theWidth
- Width.
IllegalArgumentException
- (unchecked exception) Thrown if theWidth is less than or
equal to 0.public DottedOutline(Fill theFill)
theFill
- Fill paint.
NullPointerException
- (unchecked exception) Thrown if theFill is null.public DottedOutline(float theWidth, Fill theFill)
theWidth
- Width.theFill
- Fill paint.
IllegalArgumentException
- (unchecked exception) Thrown if theWidth is less than or
equal to 0.
NullPointerException
- (unchecked exception) Thrown if theFill is null.Method Detail |
---|
public float getStrokeWidth()
getStrokeWidth
in interface Outline
public void setGraphicsContext(Graphics2D g2d)
setGraphicsContext
in interface Outline
g2d
- 2-D graphics context.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 dotted outline object
cannot be found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |