portaview.model
Class SlideSettings

java.lang.Object
  extended byportaview.model.SlideSettings

public class SlideSettings
extends java.lang.Object

Settings for the slideshow. This contains most of the state in the PortaView. This object is transfered over to remote PortaView in order to change their settings.

Version:
$Id: SlideSettings.java,v 1.6 2003/12/10 06:18:57 wlee Exp $
Author:
William Lee

Field Summary
static java.lang.String BORDER
           
static java.lang.String BORDER_BLUE
           
static java.lang.String BORDER_GREEN
           
static java.lang.String BORDER_RED
           
static java.lang.String INDEX
           
static int PAUSE
           
static int PLAY
           
static java.lang.String PLAY_STATE
           
static java.lang.String SLIDE
           
static java.lang.String SPEED
           
static java.lang.String TOTAL
           
static java.lang.String TRANSPARENCY
           
 
Constructor Summary
SlideSettings()
           
SlideSettings(java.util.Hashtable def)
          Given a Hashtable that represents this object (got form XML-RPC mostly), convert and set this object.
 
Method Summary
 boolean equals(java.lang.Object ss)
           
 boolean equals(SlideSettings ss)
          Returns true if the given slide settings is exactly the same.
 int getBorder()
           
 java.awt.Color getBorderColor()
           
 int getIndex()
           
 int getPlayState()
           
 java.lang.String getSlide()
           
 int getSpeed()
           
 int getTotal()
           
 int getTransparency()
           
 void setBorder(int border)
          Sets border width.
 void setBorderColor(java.awt.Color borderColor)
          Sets border color
 void setIndex(int index)
          Sets the picture index.
 void setPlayState(int i)
          Sets the play state.
 void setSlide(java.lang.String slide)
          Sets the slide's name.
 void setSpeed(int speed)
          Sets the play speed.
 void setTotal(int total)
          Sets the total number of slides.
 void setTransparency(int i)
          Sets the alpha transparency
 java.lang.Object toHashtable()
           
 java.lang.String toString()
          Serializes to string for pretty print out.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SLIDE

public static final java.lang.String SLIDE
See Also:
Constant Field Values

INDEX

public static final java.lang.String INDEX
See Also:
Constant Field Values

TOTAL

public static final java.lang.String TOTAL
See Also:
Constant Field Values

SPEED

public static final java.lang.String SPEED
See Also:
Constant Field Values

TRANSPARENCY

public static final java.lang.String TRANSPARENCY
See Also:
Constant Field Values

PLAY_STATE

public static final java.lang.String PLAY_STATE
See Also:
Constant Field Values

BORDER_RED

public static final java.lang.String BORDER_RED
See Also:
Constant Field Values

BORDER_GREEN

public static final java.lang.String BORDER_GREEN
See Also:
Constant Field Values

BORDER_BLUE

public static final java.lang.String BORDER_BLUE
See Also:
Constant Field Values

BORDER

public static final java.lang.String BORDER
See Also:
Constant Field Values

PLAY

public static final int PLAY
See Also:
Constant Field Values

PAUSE

public static final int PAUSE
See Also:
Constant Field Values
Constructor Detail

SlideSettings

public SlideSettings()

SlideSettings

public SlideSettings(java.util.Hashtable def)
Given a Hashtable that represents this object (got form XML-RPC mostly), convert and set this object.

Method Detail

equals

public boolean equals(SlideSettings ss)
Returns true if the given slide settings is exactly the same. This can be used for checking whether the remote PortaView needs to be updated.

Parameters:
ss - slide settings to test.
Returns:
true if ss equals the current object.

equals

public boolean equals(java.lang.Object ss)

toString

public java.lang.String toString()
Serializes to string for pretty print out.


toHashtable

public java.lang.Object toHashtable()
Returns:
a Hashtable for XML-RPC calls.

getBorder

public int getBorder()
Returns:
the border width.

setBorder

public void setBorder(int border)
Sets border width.

Parameters:
border - the border width.

getBorderColor

public java.awt.Color getBorderColor()
Returns:
the border color

setBorderColor

public void setBorderColor(java.awt.Color borderColor)
Sets border color

Parameters:
borderColor - color to set.

getIndex

public int getIndex()
Returns:
the index of the picture shown in the current slide.

setIndex

public void setIndex(int index)
Sets the picture index.

Parameters:
index - index of the picture.

getSlide

public java.lang.String getSlide()
Returns:
the slide's name.

setSlide

public void setSlide(java.lang.String slide)
Sets the slide's name.

Parameters:
slide - slide's name.

getTotal

public int getTotal()
Returns:
the total number of slides it is showing.

setTotal

public void setTotal(int total)
Sets the total number of slides.

Parameters:
total - total number of slides.

getSpeed

public int getSpeed()
Returns:
the play speed.

setSpeed

public void setSpeed(int speed)
Sets the play speed.

Parameters:
speed - play speed.

getPlayState

public int getPlayState()
Returns:
the play state. This can be PLAY or PAUSE.

setPlayState

public void setPlayState(int i)
Sets the play state.

Parameters:
i - play state, this can be PLAY or PAUSE.

getTransparency

public int getTransparency()
Returns:
the alpha transparency. This number goes from 0 to 10.

setTransparency

public void setTransparency(int i)
Sets the alpha transparency

Parameters:
i - alpha transparency. This number goes from 0 to 10.


Copyright © 2003 The PortaView Team. All Rights Reserved.