Modelers

org.topcased.draw2d.figures
Interface IPortFigure

All Superinterfaces:
org.eclipse.draw2d.IFigure
All Known Implementing Classes:
LabelledPortFigure, ModelerLabelledPortFigure, ModelerPortFigure, MultiPortFigure, OrientedPortFigure, PortFigure

public interface IPortFigure
extends org.eclipse.draw2d.IFigure

An interface used to type figures that must handle like ports. During the layout, they are attached to the border.
Creation 11 juil. 06


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.draw2d.IFigure
org.eclipse.draw2d.IFigure.NoInsets
 
Field Summary
 
Fields inherited from interface org.eclipse.draw2d.IFigure
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
 
Method Summary
 int getPosition()
          Returns the attached position inside its container Figure.
 void setPosition(int pos)
          Set the position of the Figure.
 
Methods inherited from interface org.eclipse.draw2d.IFigure
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getCursor, getFont, getForegroundColor, getInsets, getLayoutManager, getLocalBackgroundColor, getLocalForegroundColor, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isOpaque, isRequestFocusEnabled, isShowing, isVisible, paint, remove, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setConstraint, setCursor, setEnabled, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validate
 

Method Detail

getPosition

int getPosition()
Returns the attached position inside its container Figure.

Returns:
PositionConstant representing the position

setPosition

void setPosition(int pos)
Set the position of the Figure. The available values are those defined by the PositionConstants : TOP, BOTTOM, LEFT, RIGHT or NONE.

Parameters:
pos - the border where the port is anchored

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.