parsedtree
Class Position

java.lang.Object
  extended byparsedtree.Position

public class Position
extends java.lang.Object

A position on the dance floor.

The position is stored as a pair of numbers that give the co-ordinates on the dance floor. As far as the dance specification is concerned, you can use any pair of orthogonal axis and any scale you like for the co-ordinate system. However, the 'across' axis must be 90 degrees in a counterclockwise direction from the 'down' axis.

Author:
Nigel

Field Summary
 int across
          Distance across the dance floor.
 int down
          Distance down the dance floor.
 
Constructor Summary
Position(java.lang.String placeAttribute)
          Creates a new Position object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

down

public int down
Distance down the dance floor.


across

public int across
Distance across the dance floor. If facing down the dance floor then across is positive for positions on the left and negative for positions on the right.

Constructor Detail

Position

public Position(java.lang.String placeAttribute)
         throws org.xml.sax.SAXException
Creates a new Position object.

Parameters:
placeAttribute - The value of the 'place' attribute. This value contains two integer numberic values separated by a comma.


Copyright © 2003 Nigel Westbury