Class TVCpn

java.lang.Object
  |
  +--TObject
        |
        +--TVCpn
Direct Known Subclasses:
TCptCpn, TCursor, TImage, TPanel

public class TVCpn
extends TObject

Type VisualComponent: Class TVCpn is the root of the visual components hierarchy. All visual components implement the methods of this class.

Since:
First release

Field Summary
 int height
          The height of the component.
 boolean visible
          The component's visibility
 int width
          The width of the component.
 int x
          The x coordinate.
 int y
          The y coordinate.
 
Constructor Summary
TVCpn()
          Instanciates a new Type Visual Component.
 
Method Summary
 int getHeight()
          Returns the height of the component.
 boolean getVisible()
          Returns the visibility of the component.
 int getWidth()
          Returns the width of the component.
 int getX()
          Returns the x coodinate.
 int getY()
          Returns the y coodinate.
 void move(int x, int y)
          Moves the component to the specified coordinates.
 void setDim(int height, int width)
          Sets the dimensions of the component.
 void setHeight(int height)
          Sets the height of the component.
 void setVisible(boolean visible)
          Sets the visibility of the component.
 void setWidth(int width)
          Sets the width of the component.
 void setX(int x)
          Sets the x coodinate.
 void setY(int y)
          Sets the y coodinate.
 
Methods inherited from class TObject
clone, Destroy, equals, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

visible

public boolean visible
The component's visibility


x

public int x
The x coordinate.


y

public int y
The y coordinate.


height

public int height
The height of the component.


width

public int width
The width of the component.

Constructor Detail

TVCpn

public TVCpn()
Instanciates a new Type Visual Component.

Since:
First release
Method Detail

setVisible

public void setVisible(boolean visible)
Sets the visibility of the component.

Parameters:
visible - The component's visibility.
Since:
First release

move

public void move(int x,
                 int y)
Moves the component to the specified coordinates.

Parameters:
x - The x coordinate.
y - The y coordinate.
Since:
First release

setX

public void setX(int x)
Sets the x coodinate.

Parameters:
x - The x coordinate.
Since:
First release

setY

public void setY(int y)
Sets the y coodinate.

Parameters:
y - The y coordinate.
Since:
First release

setHeight

public void setHeight(int height)
Sets the height of the component.

Parameters:
height - The height of the component.
Since:
First release

setWidth

public void setWidth(int width)
Sets the width of the component.

Parameters:
width - The width of the component.
Since:
First release

setDim

public void setDim(int height,
                   int width)
Sets the dimensions of the component.

Parameters:
height - The height of the component.
width - The width of the component.
Since:
First release

getVisible

public boolean getVisible()
Returns the visibility of the component.

Returns:
visible: True if visible.
Since:
First release

getX

public int getX()
Returns the x coodinate.

Returns:
x: The x coordinate.
Since:
First release

getY

public int getY()
Returns the y coodinate.

Returns:
y: The y coordinate.
Since:
First release

getHeight

public int getHeight()
Returns the height of the component.

Returns:
height: The height of the component.
Since:
First release

getWidth

public int getWidth()
Returns the width of the component.

Returns:
width: The width of the component.
Since:
First release