edu.rit.slides.items
Class SlideItem

java.lang.Object
  extended by edu.rit.slides.items.SlideItem
Direct Known Subclasses:
ImageItem, OutlinedItem, TextItem

public abstract class SlideItem
extends Object

Class SlideItem is the abstract base class for each item on a Slide. Subclasses provide different kinds of slide items, such as text, lines, and shapes.


Constructor Summary
SlideItem()
          Construct a new slide item.
 
Method Summary
abstract  void draw(Graphics2D g2d)
          Draw this slide item in the given graphics context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlideItem

public SlideItem()
Construct a new slide item.

Method Detail

draw

public abstract void draw(Graphics2D g2d)
Draw this slide item in the given graphics context. This method is allowed to change the graphics context's paint, stroke, and transform, and it doesn't have to change them back.

Parameters:
g2d - 2-D graphics context.


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