Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Draw2d
3.3

org.eclipse.draw2d
Interface FreeformFigure

All Superinterfaces:
IFigure
All Known Implementing Classes:
FreeformLayer, FreeformLayeredPane

public interface FreeformFigure
extends IFigure

A figure that allows its children to extend into negative coordinates. This figure must be placed in a FreeformViewport. Also, you shouldn't call IFigure.setBounds(Rectangle) on this figure. The bounds will be calculated based on the extent of its children. A FreeformFigure's bounds will be the smallest rectangle that will contain all of its children.


Nested Class Summary
 
Nested classes inherited from class org.eclipse.draw2d. IFigure
IFigure.NoInsets
 
Field Summary
 
Fields inherited from interface org.eclipse.draw2d. IFigure
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
 
Method Summary
 void addFreeformListener ( FreeformListener listener)
          Adds a FreeformListener to this FreeformFigure.
 void fireExtentChanged ()
          Notifies listeners that the freeform extent (i.e. bounds) has changed.
  Rectangle getFreeformExtent ()
          Returns the freeform extent, essentially the bounds of the FreeformFigure.
 void removeFreeformListener ( FreeformListener listener)
          Removes the given listener from this FreeformFigure.
 void setFreeformBounds ( Rectangle bounds)
          Sets the freeform bounds of this FreeformFigure.
 
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

addFreeformListener

public void addFreeformListener(
FreeformListener listener)
Adds a FreeformListener to this FreeformFigure.

Parameters:
listener - the listener

fireExtentChanged

public void fireExtentChanged()
Notifies listeners that the freeform extent (i.e. bounds) has changed.


getFreeformExtent

public 
Rectangle getFreeformExtent()
Returns the freeform extent, essentially the bounds of the FreeformFigure. This is based on the extent of its children.

Returns:
the freeform extent

removeFreeformListener

public void removeFreeformListener(
FreeformListener listener)
Removes the given listener from this FreeformFigure.

Parameters:
listener - the listener

setFreeformBounds

public void setFreeformBounds(
Rectangle bounds)
Sets the freeform bounds of this FreeformFigure.

Parameters:
bounds - the new freeform bounds

Eclipse Draw2d
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire