edu.rit.slides.items
Interface Outline

All Superinterfaces:
Externalizable, Serializable
All Known Implementing Classes:
DottedOutline, SolidOutline

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 SlideItem.

All outline objects must be externalizable so they can be marshalled in M2MI remote method invocations.


Field Summary
static Outline NONE
          Specify Outline.NONE to omit drawing a slide 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 slide item's outline.

Method Detail

getStrokeWidth

float getStrokeWidth()
Returns the stroke width of this outline.


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 © 2001-2006 by Alan Kaminsky. All rights reserved. Send comments to ark­@­cs.rit.edu.