## Uses of Class
org.eclipse.draw2d.geometry.Dimension

Packages that use Dimension
Package | Description
--- | ---
org.eclipse.draw2d | Primary package containing general interfaces and implementation classes.
org.eclipse.draw2d.geometry | Types representing or manipulating geometric values, such as Points, Dimensions, etc.
org.eclipse.draw2d.graph | Stand-alone algorithms related to Graph Drawing.
org.eclipse.draw2d.parts | This package contains some complex parts used with Draw2d.
org.eclipse.draw2d.text | Figures and support classes related to the layout and rendering of rich text.

### Uses of Dimension in org.eclipse.draw2d

Fields in org.eclipse.draw2d declared as Dimension
Modifier and Type | Field and Description
--- | ---
`protected Dimension` | RoundedRectangle.`corner` Deprecated. Use `RoundedRectangle.getCornerDimensions()` instead.
`static Dimension` | IFigure.`MAX_DIMENSION` The maximum allowable dimension.
`protected Dimension` | Figure.`maxSize` This Figure's maximum size.
`static Dimension` | IFigure.`MIN_DIMENSION` The minimum allowable dimension. (5,5)
`protected Dimension` | Figure.`minSize` This Figure's minimum size.
`protected Dimension` | AbstractLayout.`preferredSize` The cached preferred size.
`protected Dimension` | Figure.`prefSize` This Figure's preferred size.

Methods in org.eclipse.draw2d that return Dimension
Modifier and Type | Method and Description
--- | ---
`protected Dimension` | Label.`calculateLabelSize(Dimension txtSize)` Calculates the size of the Label using the passed Dimension as the size of the Label's text.
`protected Dimension` | AbstractHintLayout.`calculateMinimumSize(IFigure container, int wHint, int hHint)` Calculates the minimum size using the given width and height hints.
`Dimension` | ScrollPaneLayout.`calculateMinimumSize(IFigure figure, int w, int h)`
`protected Dimension` | ViewportLayout.`calculateMinimumSize(IFigure figure, int wHint, int hHint)` Returns the minimum size required by the input viewport figure.
`protected Dimension` | ToolbarLayout.`calculateMinimumSize(IFigure container, int wHint, int hHint)` Calculates the minimum size of the container based on the given hints.
`protected Dimension` | BorderLayout.`calculateMinimumSize(IFigure container, int wHint, int hHint)`
`protected Dimension` | StackLayout.`calculateMinimumSize(IFigure figure, int wHint, int hHint)` Returns the minimum size required by the input container.
`protected abstract Dimension` | AbstractLayout.`calculatePreferredSize(IFigure container, int wHint, int hHint)` Calculates the preferred size of the given figure, using width and height hints.
`protected Dimension` | ScrollPaneLayout.`calculatePreferredSize(IFigure container, int wHint, int hHint)` Calculates and returns the preferred size of the container based on the given hints.
`protected Dimension` | ScrollBarLayout.`calculatePreferredSize(IFigure parent, int w, int h)`
`protected Dimension` | ViewportLayout.`calculatePreferredSize(IFigure parent, int wHint, int hHint)` Calculates and returns the preferred size of the figure based on the given hints.
`protected Dimension` | ToolbarLayout.`calculatePreferredSize(IFigure container, int wHint, int hHint)` Calculates the preferred size of the container based on the given hints.
`protected Dimension` | BorderLayout.`calculatePreferredSize(IFigure figure, int wHint, int hHint)`
`protected Dimension` | DelegatingLayout.`calculatePreferredSize(IFigure parent, int wHint, int hHint)` Calculates the preferred size of the given Figure.
`protected Dimension` | GridLayout.`calculatePreferredSize(IFigure container, int wHint, int hHint)`
`protected Dimension` | StackLayout.`calculatePreferredSize(IFigure figure, int wHint, int hHint)` Calculates and returns the preferred size of the given figure.
`protected Dimension` | XYLayout.`calculatePreferredSize(IFigure f, int wHint, int hHint)` Calculates and returns the preferred size of the input figure.
`protected Dimension` | FlowLayout.`calculatePreferredSize(IFigure container, int wHint, int hHint)`
`protected Dimension` | Label.`calculateSubStringTextSize()` Calculates the size of the Label's text size.
`protected Dimension` | Label.`calculateTextSize()` Calculates and returns the size of the Label's text.
`protected Dimension` | AbstractLayout.`getBorderPreferredSize(IFigure container)` Returns the preferred size of the figure's border.
`protected Dimension` | ToolbarLayout.`getChildMinimumSize(IFigure child, int wHint, int hHint)`
`protected Dimension` | ToolbarLayout.`getChildPreferredSize(IFigure child, int wHint, int hHint)`
`protected Dimension` | GridLayout.`getChildSize(IFigure child, int wHint, int hHint)`
`protected Dimension` | FlowLayout.`getChildSize(IFigure child, int wHint, int hHint)` Provides the given child's preferred size.
`Dimension` | RoundedRectangle.`getCornerDimensions()` Returns the dimensions used for each corner.
`protected Dimension` | Label.`getIconSize()` Gets the icon size
`Dimension` | Figure.`getMaximumSize()`
`Dimension` | IFigure.`getMaximumSize()` Returns a hint indicating the largest desireable size for the IFigure.
`Dimension` | Figure.`getMinimumSize()`
`Dimension` | IFigure.`getMinimumSize()` Returns a hint indicating the smallest desireable size for the IFigure.
`Dimension` | AbstractLayout.`getMinimumSize(IFigure container, int wHint, int hHint)`
`Dimension` | AbstractHintLayout.`getMinimumSize(IFigure container, int w, int h)`
`Dimension` | LayoutManager.`getMinimumSize(IFigure container, int wHint, int hHint)` Returns the minimum size of the given figure.
`Dimension` | Label.`getMinimumSize(int w, int h)`
`Dimension` | Figure.`getMinimumSize(int wHint, int hHint)`
`Dimension` | IFigure.`getMinimumSize(int wHint, int hHint)` Returns a hint indicating the smallest desireable size for the IFigure.
`Dimension` | ScalableLayeredPane.`getMinimumSize(int wHint, int hHint)`
`Dimension` | Figure.`getPreferredSize()`
`Dimension` | IFigure.`getPreferredSize()` Returns the preferred size for this IFigure.
`Dimension` | CompoundBorder.`getPreferredSize(IFigure fig)`
`Dimension` | AbstractLabeledBorder.`getPreferredSize(IFigure fig)`
`Dimension` | GroupBoxBorder.`getPreferredSize(IFigure fig)`
`Dimension` | TitleBarBorder.`getPreferredSize(IFigure fig)` Overwritten to handle padding appropriately.
`Dimension` | Border.`getPreferredSize(IFigure figure)` Returns the preferred width and height that this border would like to display itself properly.
`Dimension` | AbstractBorder.`getPreferredSize(IFigure f)`
`Dimension` | AbstractLayout.`getPreferredSize(IFigure container, int wHint, int hHint)` Returns the preferred size of the given figure, using width and height hints.
`Dimension` | AbstractHintLayout.`getPreferredSize(IFigure container, int w, int h)`
`Dimension` | LayoutManager.`getPreferredSize(IFigure container, int wHint, int hHint)` Returns the preferred size of the given figure, using width and height hints.
`Dimension` | ImageFigure.`getPreferredSize(int wHint, int hHint)` Calculates the necessary size to display the Image within the figure's client area.
`Dimension` | Label.`getPreferredSize(int wHint, int hHint)`
`Dimension` | Figure.`getPreferredSize(int wHint, int hHint)`
`Dimension` | IFigure.`getPreferredSize(int wHint, int hHint)` Returns the preferred size for this IFigure using the provided width and height hints.
`Dimension` | ScalableLayeredPane.`getPreferredSize(int wHint, int hHint)`
`protected Dimension` | PopUpHelper.`getShellTrimSize()` Returns the size needed to display the shell's trim.
`Dimension` | Figure.`getSize()`
`Dimension` | IFigure.`getSize()` Returns the current size.
`static Dimension` | FigureUtilities.`getStringExtents(java.lang.String s, Font f)` Returns the Dimensions of s in Font f.
`Dimension` | TextUtilities.`getStringExtents(java.lang.String s, Font f)` Returns the Dimensions of s in Font f.
`protected Dimension` | Label.`getSubStringTextSize()` Returns the size of the Label's current text.
`protected Dimension` | AbstractLabeledBorder.`getTextExtents(IFigure f)` Calculates and returns the size required by this border's label.
`static Dimension` | FigureUtilities.`getTextExtents(java.lang.String text, Font f)` Returns the Dimensions of the given text, converting newlines and tabs appropriately.
`Dimension` | TextUtilities.`getTextExtents(java.lang.String s, Font f)` Returns the Dimensions of the given text, converting newlines and tabs appropriately.
`protected Dimension` | Label.`getTextSize()` Returns the size of the label's complete text.

Methods in org.eclipse.draw2d with parameters of type Dimension
Modifier and Type | Method and Description
--- | ---
`protected Dimension` | Label.`calculateLabelSize(Dimension txtSize)` Calculates the size of the Label using the passed Dimension as the size of the Label's text.
`protected Rectangle` | AbstractLocator.`getNewBounds(Dimension size, Point center)` Recalculate the location of the figure according to its desired position relative to the center point.
`static void` | FigureUtilities.`getTextExtents(java.lang.String s, Font f, Dimension result)` Returns the Dimensions of the given text, converting newlines and tabs appropriately.
`void` | RoundedRectangle.`setCornerDimensions(Dimension d)` Sets the dimensions of each corner.
`void` | Label.`setIconDimension(Dimension d)` Deprecated. the icon is automatically displayed at 1:1
`void` | Figure.`setMaximumSize(Dimension d)`
`void` | IFigure.`setMaximumSize(Dimension size)` Sets the maximum size this IFigure can be.
`void` | Figure.`setMinimumSize(Dimension d)`
`void` | IFigure.`setMinimumSize(Dimension size)` Sets the minimum size this IFigure can be.
`void` | Figure.`setPreferredSize(Dimension size)`
`void` | IFigure.`setPreferredSize(Dimension size)` Sets this IFigure's preferred size.
`void` | RelativeBendpoint.`setRelativeDimensions(Dimension dim1, Dimension dim2)` Sets the Dimensions representing the X and Y distances this Bendpoint is from the start and end points of the Connection.
`void` | Figure.`setSize(Dimension d)`
`void` | IFigure.`setSize(Dimension d)` Sets this IFigure's size.

Constructors in org.eclipse.draw2d with parameters of type Dimension
Constructor and Description
`RoundedRectangleAnchor(Figure figure, Dimension corners)` Rounded Rectangle getCornerDimension should be public #302836 then Rounded Rectangle would be sufficient.

### Uses of Dimension in org.eclipse.draw2d.geometry

Subclasses of Dimension in org.eclipse.draw2d.geometry
Modifier and Type | Class and Description
--- | ---
`class` | `PrecisionDimension`

Fields in org.eclipse.draw2d.geometry declared as Dimension
Modifier and Type | Field and Description
--- | ---
`static Dimension` | Dimension.`SINGLETON` A singleton for use in short calculations.

