xinca.data
Class Slide

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--xinca.data.Slide
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class Slide
extends java.util.Vector
implements java.io.Serializable

A vector of strokes.

Copyright (c) 2002 ICMC-USP.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

Since:
JDK1.4
Author:
Renan Gonçalves Cattelan
See Also:
Serialized Form

Constructor Summary
Slide()
          Constructor
Slide(java.awt.Image img)
          Constructor
Slide(int slideID)
          Constructor
Slide(int slideID, java.awt.Image img)
          Constructor
Slide(int slideID, long creation_time)
          Constructor
Slide(int slideID, long creation_time, java.awt.Image img)
          Constructor
 
Method Summary
 void addElement(java.lang.Object object)
          Adds an object
 long getCreationTime()
          Gets the creation time of the Slide
 long getDeletionTime()
          Gets the deletion time of the Slide
 java.awt.Image getImage()
          Gets the deletion time of the Slide
 int getSlideID()
          Gets the ID of the Slide
 boolean hasBackground()
          Indicates the existence of background image
 boolean removeElement(java.lang.Object object)
          Removes an object
 void setCreationTime(long creation_time)
          Sets the creation time of the Slide
 void setDeletionTime(long deletion_time)
          Sets the deletion time of the Slide
 void setImage(java.awt.Image img)
          Sets the background image of the Slide
 void setSlideID(int slideID)
          Sets the Slide's ID
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElementAt, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

Slide

public Slide()
Constructor


Slide

public Slide(int slideID)
Constructor

Parameters:
slideID - is the new slide's ID

Slide

public Slide(java.awt.Image img)
Constructor

Parameters:
img - is the new slide's background image

Slide

public Slide(int slideID,
             java.awt.Image img)
Constructor

Parameters:
slideID - is the new slide's ID
img - is the new slide's background image

Slide

public Slide(int slideID,
             long creation_time)
Constructor

Parameters:
slideID - is the new slide's ID
creation_time - is time the Slide was created

Slide

public Slide(int slideID,
             long creation_time,
             java.awt.Image img)
Constructor

Parameters:
slideID - is the new slide's ID
creation_time - is time the Slide was created
img - is the new slide's background image
Method Detail

addElement

public void addElement(java.lang.Object object)
Adds an object

Overrides:
addElement in class java.util.Vector
Parameters:
object - is the Object to add (it must be an instance of Stroke)

removeElement

public boolean removeElement(java.lang.Object object)
Removes an object

Overrides:
removeElement in class java.util.Vector
Parameters:
object - is the Object to remove
Returns:
true if successful, and false otherwise

getSlideID

public int getSlideID()
Gets the ID of the Slide

Returns:
the ID of the Slide

getCreationTime

public long getCreationTime()
Gets the creation time of the Slide

Returns:
the time the Slide was created

getDeletionTime

public long getDeletionTime()
Gets the deletion time of the Slide

Returns:
the time the Slide was deleted

getImage

public java.awt.Image getImage()
Gets the deletion time of the Slide

Returns:
the slide background image

setSlideID

public void setSlideID(int slideID)
Sets the Slide's ID

Parameters:
slideID - is the slide's new ID

setCreationTime

public void setCreationTime(long creation_time)
Sets the creation time of the Slide

Parameters:
creation_time - is the time the Slide was created

setDeletionTime

public void setDeletionTime(long deletion_time)
Sets the deletion time of the Slide

Parameters:
deletion_time - is the time the Slide was deleted

setImage

public void setImage(java.awt.Image img)
Sets the background image of the Slide

Parameters:
img - is the background image

hasBackground

public boolean hasBackground()
Indicates the existence of background image

Returns:
true if the slide has an image, and false otherwise