|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--amber.type.server.PanelComponentInfo
This class holds all the required information to handle panel components within the BasePanel derived controllers.
BasePanel, Serialized Form| Constructor Summary | |
PanelComponentInfo()
Default Constructor. |
|
PanelComponentInfo(ComponentHandler component,
int id,
int eventMask,
int x,
int y,
int width,
int height,
java.lang.String className,
java.lang.String parameters)
Initialising Constructor. |
|
PanelComponentInfo(ComponentHandler component,
int x,
int y,
int width,
int height,
java.lang.String className,
java.lang.String parameters)
Initialising Constructor. |
|
| Method Summary | |
boolean |
contains(int x,
int y)
Checks whether this component "contains" the specified point, where x and y are defined to be relative to the coordinate system of this component. |
boolean |
contains(java.awt.Point point)
Checks whether this component "contains" the specified point, where x and y are defined to be relative to the coordinate system of this component. |
boolean |
equals(java.lang.Object other)
Determines whether two info objects are equal. |
java.awt.Rectangle |
getBounds()
This function gets the bounds of the control. |
java.lang.String |
getClassName()
Gets the data in the following variable: Name of the actual class to be instantiated in the Panel. |
ComponentHandler |
getComponent()
Gets the data in the following variable: This is the handler for the corresponding remote panel component. |
int |
getEventMask()
Gets the data in the following variable: The mask specifying which events the remote component will respond to. |
int |
getHeight()
Gets the data in the following variable: Height of the panel component in the panel. |
int |
getId()
Gets the data in the following variable: The id of the remote component. |
java.awt.Point |
getLocation()
This function gets the location of the control. |
java.lang.String |
getParameters()
Gets the data in the following variable: Starting parameters of the panel component when created. |
java.awt.Dimension |
getSize()
This function gets the size of the control. |
int |
getWidth()
Gets the data in the following variable: Width of the panel component in the panel. |
int |
getX()
Gets the data in the following variable: X coordinate of the top left hand corner of the panel component in the panel. |
int |
getY()
Gets the data in the following variable: Y coordinate of the top left hand corner of the panel component in the panel. |
boolean |
isComponentAt(int x,
int y)
Checks whether this component is the component at the specified point, where x and y are defined to be relative to the parent panel coordinate system. |
boolean |
isComponentAt(java.awt.Point point)
Checks whether this component is the component at the specified point, where x and y are defined to be relative to the parent panel coordinate system. |
void |
setBounds(int x,
int y,
int width,
int height)
This function sets the size and location of the control. |
void |
setBounds(java.awt.Rectangle rect)
This function sets the size and location of the control. |
void |
setClassName(java.lang.String data)
Sets the data in the following variable: Name of the actual class to be instantiated in the Panel. |
void |
setComponent(ComponentHandler data)
Sets the data in the following variable: This is the handler for the corresponding remote panel component. |
void |
setEventMask(int data)
Sets the data in the following variable: The mask specifying which events the remote component will respond to. |
void |
setHeight(int data)
Sets the data in the following variable: Height of the panel component in the panel. |
void |
setId(int data)
Sets the data in the following variable: The id of the remote component. |
void |
setLocation(int x,
int y)
This function sets the location of the control. |
void |
setLocation(java.awt.Point location)
This function sets the location of the control. |
void |
setParameters(java.lang.String data)
Sets the data in the following variable: Starting parameters of the panel component when created. |
void |
setSize(java.awt.Dimension dimension)
This function sets the size of the control. |
void |
setSize(int width,
int height)
This function sets the size of the control. |
void |
setWidth(int data)
Sets the data in the following variable: Width of the panel component in the panel. |
void |
setX(int data)
Sets the data in the following variable: X coordinate of the top left hand corner of the panel component in the panel. |
void |
setY(int data)
Sets the data in the following variable: Y coordinate of the top left hand corner of the panel component in the panel. |
java.lang.String |
toString()
This function returns the String form of the data. |
void |
translate(int x,
int y)
This function moves the control an offset from its current location as specified by the input coordinates. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PanelComponentInfo()
public PanelComponentInfo(ComponentHandler component,
int x,
int y,
int width,
int height,
java.lang.String className,
java.lang.String parameters)
component - This is the handler for the corresponding remote panel component.x - X coordinate of the top left hand corner of the panel component in the panel.y - Y coordinate of the top left hand corner of the panel component in the panel.width - Width of the panel component in the panel.height - Height of the panel component in the panel.className - Name of the actual class to be instantiated in the Panel.parameters - Starting parameters of the panel component when created.
public PanelComponentInfo(ComponentHandler component,
int id,
int eventMask,
int x,
int y,
int width,
int height,
java.lang.String className,
java.lang.String parameters)
component - This is the handler for the corresponding remote panel component.id - The id of the remote component.eventMask - The mask specifying which events the remote component will respond to.x - X coordinate of the top left hand corner of the panel component in the panel.y - Y coordinate of the top left hand corner of the panel component in the panel.width - Width of the panel component in the panel.height - Height of the panel component in the panel.className - Name of the actual class to be instantiated in the Panel.parameters - Starting parameters of the panel component when created.| Method Detail |
public ComponentHandler getComponent()
public int getId()
public int getEventMask()
public int getX()
public int getY()
public int getWidth()
public int getHeight()
public java.lang.String getClassName()
public java.lang.String getParameters()
public java.awt.Point getLocation()
public java.awt.Rectangle getBounds()
public java.awt.Dimension getSize()
public void setComponent(ComponentHandler data)
data - ComponentHandler containing the data to set the variable to.public void setId(int data)
data - int containing the data to set the variable to.public void setEventMask(int data)
data - int containing the data to set the variable to.public void setX(int data)
data - int containing the data to set the variable to.public void setY(int data)
data - int containing the data to set the variable to.public void setWidth(int data)
data - int containing the data to set the variable to.public void setHeight(int data)
data - int containing the data to set the variable to.public void setClassName(java.lang.String data)
data - String containing the data to set the variable to.public void setParameters(java.lang.String data)
data - String containing the data to set the variable to.public void setLocation(java.awt.Point location)
location - New Point where the control is to be located.
public void setLocation(int x,
int y)
x - int X coordinate of the new location.y - int Y coordinate of the new location.public void setSize(java.awt.Dimension dimension)
dimension - New Dimension containing the control size.
public void setSize(int width,
int height)
width - int width of the control.height - int height of the control.public void setBounds(java.awt.Rectangle rect)
rect - New Rectangle containing the control bounds.
public void setBounds(int x,
int y,
int width,
int height)
x - int x location of the control.y - int y location of the control.width - int width of the control.height - int height of the control.
public void translate(int x,
int y)
x - int X amount of the translation value.y - int Y amount of the translation value.public boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - PanelComponentInfo which is the object to compare.
public boolean contains(int x,
int y)
x - int x value of the coordinate.y - int y value of the coordinate.public boolean contains(java.awt.Point point)
point - Point containing the location.
public boolean isComponentAt(int x,
int y)
x - int x value of the coordinate.y - int y value of the coordinate.public boolean isComponentAt(java.awt.Point point)
point - Point containing the coordinate location.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||