Methods in org.eclipse.draw2d.geometry that return Dimension
Modifier and Type | Method and Description
--- | ---
`Dimension` | Dimension.`expand(Dimension d)` Expands the size of this Dimension by the specified amount.
`Dimension` | PrecisionDimension.`expand(Dimension d)`
`Dimension` | Dimension.`expand(double w, double h)` Expands the size of this Dimension by the specified width and height.
`Dimension` | PrecisionDimension.`expand(double w, double h)`
`Dimension` | Dimension.`expand(int w, int h)` Expands the size of this Dimension by the specified width and height.
`Dimension` | PrecisionDimension.`expand(int w, int h)`
`Dimension` | Dimension.`expand(Point p)` Deprecated. Use `expand(int, int)` instead.
`Dimension` | Dimension.`getCopy()` Creates and returns a copy of this Dimension.
`Dimension` | PrecisionDimension.`getCopy()`
`Dimension` | Dimension.`getDifference(Dimension d)` Deprecated. Use `getShrinked(Dimension)` instead.
`Dimension` | PrecisionPoint.`getDifference(Point p)`
`Dimension` | Point.`getDifference(Point p)` Calculates the difference in between this Point and the one specified.
`Dimension` | Dimension.`getExpanded(Dimension d)` Creates and returns a Dimension representing the sum of this Dimension and the one specified.
`Dimension` | Dimension.`getExpanded(double w, double h)` Creates and returns a new Dimension representing the sum of this Dimension and the one specified.
`Dimension` | Dimension.`getExpanded(int w, int h)` Creates and returns a new Dimension representing the sum of this Dimension and the one specified.
`Dimension` | Dimension.`getIntersected(Dimension d)` Creates and returns a new Dimension representing the intersection of this Dimension and the one specified.
`Dimension` | Dimension.`getNegated()` Creates and returns a new Dimension with negated values.
`Dimension` | Dimension.`getScaled(double amount)` Creates a new Dimension with its width and height scaled by the specified value.
`Dimension` | Dimension.`getShrinked(Dimension d)` Creates and returns a new Dimension whose size will be reduced by the width and height of the given Dimension.
`Dimension` | Dimension.`getShrinked(double w, double h)` Creates and returns a new Dimension whose size will be reduced by the width and height of the given Dimension.
`Dimension` | Dimension.`getShrinked(int w, int h)` Creates and returns a new Dimension whose size will be reduced by the width and height of the given Dimension.
`Dimension` | Rectangle.`getSize()` Retuns the dimensions of this Rectangle.
`Dimension` | Dimension.`getTransposed()` Creates a new Dimension with its height and width swapped.
`Dimension` | Dimension.`getUnioned(Dimension d)` Creates a new Dimension representing the union of this Dimension with the one specified.
`Dimension` | Dimension.`intersect(Dimension d)` This Dimension is intersected with the one specified.
`Dimension` | PrecisionDimension.`intersect(Dimension d)`
`static Dimension` | Dimension.`max(Dimension d1, Dimension d2)` Creates a new Dimension representing the MAX of two provided Dimensions.
`static Dimension` | Dimension.`min(Dimension d1, Dimension d2)` Creates a new Dimension representing the MIN of two provided Dimensions.
`Dimension` | Dimension.`negate()` Negates the width and height of this Dimension.
`Dimension` | Dimension.`scale(double factor)` Scales the width and height of this Dimension by the amount supplied, and returns this for convenience.
`Dimension` | Dimension.`scale(double widthFactor, double heightFactor)` Scales the width of this Dimension by w and scales the height of this Dimension by h.
`Dimension` | PrecisionDimension.`scale(double widthFactor, double heightFactor)`
`Dimension` | Dimension.`setHeight(int height)` Sets the height of this Rectangle to the specified one.
`Dimension` | PrecisionDimension.`setHeight(int h)`
`Dimension` | Dimension.`setSize(int w, int h)` Sets the size of this dimension to the specified width and height.
`Dimension` | PrecisionDimension.`setSize(int w, int h)`
`Dimension` | Dimension.`setWidth(int width)` Sets the width of this Rectangle to the specified one.
`Dimension` | PrecisionDimension.`setWidth(int width)`
`Dimension` | Dimension.`shrink(Dimension d)` Shrinks the size of this Dimension by the width and height values of the given Dimension.
`Dimension` | PrecisionDimension.`shrink(Dimension d)`
`Dimension` | Dimension.`shrink(double w, double h)` Reduces the width of this Dimension by w, and reduces the height of this Dimension by h.
`Dimension` | PrecisionDimension.`shrink(double w, double h)`
`Dimension` | Dimension.`shrink(int w, int h)` Reduces the width of this Dimension by w, and reduces the height of this Dimension by h.
`Dimension` | PrecisionDimension.`shrink(int w, int h)`
`Dimension` | Transposer.`t(Dimension d)` Returns a new transposed Dimension of the input Dimension.
`Dimension` | Dimension.`transpose()` Swaps the width and height of this Dimension, and returns this for convenience.
`Dimension` | PrecisionDimension.`transpose()`
`Dimension` | Dimension.`union(Dimension d)` Sets the width of this Dimension to the greater of this Dimension's width and d.width.
`Dimension` | PrecisionDimension.`union(Dimension d)`

