edu.rit.draw.item
Interface Outline
-
- All Superinterfaces:
- java.io.Externalizable, java.io.Serializable
- All Known Implementing Classes:
- DashedOutline, DottedOutline, RoundSolidOutline, SolidOutline, SquareDottedOutline
public interface Outline extends java.io.ExternalizableInterface Outline specifies the interface for an object that gives the stroke and paint with which to outline an area in a DrawingItem.All outline objects must be externalizable so they can be stored in a drawing file.
-
-
Field Summary
Fields Modifier and Type Field and Description static OutlineNONESpecify Outline.NONE to omit drawing a drawing item's outline.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description floatgetStrokeWidth()Returns the stroke width of this outline.voidsetGraphicsContext(java.awt.Graphics2D g2d)Set the given graphics context's stroke and paint attributes as specified by this outline object.
-
-
-
Field Detail
-
NONE
static final Outline NONE
Specify Outline.NONE to omit drawing a drawing item's outline.
-
-
Method Detail
-
getStrokeWidth
float getStrokeWidth()
Returns the stroke width of this outline.- Returns:
- Stroke width.
-
setGraphicsContext
void setGraphicsContext(java.awt.Graphics2D g2d)
Set the given graphics context's stroke and paint attributes as specified by this outline object.- Parameters:
g2d- 2-D graphics context.
-
-
DMelt 3.0 © DataMelt by jWork.ORG