org.devaki.nextobjects.workspace.models.graphics
Class SelectionPoint

java.lang.Object
  extended byorg.devaki.nextobjects.workspace.models.graphics.SelectionPoint
All Implemented Interfaces:
java.io.Serializable

public class SelectionPoint
extends java.lang.Object
implements java.io.Serializable

SelectionPoint

Author:
Emmanuel Florent
See Also:
Serialized Form

Field Summary
static int EAST
          Positions
static int NORTH
          Positions
static int NORTH_EAST
          Positions
static int NORTH_WEST
          Positions
static int SOUTH
          Positions
static int SOUTH_EAST
          Positions
static int SOUTH_WEST
          Positions
static int WEST
          Positions
 
Constructor Summary
SelectionPoint(int pX, int pY)
          Construct a new 'SelectionPoint' object
 
Method Summary
 java.awt.Point getPoint()
          Get the location
 java.awt.Rectangle getSurface()
          Returns a Rectangle from the current object Grow square by 8 pixels for each side in order to facilitate the resize click
 void paint(java.awt.Graphics g)
          Paint
 void setLocation(java.awt.Point p)
          Set the location
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NORTH_WEST

public static final int NORTH_WEST
Positions

See Also:
Constant Field Values

NORTH

public static final int NORTH
Positions

See Also:
Constant Field Values

NORTH_EAST

public static final int NORTH_EAST
Positions

See Also:
Constant Field Values

WEST

public static final int WEST
Positions

See Also:
Constant Field Values

EAST

public static final int EAST
Positions

See Also:
Constant Field Values

SOUTH_WEST

public static final int SOUTH_WEST
Positions

See Also:
Constant Field Values

SOUTH

public static final int SOUTH
Positions

See Also:
Constant Field Values

SOUTH_EAST

public static final int SOUTH_EAST
Positions

See Also:
Constant Field Values
Constructor Detail

SelectionPoint

public SelectionPoint(int pX,
                      int pY)
Construct a new 'SelectionPoint' object

Parameters:
pX - the initial x location
pY - the initial y location
Method Detail

paint

public final void paint(java.awt.Graphics g)
Paint

Parameters:
g - graphics

getPoint

public final java.awt.Point getPoint()
Get the location

Returns:
the location

setLocation

public final void setLocation(java.awt.Point p)
Set the location

Parameters:
p - the new location

getSurface

public final java.awt.Rectangle getSurface()
Returns a Rectangle from the current object Grow square by 8 pixels for each side in order to facilitate the resize click

Returns:
the surface.


Copyright © 2002-2004 devaki.org. All Rights Reserved.