Package | Description |
---|---|
org.eclipse.gef.geometry.planar |
This package provides support for geometric calculations based on shapes.
|
Modifier and Type | Method and Description |
---|---|
Dimension |
Dimension.clone() |
Dimension |
Dimension.expand(Dimension d)
Expands the size of this Dimension by the specified amount.
|
Dimension |
Dimension.expand(double w,
double h)
Expands the size of this Dimension by the specified width and height.
|
Dimension |
Dimension.getCopy()
Creates and returns a copy of this
Dimension . |
Dimension |
Dimension.getExpanded(Dimension d)
|
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.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.getScaled(double widthFactor,
double heightFactor)
Creates a new Dimension with its width and height scaled by the specified
values.
|
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
given width and height.
|
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.
|
static Dimension |
Dimension.max(Dimension d1,
Dimension d2)
|
static Dimension |
Dimension.min(Dimension d1,
Dimension d2)
|
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 |
Dimension.setHeight(double height)
Sets the height of this Rectangle to the specified one.
|
Dimension |
Dimension.setSize(Dimension d)
Copies the width and height values of the input Dimension to this
Dimension.
|
Dimension |
Dimension.setSize(double w,
double h)
Sets the size of this dimension to the specified width and height.
|
Dimension |
Dimension.setWidth(double width)
Sets the width of this Rectangle to the specified one.
|
Dimension |
Dimension.shrink(Dimension d)
Shrinks the size of this Dimension by the width and height values of the
given Dimension.
|
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 |
Dimension.transpose()
Swaps the width and height of this Dimension, and returns this for
convenience.
|
Dimension |
Dimension.union(Dimension d)
Sets the width of this Dimension to the greater of this Dimension's width
and d.width.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Dimension.contains(Dimension d)
|
Dimension |
Dimension.expand(Dimension d)
Expands the size of this Dimension by the specified amount.
|
Dimension |
Dimension.getExpanded(Dimension d)
|
Dimension |
Dimension.getIntersected(Dimension d)
Creates and returns a new Dimension representing the intersection of this
Dimension and the one specified.
|
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.
|
static Dimension |
Dimension.max(Dimension d1,
Dimension d2)
|
static Dimension |
Dimension.min(Dimension d1,
Dimension d2)
|
Dimension |
Dimension.setSize(Dimension d)
Copies the width and height values of the input Dimension to this
Dimension.
|
Dimension |
Dimension.shrink(Dimension d)
Shrinks the size of this Dimension by the width and height values of the
given Dimension.
|
Point |
Point.translate(Dimension d)
Shifts this Point by the values of the Dimension along each axis, and
returns this for convenience.
|
Dimension |
Dimension.union(Dimension d)
Sets the width of this Dimension to the greater of this Dimension's width
and d.width.
|
Constructor and Description |
---|
Dimension(Dimension d)
|
Rectangle(Point location,
Dimension size)
Constructs a new
Rectangle with the given location and size. |
Copyright (c) 2014 itemis AG, and others. All rights reserved.