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
-
direction
- Direction of the Word
-
HORIZONTAL
-
-
VERTICAL
-
-
word
- Object of Positioner
-
WordPositioner()
- Creates a new WordPositioner
-
WordPositioner(int, int, Word, int)
- Creates a new WordPositioner with the given widthPosition, heightPosition, word and direction
-
getDirection()
- Returns the direction of the WordPositioner
-
getWord()
- Returns the word of the WordPositioner
-
setDirection(int)
- Modifies the direction of the WordPositioner
-
setWord(Word)
- Modifies the word of the WordPositioner
HORIZONTAL
public static final int HORIZONTAL
VERTICAL
public static final int VERTICAL
word
Word word
- Object of Positioner
direction
int direction
- Direction of the Word
WordPositioner
public WordPositioner()
- Creates a new WordPositioner
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
setWord
public void setWord(Word newWord)
- Modifies the word of the WordPositioner
- Parameters:
- newWord - the new word of the WordPositioner
getWord
public Word getWord()
- Returns the word of the WordPositioner
- Returns:
- the word
setDirection
public void setDirection(int newDirection)
- Modifies the direction of the WordPositioner
- Parameters:
- newDirection - the new direction of the WordPositioner
getDirection
public int getDirection()
- Returns the direction of the WordPositioner
- Returns:
- the direction
All Packages Class Hierarchy This Package Previous Next Index