|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object echopoint.ImageMap.Coords
The Coords object is a set of co-ordinates and an ActionCommand String. The co-ordinates can be used to represent a circle, rectangle or polygon. The contructor used will determine type of Coords object is created
Field Summary | |
static int |
CIRCLE
|
static int |
POLYGON
|
static int |
RECTANGLE
|
Constructor Summary | |
ImageMap.Coords(int[] polyCoords)
Creates a new Polygon Coords object with the given dimensions
with no ActionCommand string. |
|
ImageMap.Coords(int[] polyCoords,
java.lang.String actionCommand)
Creates a new Polygon Coords object with the given dimensions
with the given ActionCommand string. |
|
ImageMap.Coords(int x,
int y,
int radius)
Creates a new Circular Coords object with the given dimensions
with no ActionCommand string. |
|
ImageMap.Coords(int left,
int top,
int right,
int bottom)
Creates a new Rectangular Coords object with the given dimensions
with no ActionCommand string. |
|
ImageMap.Coords(int left,
int top,
int right,
int bottom,
java.lang.String actionCommand)
Creates a new Rectangular Coords object with the given dimensions
with the given actionCommand String. |
|
ImageMap.Coords(int x,
int y,
int radius,
java.lang.String actionCommand)
Creates a new Circular Coords object with the given dimensions
with the given ActionCommand string. |
Method Summary | |
java.lang.String |
getActionCommand()
Returns the value of the ActionCommand. |
int |
getBottom()
Returns the value of the bottom co-ord. |
int |
getLeft()
Returns the value of the left co-ord. |
int[] |
getPolygonCoords()
Returns the array of the polygon co-ords. |
int |
getRadius()
Returns the value of the radius co-ord. |
int |
getRight()
Returns the value of the right co-ord. |
int |
getTop()
Returns the value of the top co-ord. |
int |
getType()
Returns the type co-ords. |
int |
getX()
Returns the value of the x co-ord. |
int |
getY()
Returns the value of the y co-ord. |
void |
setActionCommand(java.lang.String newActionCommand)
Sets the action command of the co-ords |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int RECTANGLE
public static final int CIRCLE
public static final int POLYGON
Constructor Detail |
public ImageMap.Coords(int left, int top, int right, int bottom)
Coords
object with the given dimensions
with no ActionCommand string.
left
- The value of the left co-ord.top
- The value of the top co-ord.right
- The value of the right co-ord.bottom
- The value of the bottom co-ord.public ImageMap.Coords(int left, int top, int right, int bottom, java.lang.String actionCommand)
Coords
object with the given dimensions
with the given actionCommand String.
left
- The value of the left co-ord.top
- The value of the top co-ord.right
- The value of the right co-ord.bottom
- The value of the bottom co-ord.public ImageMap.Coords(int x, int y, int radius)
Coords
object with the given dimensions
with no ActionCommand string.
x
- The value of the x co-ord.y
- The value of the y co-ord.radius
- The value of the radius co-ord.public ImageMap.Coords(int x, int y, int radius, java.lang.String actionCommand)
Coords
object with the given dimensions
with the given ActionCommand string.
x
- The value of the x co-ord.y
- The value of the y co-ord.radius
- The value of the radius co-ord.actionCommand
- The values of the ActionCommandpublic ImageMap.Coords(int[] polyCoords)
Coords
object with the given dimensions
with no ActionCommand string.
polyCoords
- An integer array of co-ordinatespublic ImageMap.Coords(int[] polyCoords, java.lang.String actionCommand)
Coords
object with the given dimensions
with the given ActionCommand string.
polyCoords
- An integer array of co-ordinatesactionCommand
- The values of the ActionCommandMethod Detail |
public java.lang.String getActionCommand()
public int getBottom()
public int getLeft()
public int getRight()
public int getTop()
public int getX()
public int getY()
public int getRadius()
public int[] getPolygonCoords()
public int getType()
public void setActionCommand(java.lang.String newActionCommand)
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |