|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.draw2d.AbstractLayout
org.eclipse.draw2d.AbstractHintLayout
org.eclipse.draw2d.ToolbarLayout
org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout
An extended toolbar layout that supports the following additional features: 1- The ability to stretch the major axis 2- The ability to reverse the children in layout 3- The ability to ignore invisible children 4- The ability to set ratio constraints on children (in major axis)
| Field Summary |
| Fields inherited from class org.eclipse.draw2d.ToolbarLayout |
ALIGN_BOTTOMRIGHT, ALIGN_CENTER, ALIGN_TOPLEFT, horizontal, HORIZONTAL, matchWidth, minorAlignment, spacing, transposer, VERTICAL |
| Fields inherited from class org.eclipse.draw2d.AbstractLayout |
isObservingVisibility, preferredSize |
| Constructor Summary | |
ConstrainedToolbarLayout()
Creates a new vertical ConstrainedToolbarLayout |
|
ConstrainedToolbarLayout(boolean isHorizontal)
Creates a new ConstrainedToolbarLayout with a given orientation |
|
| Method Summary | |
Dimension |
calculateMinimumSize(IFigure container,
int wHint,
int hHint)
|
protected Dimension |
calculatePreferredSize(IFigure container,
int wHint,
int hHint)
|
java.lang.Object |
getConstraint(IFigure child)
|
boolean |
getIgnoreInvisibleChildren()
|
boolean |
getStretchMajorAxis()
|
boolean |
isReversed()
|
void |
layout(IFigure parent)
|
void |
remove(IFigure child)
|
void |
setConstraint(IFigure child,
java.lang.Object constraint)
|
void |
setIgnoreInvisibleChildren(boolean ignoreInvisibleChildren)
Sets whether to ignore invisible children or not |
void |
setReversed(boolean reversed)
Sets whether to reverse children or not |
void |
setStretchMajorAxis(boolean stretch)
Sets whether to stretch the major axis or not |
| Methods inherited from class org.eclipse.draw2d.ToolbarLayout |
getMinorAlignment, getSpacing, getStretchMinorAxis, isHorizontal, isSensitiveHorizontally, isSensitiveVertically, setMatchWidth, setMinorAlignment, setSpacing, setStretchMinorAxis, setVertical |
| Methods inherited from class org.eclipse.draw2d.AbstractHintLayout |
getMinimumSize, getPreferredSize, invalidate |
| Methods inherited from class org.eclipse.draw2d.AbstractLayout |
calculatePreferredSize, getBorderPreferredSize, getMinimumSize, getPreferredSize, invalidate, isObservingVisibility, setObserveVisibility |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConstrainedToolbarLayout()
public ConstrainedToolbarLayout(boolean isHorizontal)
isHorizontal - Whether the layout is horizontal| Method Detail |
protected Dimension calculatePreferredSize(IFigure container,
int wHint,
int hHint)
AbstractLayout.calculatePreferredSize(org.eclipse.draw2d.IFigure, int, int)
public Dimension calculateMinimumSize(IFigure container,
int wHint,
int hHint)
AbstractHintLayout.calculateMinimumSize(org.eclipse.draw2d.IFigure, int, int)public void layout(IFigure parent)
LayoutManager.layout(IFigure)public java.lang.Object getConstraint(IFigure child)
LayoutManager.getConstraint(org.eclipse.draw2d.IFigure)
public void setConstraint(IFigure child,
java.lang.Object constraint)
LayoutManager.setConstraint(org.eclipse.draw2d.IFigure, java.lang.Object)public void remove(IFigure child)
LayoutManager.remove(org.eclipse.draw2d.IFigure)public void setStretchMajorAxis(boolean stretch)
stretch - Whether to stretch the major axis or notpublic boolean getStretchMajorAxis()
public void setReversed(boolean reversed)
reversed - Whether to reverse children or notpublic boolean isReversed()
public void setIgnoreInvisibleChildren(boolean ignoreInvisibleChildren)
ignoreInvisibleChildren - Whether to ignore invisible children or notpublic boolean getIgnoreInvisibleChildren()
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.