All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class scrobble.WordPositioner

java.lang.Object
   |
   +----scrobble.Positioner
           |
           +----scrobble.WordPositioner

public class WordPositioner
extends Positioner
Wordpositioner.java herite de Positioner et positionne un mot


Variable Index

 o direction
Direction of the Word
 o HORIZONTAL
 o VERTICAL
 o word
Object of Positioner

Constructor Index

 o WordPositioner()
Creates a new WordPositioner
 o WordPositioner(int, int, Word, int)
Creates a new WordPositioner with the given widthPosition, heightPosition, word and direction

Method Index

 o getDirection()
Returns the direction of the WordPositioner
 o getWord()
Returns the word of the WordPositioner
 o setDirection(int)
Modifies the direction of the WordPositioner
 o setWord(Word)
Modifies the word of the WordPositioner

Variables

 o HORIZONTAL
 public static final int HORIZONTAL
 o VERTICAL
 public static final int VERTICAL
 o word
 Word word
Object of Positioner

 o direction
 int direction
Direction of the Word

Constructors

 o WordPositioner
 public WordPositioner()
Creates a new WordPositioner

 o WordPositioner
 public WordPositioner(int widthPosition,
                       int heightPosition,
                       Word word,
                       int direction)
Creates a new WordPositioner with the given widthPosition, heightPosition, word and direction

Parameters:
widthPosition - the widthPosition of the new WordPositioner being created
heightPosition - the heightPosition of the new WordPositioner being created
word - the word of the new WordPositioner being created
direction - the direction of the new WordPositioner being created

Methods

 o setWord
 public void setWord(Word newWord)
Modifies the word of the WordPositioner

Parameters:
newWord - the new word of the WordPositioner
 o getWord
 public Word getWord()
Returns the word of the WordPositioner

Returns:
the word
 o setDirection
 public void setDirection(int newDirection)
Modifies the direction of the WordPositioner

Parameters:
newDirection - the new direction of the WordPositioner
 o getDirection
 public int getDirection()
Returns the direction of the WordPositioner

Returns:
the direction

All Packages  Class Hierarchy  This Package  Previous  Next  Index