|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rit.slides.items.SolidOutline
public class SolidOutline
Class SolidOutline provides an object that outlines an area in a SlideItem with a square-cornered solid stroke in a
solid color.
| Field Summary | |
|---|---|
static Fill |
NORMAL_FILL
The normal solid outline fill paint (black). |
static SolidOutline |
NORMAL_OUTLINE
The normal solid outline (width = 1, fill paint = black). |
static float |
NORMAL_WIDTH
The normal solid outline width (1). |
| Fields inherited from interface edu.rit.slides.items.Outline |
|---|
NONE |
| Constructor Summary | |
|---|---|
SolidOutline()
Construct a new solid outline object with the normal width (1) and the normal fill paint (black). |
|
SolidOutline(Fill theFill)
Construct a new solid outline object with the normal width (1) and the given fill paint. |
|
SolidOutline(float theWidth)
Construct a new solid outline object with the given width and the normal fill paint (black). |
|
SolidOutline(float theWidth,
Fill theFill)
Construct a new solid 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 solid 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 solid 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 SolidOutline NORMAL_OUTLINE
| Constructor Detail |
|---|
public SolidOutline()
public SolidOutline(float theWidth)
theWidth - Width.
IllegalArgumentException - (unchecked exception) Thrown if theWidth is less than or
equal to 0.public SolidOutline(Fill theFill)
theFill - Fill paint.
NullPointerException - (unchecked exception) Thrown if theFill is null.
public SolidOutline(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 Outlinepublic void setGraphicsContext(Graphics2D g2d)
setGraphicsContext in interface Outlineg2d - 2-D graphics context.
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface Externalizableout - Object output stream.
IOException - Thrown if an I/O error occurred.
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface Externalizablein - Object input stream.
IOException - Thrown if an I/O error occurred.
ClassNotFoundException - Thrown if any class needed to deserialize this solid outline object
cannot be found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||