ozone core API

org.ozoneDB.core.monitor
Class AbsoluteConstraints

java.lang.Object
  |
  +--org.ozoneDB.core.monitor.AbsoluteConstraints
All Implemented Interfaces:
java.io.Serializable

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

An object that encapsulates position and (optionally) size for Absolute positioning of components.

Version:
1.01, Aug 19, 1998 ($Revision: 1.2 $)
Author:
Ian Formanek (modified softwarebuero m&b)
See Also:
AbsoluteLayout, Serialized Form

Field Summary
(package private) static int FIXED
          Groesse und position sind fest
(package private) static int GUI
          aktuelle GUI-einstellung
 int height
          The height of the component or -1 if the component's preferred height should be used
(package private) static int MOTIF
          Werte fuer GUI-einstellung
(package private) static int MOVE_ABS
           
(package private) static int MOVE_PROP
          Position wird proportional/fest der groesse des containers angepasst
 int policy
           
(package private) static int RESIZE_ABS
           
(package private) static int RESIZE_PROP
          Groesse wird proportional/fest der groesse des containers angepasst
(package private) static long serialVersionUID
          generated Serialized Version UID
 int width
          The width of the component or -1 if the component's preferred width should be used
(package private) static int WIN
           
 int x
          The X position of the component
(package private) static int X_ABS
           
(package private) static int X_PROP
           
(package private) static int X2_ABS
           
(package private) static int X2_PROP
           
 int y
          The Y position of the component
(package private) static int Y_ABS
           
(package private) static int Y_PROP
           
(package private) static int Y2_ABS
           
(package private) static int Y2_PROP
           
 
Constructor Summary
AbsoluteConstraints(int x, int y)
          Creates a new AbsoluteConstraints for specified position.
AbsoluteConstraints(int x, int y, int width, int height)
          Creates a new AbsoluteConstraints for specified position and size.
AbsoluteConstraints(int x, int y, int width, int height, int policy)
           
AbsoluteConstraints(java.awt.Point pos)
          Creates a new AbsoluteConstraints for specified position.
AbsoluteConstraints(java.awt.Point pos, java.awt.Dimension size)
          Creates a new AbsoluteConstraints for specified position and size.
 
Method Summary
 int getHeight()
           
 int getWidth()
           
 int getX()
           
 int getY()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MOTIF

static final int MOTIF
Werte fuer GUI-einstellung

See Also:
Constant Field Values

WIN

static final int WIN
See Also:
Constant Field Values

GUI

static int GUI
aktuelle GUI-einstellung


serialVersionUID

static final long serialVersionUID
generated Serialized Version UID

See Also:
Constant Field Values

x

public int x
The X position of the component


y

public int y
The Y position of the component


width

public int width
The width of the component or -1 if the component's preferred width should be used


height

public int height
The height of the component or -1 if the component's preferred height should be used


FIXED

static final int FIXED
Groesse und position sind fest

See Also:
Constant Field Values

X_ABS

static final int X_ABS
See Also:
Constant Field Values

X_PROP

static final int X_PROP
See Also:
Constant Field Values

Y_ABS

static final int Y_ABS
See Also:
Constant Field Values

Y_PROP

static final int Y_PROP
See Also:
Constant Field Values

X2_ABS

static final int X2_ABS
See Also:
Constant Field Values

X2_PROP

static final int X2_PROP
See Also:
Constant Field Values

Y2_ABS

static final int Y2_ABS
See Also:
Constant Field Values

Y2_PROP

static final int Y2_PROP
See Also:
Constant Field Values

MOVE_PROP

static final int MOVE_PROP
Position wird proportional/fest der groesse des containers angepasst

See Also:
Constant Field Values

MOVE_ABS

static final int MOVE_ABS
See Also:
Constant Field Values

RESIZE_PROP

static final int RESIZE_PROP
Groesse wird proportional/fest der groesse des containers angepasst

See Also:
Constant Field Values

RESIZE_ABS

static final int RESIZE_ABS
See Also:
Constant Field Values

policy

public int policy
Constructor Detail

AbsoluteConstraints

public AbsoluteConstraints(java.awt.Point pos)
Creates a new AbsoluteConstraints for specified position.

Parameters:
pos - The position to be represented by this AbsoluteConstraints

AbsoluteConstraints

public AbsoluteConstraints(int x,
                           int y)
Creates a new AbsoluteConstraints for specified position.

Parameters:
x - The X position to be represented by this AbsoluteConstraints
y - The Y position to be represented by this AbsoluteConstraints

AbsoluteConstraints

public AbsoluteConstraints(java.awt.Point pos,
                           java.awt.Dimension size)
Creates a new AbsoluteConstraints for specified position and size.

Parameters:
pos - The position to be represented by this AbsoluteConstraints
size - The size to be represented by this AbsoluteConstraints or null if the component's preferred size should be used

AbsoluteConstraints

public AbsoluteConstraints(int x,
                           int y,
                           int width,
                           int height)
Creates a new AbsoluteConstraints for specified position and size.

Parameters:
x - The X position to be represented by this AbsoluteConstraints
y - The Y position to be represented by this AbsoluteConstraints
width - The width to be represented by this AbsoluteConstraints or -1 if the component's preferred width should be used
height - The height to be represented by this AbsoluteConstraints or -1 if the component's preferred height should be used

AbsoluteConstraints

public AbsoluteConstraints(int x,
                           int y,
                           int width,
                           int height,
                           int policy)
Method Detail

getX

public int getX()
Returns:
The X position represented by this AbsoluteConstraints

getY

public int getY()
Returns:
The Y position represented by this AbsoluteConstraints

getWidth

public int getWidth()
Returns:
The width represented by this AbsoluteConstraints or -1 if the component's preferred width should be used

getHeight

public int getHeight()
Returns:
The height represented by this AbsoluteConstraints or -1 if the component's preferred height should be used

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

ozone core API

Copyright (C) The Ozone Database Project - www.ozone-db.org. All rights reserved.