org.eclipse.gef.internal.ui.rulers
Class RulerLayout

java.lang.Object
  extended byorg.eclipse.draw2d.AbstractLayout
      extended byorg.eclipse.draw2d.XYLayout
          extended byorg.eclipse.gef.internal.ui.rulers.RulerLayout
All Implemented Interfaces:
org.eclipse.draw2d.LayoutManager

public class RulerLayout
extends org.eclipse.draw2d.XYLayout

A custom layout manager for rulers. It is not meant to be used externally or with any figure other than a ruler.

Since:
3.0

Field Summary
 
Fields inherited from class org.eclipse.draw2d.XYLayout
constraints
 
Fields inherited from class org.eclipse.draw2d.AbstractLayout
isObservingVisibility, preferredSize
 
Constructor Summary
RulerLayout()
           
 
Method Summary
protected  org.eclipse.draw2d.geometry.Dimension calculatePreferredSize(org.eclipse.draw2d.IFigure container, int wHint, int hHint)
           
 java.lang.Object getConstraint(org.eclipse.draw2d.IFigure child)
           
 void layout(org.eclipse.draw2d.IFigure container)
           
 
Methods inherited from class org.eclipse.draw2d.XYLayout
getOrigin, remove, setConstraint
 
Methods inherited from class org.eclipse.draw2d.AbstractLayout
calculatePreferredSize, getBorderPreferredSize, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, invalidate, invalidate, isObservingVisibility, setObserveVisibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RulerLayout

public RulerLayout()
Method Detail

calculatePreferredSize

protected org.eclipse.draw2d.geometry.Dimension calculatePreferredSize(org.eclipse.draw2d.IFigure container,
                                                                       int wHint,
                                                                       int hHint)
See Also:
AbstractLayout.calculatePreferredSize(org.eclipse.draw2d.IFigure, int, int)

getConstraint

public java.lang.Object getConstraint(org.eclipse.draw2d.IFigure child)
See Also:
AbstractLayout.getConstraint(org.eclipse.draw2d.IFigure)

layout

public void layout(org.eclipse.draw2d.IFigure container)
See Also:
LayoutManager.layout(org.eclipse.draw2d.IFigure)