Draw2D v2.0

org.eclipse.draw2d
Interface Orientable

All Superinterfaces:
IFigure, PositionConstants
All Known Implementing Classes:
ArrowButton, ScrollBar, Triangle

public interface Orientable
extends PositionConstants, IFigure

An interface for objects that can be either horizontally or vertically oriented.


Inner classes inherited from class org.eclipse.draw2d.IFigure
IFigure.NoInsets
 
Field Summary
static int HORIZONTAL
           
static int VERTICAL
           
 
Fields inherited from interface org.eclipse.draw2d.PositionConstants
BOTTOM, CENTER, EAST, EAST_WEST, LEFT, MIDDLE, NONE, NORTH, NORTH_EAST, NORTH_SOUTH, NORTH_WEST, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, WEST
 
Fields inherited from interface org.eclipse.draw2d.IFigure
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
 
Method Summary
 void setDirection(int direction)
          Sets the direction.
 void setOrientation(int orientation)
          Sets the orientation.
 
Methods inherited from interface org.eclipse.draw2d.IFigure
add, add, add, add, addAncestorListener, addFigureListener, addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getCursor, getFont, getForegroundColor, getInsets, getLayoutManager, getMaximumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, isEnabled, isFocusTraversable, isOpaque, isRequestFocusEnabled, isVisible, paint, remove, removeAncestorListener, removeFigureListener, removeFocusListener, 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, setUpdateManager, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, validate
 

Field Detail

HORIZONTAL

public static final int HORIZONTAL

VERTICAL

public static final int VERTICAL
Method Detail

setOrientation

public void setOrientation(int orientation)
Sets the orientation. Can be Orientable.HORIZONTAL or Orientable.VERTICAL.

setDirection

public void setDirection(int direction)
Sets the direction. Can be one of many directional constants defined in PositionConstants.

Draw2D v2.0