Methods in org.eclipse.draw2d.geometry with parameters of type Dimension
Modifier and Type | Method and Description
--- | ---
`boolean` | Dimension.`contains(Dimension d)` Returns `true` if the input Dimension fits into this Dimension.
`boolean` | PrecisionDimension.`contains(Dimension d)`
`boolean` | Dimension.`containsProper(Dimension d)` Returns `true` if this Dimension properly contains the one specified.
`boolean` | PrecisionDimension.`containsProper(Dimension d)`
`Dimension` | Dimension.`expand(Dimension d)` Expands the size of this Dimension by the specified amount.
`Dimension` | PrecisionDimension.`expand(Dimension d)`
`Dimension` | Dimension.`getDifference(Dimension d)` Deprecated. Use `getShrinked(Dimension)` instead.
`Dimension` | Dimension.`getExpanded(Dimension d)` Creates and returns a Dimension representing the sum of this Dimension and the one specified.
`Dimension` | Dimension.`getIntersected(Dimension d)` Creates and returns a new Dimension representing the intersection of this Dimension and the one specified.
`Rectangle` | Rectangle.`getResized(Dimension d)` Returns a new Rectangle which is equivalent to this Rectangle with its dimensions modified by the passed Dimension d.
`Dimension` | Dimension.`getShrinked(Dimension d)` Creates and returns a new Dimension whose size will be reduced by the width and height of the given Dimension.
`Point` | Point.`getTranslated(Dimension d)` Creates a new Point which is translated by the values of the input Dimension.
`Dimension` | Dimension.`getUnioned(Dimension d)` Creates a new Dimension representing the union of this Dimension with the one specified.
`Dimension` | Dimension.`intersect(Dimension d)` This Dimension is intersected with the one specified.
`Dimension` | PrecisionDimension.`intersect(Dimension d)`
`static Dimension` | Dimension.`max(Dimension d1, Dimension d2)` Creates a new Dimension representing the MAX of two provided Dimensions.
`static Dimension` | Dimension.`min(Dimension d1, Dimension d2)` Creates a new Dimension representing the MIN of two provided Dimensions.
`Rectangle` | Rectangle.`resize(Dimension d)` Resizes this Rectangle by the Dimension provided as input and returns this for convenience.
`Rectangle` | PrecisionRectangle.`resize(Dimension d)`
`Rectangle` | Rectangle.`setBounds(Point location, Dimension size)` Sets the location and size of this rectangle to the provided ones.
`Rectangle` | PrecisionRectangle.`setBounds(Point location, Dimension size)`
`Rectangle` | Rectangle.`setSize(Dimension d)` Sets the width and height of this Rectangle to the width and height of the given Dimension and returns this for convenience.
`void` | Dimension.`setSize(Dimension d)` Copies the width and height values of the input Dimension to this Dimension.
`void` | PrecisionDimension.`setSize(Dimension d)`
`Rectangle` | PrecisionRectangle.`setSize(Dimension d)`
`Dimension` | Dimension.`shrink(Dimension d)` Shrinks the size of this Dimension by the width and height values of the given Dimension.
`Dimension` | PrecisionDimension.`shrink(Dimension d)`
`Dimension` | Transposer.`t(Dimension d)` Returns a new transposed Dimension of the input Dimension.
`Point` | PrecisionPoint.`translate(Dimension d)`
`Point` | Point.`translate(Dimension d)` Shifts this Point by the values of the Dimension along each axis, and returns this for convenience.
`Rectangle` | Rectangle.`union(Dimension d)` Deprecated. Union with a dimension generally does not make much sense, thus deprecating this. Use `max(Dimension, Dimension)` and `Rectangle.setSize(Dimension)` to implement the desired behavior instead.
`Dimension` | Dimension.`union(Dimension d)` Sets the width of this Dimension to the greater of this Dimension's width and d.width.
`Dimension` | PrecisionDimension.`union(Dimension d)`

Constructors in org.eclipse.draw2d.geometry with parameters of type Dimension
Constructor and Description
`Dimension(Dimension d)` Constructs a Dimension with the width and height of the passed Dimension.
`PrecisionDimension(Dimension d)` Constructs a precision representation of the given dimension.
`PrecisionRectangle(Point p, Dimension d)` Constructs a new PrecisionRectangle from a given Point and a Dimension
`Rectangle(Point p, Dimension size)` Constructs a Rectangle given a location and size.

### Uses of Dimension in org.eclipse.draw2d.graph

Methods in org.eclipse.draw2d.graph that return Dimension
Modifier and Type | Method and Description
--- | ---
`Dimension` | DirectedGraph.`getLayoutSize()`

Methods in org.eclipse.draw2d.graph with parameters of type Dimension
Modifier and Type | Method and Description
--- | ---
`void` | Node.`setSize(Dimension size)` Sets the size of this node to the given dimension.

### Uses of Dimension in org.eclipse.draw2d.parts

Methods in org.eclipse.draw2d.parts that return Dimension
Modifier and Type | Method and Description
--- | ---
`Dimension` | Thumbnail.`getPreferredSize(int wHint, int hHint)` Returns the preferred size of this Thumbnail.

### Uses of Dimension in org.eclipse.draw2d.text

Methods in org.eclipse.draw2d.text that return Dimension
Modifier and Type | Method and Description
--- | ---
`Dimension` | FlowFigureLayout.`getMinimumSize(IFigure container, int wHint, int hHint)` Not applicable.
`Dimension` | FlowPage.`getMinimumSize(int w, int h)`
`Dimension` | FlowFigureLayout.`getPreferredSize(IFigure container, int wHint, int hHint)` Not applicable.
`Dimension` | FlowPage.`getPreferredSize(int width, int h)`

Methods in org.eclipse.draw2d.text with parameters of type Dimension
Modifier and Type | Method and Description
--- | ---
`int` | TextFlow.`getOffset(Point p, int[] trailing, Dimension proximity)` Returns the offset of the character directly below or nearest the given location.