edu.rit.draw.item
Interface Outline

All Superinterfaces:
Externalizable, Serializable
All Known Implementing Classes:
DashedOutline, DottedOutline, RoundSolidOutline, SolidOutline, SquareDottedOutline

public interface Outline
extends Externalizable

Interface 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
static Outline NONE
          Specify Outline.NONE to omit drawing a drawing item's outline.
 
Method Summary
 float getStrokeWidth()
          Returns the stroke width of this outline.
 void setGraphicsContext(Graphics2D g2d)
          Set the given graphics context's stroke and paint attributes as specified by this outline object.
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 

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(Graphics2D g2d)
Set the given graphics context's stroke and paint attributes as specified by this outline object.

Parameters:
g2d - 2-D graphics context.


Copyright © 2005-2012 by Alan Kaminsky. All rights reserved. Send comments to ark­@­cs.rit.edu.