org.gvsig.coreplugin.mdiManager.frames
Interface IFrame

All Known Implementing Classes:
ExternalFrame, InternalFrame

public interface IFrame

This interface is a model for CorePlugin windows. When CorePlugin receives an IWindow object, it creates a JInternalFrame or a JDialog, depending on the specified properties. This interface allows coreplugin to talk to JInternalFrames and JDialogs in a uniform way.

Author:
Cesar Martinez Izquierdo

Method Summary
 java.awt.Rectangle getBounds()
          Gets the window bounds.
 int getHeight()
          Gets the window height.
 java.awt.Dimension getMinimumSize()
          Gets the minimum allowed size for this window.
 java.lang.String getTitle()
          Gets the title property
 int getWidth()
          Gets the window width.
 int getX()
          Returns the current x coordinate of the window's origin.
 int getY()
          Returns the current y coordinate of the window's origin.
 void setBounds(java.awt.Rectangle bounds)
          Sets the window bounds.
 void setHeight(int height)
          Sets the window height.
 void setLocation(int x, int y)
           
 void setMinimumSize(java.awt.Dimension minSize)
          Sets the minimum allowed size for this window.
 void setTitle(java.lang.String title)
          Sets the title property.
 void setWidth(int width)
          Sets the window width.
 void setX(int x)
          Sets the value of the x coordinate for the origin of the associated window.
 void setY(int y)
          Sets the value of the y coordinate for the origin of the associated window.
 

Method Detail

getBounds

java.awt.Rectangle getBounds()
Gets the window bounds.

Returns:
The window bounds.

getHeight

int getHeight()
Gets the window height.

Returns:
The window height (in pixels).

getMinimumSize

java.awt.Dimension getMinimumSize()
Gets the minimum allowed size for this window.

Returns:
minSize The minimum allowed size for this window.

getTitle

java.lang.String getTitle()
Gets the title property

Returns:

getWidth

int getWidth()
Gets the window width.

Returns:
The window width (in pixels).

getX

int getX()
Returns the current x coordinate of the window's origin.

Returns:
Returns the value (in pixels) of the x coordinate of the window's origin.

getY

int getY()
Returns the current y coordinate of the window's origin.

Returns:
Returns the value (in pixels) of the y coordinate of the window's origin.

setBounds

void setBounds(java.awt.Rectangle bounds)
Sets the window bounds.

Parameters:
bounds - The window bounds.

setHeight

void setHeight(int height)
Sets the window height.

Parameters:
The - window height (in pixels)

setLocation

void setLocation(int x,
                 int y)

setMinimumSize

void setMinimumSize(java.awt.Dimension minSize)
Sets the minimum allowed size for this window. If null is provided, the minimum size is disabled (and thus the window can be resized to any size).

Parameters:
minSize - The minimum allowed size for this window.

setTitle

void setTitle(java.lang.String title)
Sets the title property.

Parameters:
title - The new title.

setWidth

void setWidth(int width)
Sets the window width.

Parameters:
The - window width (in pixels)

setX

void setX(int x)
Sets the value of the x coordinate for the origin of the associated window.

Parameters:
x - The value (in pixels) of the x coordinate

setY

void setY(int y)
Sets the value of the y coordinate for the origin of the associated window.

Parameters:
y - The value (in pixels) of the y coordinate


Copyright © 2014 gvSIG Association. All Rights Reserved.