org.objectweb.fractal.gui.graph.view
Class ComponentPart

java.lang.Object
  extended byorg.objectweb.fractal.gui.graph.view.ComponentPart

public class ComponentPart
extends java.lang.Object

A component part.


Field Summary
static int BOTTOM_BORDER
          Bottom border of a component representation.
static int BOTTOM_LEFT_CORNER
          Bottom left corner of a component representation.
static int BOTTOM_RIGHT_CORNER
          Bottom right corner of a component representation.
static int CONTENT
          Content part of a component representation.
static int HEADER
          Header part of a component representation.
static int INTERFACE
          Interface part of a component representation.
static int LEFT_BORDER
          Left border of a component representation.
static int RIGHT_BORDER
          Right border of a component representation.
static int TOP_BORDER
          Top border of a component representation.
static int TOP_LEFT_CORNER
          Top left corner of a component representation.
static int TOP_RIGHT_CORNER
          Top right corner of a component representation.
 
Constructor Summary
ComponentPart(Component component, Interface itf, int part, java.awt.Rectangle position)
          Constructs a new ComponentPart object.
 
Method Summary
 Component getComponent()
          Returns the component designated by this component part.
 Interface getInterface()
          Returns the precise interface designated by this component part.
 int getPart()
          Returns the type of this component part.
 java.awt.Rectangle getPosition()
          Returns the position of the component designated by this component part.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HEADER

public static final int HEADER
Header part of a component representation.

See Also:
Constant Field Values

TOP_LEFT_CORNER

public static final int TOP_LEFT_CORNER
Top left corner of a component representation.

See Also:
Constant Field Values

TOP_RIGHT_CORNER

public static final int TOP_RIGHT_CORNER
Top right corner of a component representation.

See Also:
Constant Field Values

BOTTOM_LEFT_CORNER

public static final int BOTTOM_LEFT_CORNER
Bottom left corner of a component representation.

See Also:
Constant Field Values

BOTTOM_RIGHT_CORNER

public static final int BOTTOM_RIGHT_CORNER
Bottom right corner of a component representation.

See Also:
Constant Field Values

LEFT_BORDER

public static final int LEFT_BORDER
Left border of a component representation.

See Also:
Constant Field Values

TOP_BORDER

public static final int TOP_BORDER
Top border of a component representation.

See Also:
Constant Field Values

RIGHT_BORDER

public static final int RIGHT_BORDER
Right border of a component representation.

See Also:
Constant Field Values

BOTTOM_BORDER

public static final int BOTTOM_BORDER
Bottom border of a component representation.

See Also:
Constant Field Values

CONTENT

public static final int CONTENT
Content part of a component representation.

See Also:
Constant Field Values

INTERFACE

public static final int INTERFACE
Interface part of a component representation.

See Also:
Constant Field Values
Constructor Detail

ComponentPart

public ComponentPart(Component component,
                     Interface itf,
                     int part,
                     java.awt.Rectangle position)
Constructs a new ComponentPart object.

Parameters:
component - the component designated by this component part.
itf - the interface of this component designated by this component part. May be null.
part - the type of this component part.
position - the position of the component designated by this component part.
Method Detail

getComponent

public Component getComponent()
Returns the component designated by this component part.

Returns:
the component designated by this component part.

getInterface

public Interface getInterface()
Returns the precise interface designated by this component part.

Returns:
the precise interface designated by this component part, or null if this component part does not designate an interface, i.e., if getPart is not equal to INTERFACE.

getPart

public int getPart()
Returns the type of this component part.

Returns:
the type of this component part, as one the constants defined in this class.

getPosition

public java.awt.Rectangle getPosition()
Returns the position of the component designated by this component part.

Returns:
the position of the component designated by this component part.