Uses of Class
org.eclipse.draw2d.geometry.Dimension
Packages that use Dimension
Package
Description
Primary package containing general interfaces and implementation classes.
Types representing or manipulating geometric values, such as Points, Dimensions, etc.
Stand-alone algorithms related to Graph Drawing.
This package contains some complex parts used with Draw2d.
Figures and support classes related to the layout and rendering of rich text.
- 
Uses of Dimension in org.eclipse.draw2dFields in org.eclipse.draw2d declared as DimensionModifier and TypeFieldDescriptionprotected DimensionRoundedRectangle.cornerDeprecated.static final DimensionIFigure.MAX_DIMENSIONThe maximum allowable dimensionprotected DimensionFigure.maxSizeThis Figure's maximum size.static final DimensionIFigure.MIN_DIMENSIONThe minimum allowable dimension. (5,5)protected DimensionFigure.minSizeThis Figure's minimum size.protected DimensionAbstractLayout.preferredSizeThe cached preferred size.protected DimensionFigure.prefSizeThis Figure's preferred size.Methods in org.eclipse.draw2d that return DimensionModifier and TypeMethodDescriptionprotected DimensionLabel.calculateLabelSize(Dimension txtSize) Calculates the size of the Label using the passed Dimension as the size of the Label's text.protected DimensionAbstractHintLayout.calculateMinimumSize(IFigure container, int wHint, int hHint) Calculates the minimum size using the given width and height hints.protected DimensionBorderLayout.calculateMinimumSize(IFigure container, int wHint, int hHint) ScrollPaneLayout.calculateMinimumSize(IFigure figure, int w, int h) protected DimensionStackLayout.calculateMinimumSize(IFigure figure, int wHint, int hHint) Returns the minimum size required by the input container.protected DimensionToolbarLayout.calculateMinimumSize(IFigure container, int wHint, int hHint) Calculates the minimum size of the container based on the given hints.protected DimensionViewportLayout.calculateMinimumSize(IFigure figure, int wHint, int hHint) Returns the minimum size required by the input viewport figure.protected abstract DimensionAbstractLayout.calculatePreferredSize(IFigure container, int wHint, int hHint) Calculates the preferred size of the given figure, using width and height hints.protected DimensionBorderLayout.calculatePreferredSize(IFigure figure, int wHint, int hHint) protected DimensionDelegatingLayout.calculatePreferredSize(IFigure parent, int wHint, int hHint) Calculates the preferred size of the given Figure.protected DimensionFlowLayout.calculatePreferredSize(IFigure container, int wHint, int hHint) protected DimensionGridLayout.calculatePreferredSize(IFigure container, int wHint, int hHint) protected DimensionScrollBarLayout.calculatePreferredSize(IFigure parent, int w, int h) protected DimensionScrollPaneLayout.calculatePreferredSize(IFigure container, int wHint, int hHint) Calculates and returns the preferred size of the container based on the given hints.protected DimensionStackLayout.calculatePreferredSize(IFigure figure, int wHint, int hHint) Calculates and returns the preferred size of the given figure.protected DimensionToolbarLayout.calculatePreferredSize(IFigure container, int wHint, int hHint) Calculates the preferred size of the container based on the given hints.protected DimensionViewportLayout.calculatePreferredSize(IFigure parent, int wHint, int hHint) Calculates and returns the preferred size of the figure based on the given hints.protected DimensionXYLayout.calculatePreferredSize(IFigure f, int wHint, int hHint) Calculates and returns the preferred size of the input figure.protected DimensionLabel.calculateSubStringTextSize()Calculates the size of the Label's text size.protected DimensionLabel.calculateTextSize()Calculates and returns the size of the Label's text.protected DimensionAbstractLayout.getBorderPreferredSize(IFigure container) Returns the preferred size of the figure's border.protected DimensionToolbarLayout.getChildMinimumSize(IFigure child, int wHint, int hHint) protected DimensionToolbarLayout.getChildPreferredSize(IFigure child, int wHint, int hHint) protected DimensionFlowLayout.getChildSize(IFigure child, int wHint, int hHint) Provides the given child's preferred size.protected DimensionGridLayout.getChildSize(IFigure child, int wHint, int hHint) RoundedRectangle.getCornerDimensions()Returns the dimensions used for each corner.protected DimensionLabel.getIconSize()Gets the icon sizeFigure.getMaximumSize()IFigure.getMaximumSize()Returns a hint indicating the largest desireable size for the IFigure.AbstractHintLayout.getMinimumSize(IFigure container, int w, int h) AbstractLayout.getMinimumSize(IFigure container, int wHint, int hHint) final DimensionFigure.getMinimumSize()Figure.getMinimumSize(int wHint, int hHint) IFigure.getMinimumSize()Returns a hint indicating the smallest desireable size for the IFigure.IFigure.getMinimumSize(int wHint, int hHint) Returns a hint indicating the smallest desireable size for the IFigure.Label.getMinimumSize(int w, int h) LayoutManager.getMinimumSize(IFigure container, int wHint, int hHint) Returns the minimum size of the given figure.ScalableLayeredPane.getMinimumSize(int wHint, int hHint) AbstractBorder.getPreferredSize(IFigure f) final DimensionAbstractHintLayout.getPreferredSize(IFigure container, int w, int h) AbstractLabeledBorder.getPreferredSize(IFigure fig) AbstractLayout.getPreferredSize(IFigure container, int wHint, int hHint) Returns the preferred size of the given figure, using width and height hints.Border.getPreferredSize(IFigure figure) Returns the preferred width and height that this border would like to display itself properly.CompoundBorder.getPreferredSize(IFigure fig) final DimensionFigure.getPreferredSize()Figure.getPreferredSize(int wHint, int hHint) GroupBoxBorder.getPreferredSize(IFigure fig) IFigure.getPreferredSize()Returns the preferred size for this IFigure.IFigure.getPreferredSize(int wHint, int hHint) Returns the preferred size for this IFigure using the provided width and height hints.ImageFigure.getPreferredSize(int wHint, int hHint) Calculates the necessary size to display the Image within the figure's client area.Label.getPreferredSize(int wHint, int hHint) LayoutManager.getPreferredSize(IFigure container, int wHint, int hHint) Returns the preferred size of the given figure, using width and height hints.ScalableLayeredPane.getPreferredSize(int wHint, int hHint) TitleBarBorder.getPreferredSize(IFigure fig) Overwritten to handle padding appropriately.protected DimensionPopUpHelper.getShellTrimSize()Returns the size needed to display the shell's trim.final DimensionFigure.getSize()IFigure.getSize()Returns the current size.static DimensionFigureUtilities.getStringExtents(String s, Font f) Returns the Dimensions of s in Font f.TextUtilities.getStringExtents(String s, Font f) Returns the Dimensions of s in Font f.protected DimensionLabel.getSubStringTextSize()Returns the size of the Label's current text.protected DimensionAbstractLabeledBorder.getTextExtents(IFigure f) Calculates and returns the size required by this border's label.static DimensionFigureUtilities.getTextExtents(String text, Font f) Returns the Dimensions of the given text, converting newlines and tabs appropriately.TextUtilities.getTextExtents(String s, Font f) Returns the Dimensions of the given text, converting newlines and tabs appropriately.protected DimensionLabel.getTextSize()Returns the size of the label's complete text.Methods in org.eclipse.draw2d with parameters of type DimensionModifier and TypeMethodDescriptionprotected DimensionLabel.calculateLabelSize(Dimension txtSize) Calculates the size of the Label using the passed Dimension as the size of the Label's text.protected RectangleAbstractLocator.getNewBounds(Dimension size, Point center) Recalculate the location of the figure according to its desired position relative to the center point.static voidFigureUtilities.getTextExtents(String s, Font f, Dimension result) Returns the Dimensions of the given text, converting newlines and tabs appropriately.voidRoundedRectangle.setCornerDimensions(Dimension d) Sets the dimensions of each corner.voidLabel.setIconDimension(Dimension d) Deprecated.the icon is automatically displayed at 1:1voidFigure.setMaximumSize(Dimension d) voidIFigure.setMaximumSize(Dimension size) Sets the maximum size this IFigure can be.voidFigure.setMinimumSize(Dimension d) voidIFigure.setMinimumSize(Dimension size) Sets the minimum size this IFigure can be.voidFigure.setPreferredSize(Dimension size) voidIFigure.setPreferredSize(Dimension size) Sets this IFigure's preferred size.voidRelativeBendpoint.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.final voidvoidSets this IFigure's size.Constructors in org.eclipse.draw2d with parameters of type DimensionModifierConstructorDescriptionRoundedRectangleAnchor(Figure figure, Dimension corners) Rounded Rectangle getCornerDimension should be public #302836 then Rounded Rectangle would be sufficient.
- 
Uses of Dimension in org.eclipse.draw2d.geometrySubclasses of Dimension in org.eclipse.draw2d.geometryFields in org.eclipse.draw2d.geometry declared as DimensionModifier and TypeFieldDescriptionstatic final DimensionDimension.SINGLETONA singleton for use in short calculations.Methods in org.eclipse.draw2d.geometry that return DimensionModifier and TypeMethodDescriptionDimension.expand(double w, double h) Expands the size of this Dimension by the specified width and height.Dimension.expand(int w, int h) Expands the size of this Dimension by the specified width and height.Expands the size of this Dimension by the specified amount.Deprecated, for removal: This API element is subject to removal in a future version.Useexpand(int, int)instead.PrecisionDimension.expand(double w, double h) PrecisionDimension.expand(int w, int h) Dimension.getCopy()Creates and returns a copy of this Dimension.PrecisionDimension.getCopy()Dimension.getDifference(Dimension d) Deprecated, for removal: This API element is subject to removal in a future version.UsegetShrinked(Dimension)instead.Point.getDifference(Point p) Calculates the difference in between this Point and the one specified.PrecisionPoint.getDifference(Point p) Dimension.getExpanded(double w, double h) Creates and returns a new Dimension representing the sum of this Dimension and the one specified.Dimension.getExpanded(int w, int h) Creates and returns a new Dimension representing the sum of this Dimension and the one specified.Dimension.getExpanded(Dimension d) Creates and returns a Dimension representing the sum of this Dimension and the one specified.Dimension.getIntersected(Dimension d) Creates and returns a new Dimension representing the intersection of this Dimension and the one specified.Dimension.getNegated()Creates and returns a new Dimension with negated values.Dimension.getScaled(double amount) Creates a new Dimension with its width and height scaled by the specified value.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.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.getShrinked(Dimension d) Creates and returns a new Dimension whose size will be reduced by the width and height of the given Dimension.Rectangle.getSize()Retuns the dimensions of this Rectangle.Dimension.getTransposed()Creates a new Dimension with its height and width swapped.Dimension.getUnioned(int w, int h) Creates a new Dimension representing the union of this Dimension with width and height specified.Dimension.getUnioned(Dimension d) Creates a new Dimension representing the union of this Dimension with the one specified.This Dimension is intersected with the one specified.static DimensionCreates a new Dimension representing the MAX of two provided Dimensions.static DimensionCreates a new Dimension representing the MIN of two provided Dimensions.Dimension.negate()Negates the width and height of this Dimension.Dimension.scale(double factor) Scales the width and height of this Dimension by the amount supplied, and returns this for convenience.Dimension.scale(double widthFactor, double heightFactor) Scales the width of this Dimension by w and scales the height of this Dimension by h.PrecisionDimension.scale(double widthFactor, double heightFactor) Dimension.setHeight(int height) Sets the height of this Rectangle to the specified one.PrecisionDimension.setHeight(int h) Dimension.setSize(int w, int h) Sets the size of this dimension to the specified width and height.PrecisionDimension.setSize(int w, int h) Dimension.setWidth(int width) Sets the width of this Rectangle to the specified one.PrecisionDimension.setWidth(int width) Dimension.shrink(double w, double h) Reduces the width of this Dimension by w, and reduces the height of this Dimension by h.Dimension.shrink(int w, int h) Reduces the width of this Dimension by w, and reduces the height of this Dimension by h.Shrinks the size of this Dimension by the width and height values of the given Dimension.PrecisionDimension.shrink(double w, double h) PrecisionDimension.shrink(int w, int h) Returns a new transposed Dimension of the input Dimension.Dimension.transpose()Swaps the width and height of this Dimension, and returns this for convenience.PrecisionDimension.transpose()Dimension.union(int w, int h) Sets the width of this Dimension to the greater of this Dimension's width and width.Sets the width of this Dimension to the greater of this Dimension's width and d.width.Methods in org.eclipse.draw2d.geometry with parameters of type DimensionModifier and TypeMethodDescriptionbooleanReturnstrueif the input Dimension fits into this Dimension.booleanbooleanDimension.containsProper(Dimension d) Returnstrueif this Dimension properly contains the one specified.booleanPrecisionDimension.containsProper(Dimension d) Expands the size of this Dimension by the specified amount.Dimension.getDifference(Dimension d) Deprecated, for removal: This API element is subject to removal in a future version.UsegetShrinked(Dimension)instead.Dimension.getExpanded(Dimension d) Creates and returns a Dimension representing the sum of this Dimension and the one specified.Dimension.getIntersected(Dimension d) Creates and returns a new Dimension representing the intersection of this Dimension and the one specified.Rectangle.getResized(Dimension d) Returns a new Rectangle which is equivalent to this Rectangle with its dimensions modified by the passed Dimension d.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.getTranslated(Dimension d) Creates a new Point which is translated by the values of the input Dimension.Dimension.getUnioned(Dimension d) Creates a new Dimension representing the union of this Dimension with the one specified.This Dimension is intersected with the one specified.static DimensionCreates a new Dimension representing the MAX of two provided Dimensions.static DimensionCreates a new Dimension representing the MIN of two provided Dimensions.default voidTranslatable.performTranslate(Dimension dimension) Translates this object horizontally bydimension.widthand vertically bydimension.height.Resizes this Rectangle by the Dimension provided as input and returns this for convenience.Sets the location and size of this rectangle to the provided ones.voidCopies the width and height values of the input Dimension to this Dimension.voidSets the width and height of this Rectangle to the width and height of the given Dimension and returns this for convenience.Shrinks the size of this Dimension by the width and height values of the given Dimension.Returns a new transposed Dimension of the input Dimension.Shifts this Point by the values of the Dimension along each axis, and returns this for convenience.Sets the width of this Dimension to the greater of this Dimension's width and d.width.Deprecated, for removal: This API element is subject to removal in a future version.Union with a dimension generally does not make much sense, thus deprecating this.Constructors in org.eclipse.draw2d.geometry with parameters of type DimensionModifierConstructorDescriptionConstructs a Dimension with the width and height of the passed Dimension.Constructs a precision representation of the given dimension.PrecisionRectangle(Point p, Dimension d) Constructs a new PrecisionRectangle from a given Point and a DimensionConstructs a Rectangle given a location and size.
- 
Uses of Dimension in org.eclipse.draw2d.graphMethods in org.eclipse.draw2d.graph that return DimensionMethods in org.eclipse.draw2d.graph with parameters of type Dimension
- 
Uses of Dimension in org.eclipse.draw2d.partsMethods in org.eclipse.draw2d.parts that return DimensionModifier and TypeMethodDescriptionThumbnail.getPreferredSize(int wHint, int hHint) Returns the preferred size of this Thumbnail.protected DimensionThumbnail.getTargetSize()Returns the target size of the thumbnail.
- 
Uses of Dimension in org.eclipse.draw2d.textMethods in org.eclipse.draw2d.text that return DimensionModifier and TypeMethodDescriptionFlowFigureLayout.getMinimumSize(IFigure container, int wHint, int hHint) Not applicable.FlowPage.getMinimumSize(int w, int h) FlowFigureLayout.getPreferredSize(IFigure container, int wHint, int hHint) Not applicable.FlowPage.getPreferredSize(int width, int h) Methods in org.eclipse.draw2d.text with parameters of type Dimension
RoundedRectangle.getCornerDimensions()instead.