net.sourceforge.simplegamenet.util.proportionlayout
Class ProportionLinePart

java.lang.Object
  extended bynet.sourceforge.simplegamenet.util.proportionlayout.ProportionLinePart
All Implemented Interfaces:
Comparable, Serializable

class ProportionLinePart
extends Object
implements Serializable, Comparable

Author:
Geoffrey and Jeroen

Field Summary
(package private) static int CENTER
          Put the component in the center of its display area.
(package private) static int COLUMN
           
(package private)  Component component
           
(package private)  int extendGridX
           
(package private) static int FILL
          Resize the component both horizontally and vertically.
(package private)  int gridWidth
           
(package private)  int gridX
           
(package private) static int LEFT
          Put the component at the left of its display area, centered horizontally.
(package private) static int NONE
          Do not resize the component.
(package private) static int RIGHT
          Put the component at right of its display area.
(package private) static int ROW
           
 
Constructor Summary
(package private) ProportionLinePart(int lineType, Component component, int minimumWidth, int gridX, int gridWidth, int extendGridX, int anchor, int fill, int insetLeft, int insetRight)
          Creates a new instance of ProportionLinePart
 
Method Summary
 int compareTo(Object object)
           
 boolean equals(Object object)
           
(package private)  int getMinimumWidth()
           
(package private)  int getPreferredWidth()
           
(package private)  int getWidth(ArrayList lines, int componentWidth)
           
(package private)  int getX(ArrayList lines, int componentWidth)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMN

static final int COLUMN
See Also:
Constant Field Values

ROW

static final int ROW
See Also:
Constant Field Values

NONE

static final int NONE
Do not resize the component.

See Also:
Constant Field Values

FILL

static final int FILL
Resize the component both horizontally and vertically.

See Also:
Constant Field Values

CENTER

static final int CENTER
Put the component in the center of its display area.

See Also:
Constant Field Values

LEFT

static final int LEFT
Put the component at the left of its display area, centered horizontally.

See Also:
Constant Field Values

RIGHT

static final int RIGHT
Put the component at right of its display area.

See Also:
Constant Field Values

component

Component component

gridX

int gridX

gridWidth

int gridWidth

extendGridX

int extendGridX
Constructor Detail

ProportionLinePart

ProportionLinePart(int lineType,
                   Component component,
                   int minimumWidth,
                   int gridX,
                   int gridWidth,
                   int extendGridX,
                   int anchor,
                   int fill,
                   int insetLeft,
                   int insetRight)
Creates a new instance of ProportionLinePart

Method Detail

getMinimumWidth

int getMinimumWidth()

getPreferredWidth

int getPreferredWidth()

getX

int getX(ArrayList lines,
         int componentWidth)

getWidth

int getWidth(ArrayList lines,
             int componentWidth)

equals

public boolean equals(Object object)

compareTo

public int compareTo(Object object)
Specified by:
compareTo in interface Comparable


Copyright © 2003-2004 The 3 Belgians. All Rights Reserved.