Uses of Class
org.eclipse.gef.geometry.planar.Dimension
Package
Description
This package provides support for geometric calculations based on shapes.
-
Uses of Dimension in org.eclipse.gef.geometry.planar
Modifier and TypeMethodDescriptionDimension.clone()
Dimension.expand
(double w, double h) Expands the size of this Dimension by the specified width and height.Expands the size of this Dimension by the specified amount.Dimension.getCopy()
Creates and returns a copy of thisDimension
.Dimension.getExpanded
(double w, double h) Creates and returns a new Dimension representing the sum of thisDimension
and the one specified.Dimension.getExpanded
(Dimension d) 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.getScaled
(double widthFactor, double heightFactor) Creates a new Dimension with its width and height scaled by the specified values.Dimension.getShrinked
(double w, double h) Creates and returns a new Dimension whose size will be reduced by the given width and height.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.getTransposed()
Creates a new Dimension with its height and width swapped.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 Dimension
static Dimension
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.Dimension.setHeight
(double height) Sets the height of this Rectangle to the specified one.Dimension.setSize
(double w, double h) Sets the size of this dimension to the specified width and height.Copies the width and height values of the input Dimension to this Dimension.Dimension.setWidth
(double width) Sets the width of this Rectangle to the specified one.Dimension.shrink
(double w, double 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.Dimension.transpose()
Swaps the width and height of this Dimension, and returns this for convenience.Sets the width of this Dimension to the greater of this Dimension's width and d.width.Modifier and TypeMethodDescriptionboolean
Expands the size of this Dimension by the specified amount.Dimension.getExpanded
(Dimension d) Dimension.getIntersected
(Dimension d) Creates and returns a new Dimension representing the intersection of this Dimension and the one specified.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 Dimension
static Dimension
Copies the width and height values of the input Dimension to this Dimension.Shrinks the size of this Dimension by the width and height values of the given 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.