Uses of Class
org.eclipse.draw2d.geometry.Rectangle
Packages that use Rectangle
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 Rectangle in org.eclipse.draw2dFields in org.eclipse.draw2d declared as RectangleModifier and TypeFieldDescriptionFlowLayout.WorkingData.areaprotected RectangleFigure.boundsThe rectangular area that this Figure occupies.FlowLayout.WorkingData.boundsprotected static RectangleAbstractBorder.tempRectA temporary RectangleScrollPaneSolver.Result.viewportAreaArea of ScrollPane's viewportMethods in org.eclipse.draw2d that return RectangleModifier and TypeMethodDescriptionprotected RectangleViewportAwareConnectionLayerClippingStrategy.getAbsoluteBoundsAsCopy(IFigure figure) Returns the figure's bounds in absolute coordinates.protected RectangleViewportAwareConnectionLayerClippingStrategy.getAbsoluteClientAreaAsCopy(IFigure figure) Returns the viewport's client area in absolute coordinates.protected RectangleViewportAwareConnectionLayerClippingStrategy.getAbsoluteViewportAreaAsCopy(Viewport viewport) Returns the area covered by the viewport in absolute coordinates.Figure.getBounds()Returns the smallest rectangle completely enclosing the figure.IFigure.getBounds()Returns the smallest rectangle completely enclosing the IFigure.Polyline.getBounds()PolylineConnection.getBounds()Returns the bounds which holds all the points in this polyline connection.protected RectangleChopboxAnchor.getBox()Returns the bounds of this ChopboxAnchor's owner.protected RectangleLabelAnchor.getBox()Returns the bounds of this LabelAnchor's owning Label icon.final RectangleFigure.getClientArea()Figure.getClientArea(Rectangle rect) IFigure.getClientArea()Returns the rectangular area within this Figure's bounds in which children will be placed (viaLayoutManagers) and the painting of children will be clipped.IFigure.getClientArea(Rectangle rect) Copies the client area into the specificied Recangle, and returns that rectangle for convenience.ScalableFreeformLayeredPane.getClientArea(Rectangle rect) ScalableLayeredPane.getClientArea(Rectangle rect) Viewport.getClientArea(Rectangle rect) abstract RectangleModifies the given rectangle to match the clip region and returns that rectangle.Specifies the clipping region for the given child figure.protected Rectangle[]ViewportAwareConnectionLayerClippingStrategy.getEdgeClippingRectangle(Connection connection) Computes clipping rectangle(s) for a given connection.FreeformFigure.getFreeformExtent()Returns the freeform extent, essentially the bounds of the FreeformFigure.FreeformLayer.getFreeformExtent()FreeformLayeredPane.getFreeformExtent()Label.getIconBounds()Returns the bounds of the Label's icon.protected RectangleAbstractLocator.getNewBounds(Dimension size, Point center) Recalculate the location of the figure according to its desired position relative to the center point.protected RectangleViewportAwareConnectionLayerClippingStrategy.getNodeClippingRectangle(IFigure figure) Computes clipping rectangle for a given (node) figure.protected static final RectangleAbstractBorder.getPaintRectangle(IFigure figure, Insets insets) Returns a temporary rectangle representing the figure's bounds cropped by the specified insets.PrintOperation.getPrintRegion()Returns a Rectangle that represents the region that can be printed to.protected RectangleRelativeLocator.getReferenceBox()Returns the Reference Box in the Reference Figure's coordinate system.default RectangleIScalablePane.getScaledRect(Rectangle rect) Label.getTextBounds()Returns the bounds of the label's text.protected RectangleScrollBarLayout.layoutButtons(ScrollBar scrollBar) Places the buttons and returns the Rectangle into which the track should be placed.Methods in org.eclipse.draw2d with parameters of type RectangleModifier and TypeMethodDescriptionvoidUpdateManager.addDirtyRegion(IFigure figure, Rectangle rect) protected voidViewportAwareConnectionLayerClippingStrategy.clipAtViewports(Rectangle clipRect, List<Viewport> enclosingViewportsPath) Clips the given clipRect at all given viewports.abstract voidSets the clip region to the given rectangle.voidvoidfinal voidfinal voidfinal voidfinal voidDraws an oval inside the given rectangle using the current foreground color.final voidGraphics.drawRectangle(Rectangle r) Draws the given rectangle using the current foreground color.abstract voidGraphics.drawRoundRectangle(Rectangle r, int arcWidth, int arcHeight) Draws a rectangle with rounded corners using the foreground color.voidScaledGraphics.drawRoundRectangle(Rectangle r, int arcWidth, int arcHeight) voidSWTGraphics.drawRoundRectangle(Rectangle r, int arcWidth, int arcHeight) final voidfinal voidGraphics.fillGradient(Rectangle r, boolean vertical) final voidfinal voidGraphics.fillRectangle(Rectangle r) Fills the given rectangle using the current background color.abstract voidGraphics.fillRoundRectangle(Rectangle r, int arcWidth, int arcHeight) Fills a rectangle with rounded corners using the background color.voidScaledGraphics.fillRoundRectangle(Rectangle r, int arcWidth, int arcHeight) voidSWTGraphics.fillRoundRectangle(Rectangle r, int arcWidth, int arcHeight) protected voidUpdateManager.firePainting(Rectangle damage, Map<IFigure, Rectangle> dirtyRegions) Notifies listeners that painting is about to occur, passing them the damaged rectangle and the map of dirty regions.voidGraphicsSource.flushGraphics(Rectangle region) Tells the GraphicsSource that you have finished using that region.voidNativeGraphicsSource.flushGraphics(Rectangle region) Does nothing.Figure.getClientArea(Rectangle rect) IFigure.getClientArea(Rectangle rect) Copies the client area into the specificied Recangle, and returns that rectangle for convenience.ScalableFreeformLayeredPane.getClientArea(Rectangle rect) ScalableLayeredPane.getClientArea(Rectangle rect) Viewport.getClientArea(Rectangle rect) abstract RectangleModifies the given rectangle to match the clip region and returns that rectangle.protected VectorManhattanConnectionRouter.getDirection(Rectangle r, Point p) Returns the direction the point p is in relation to the given rectangle.protected GraphicsDeferredUpdateManager.getGraphics(Rectangle region) Returns a Graphics object for the given region.GraphicsSource.getGraphics(Rectangle region) Returns a Graphics for the rectangular region requested.NativeGraphicsSource.getGraphics(Rectangle r) Always returnsnull, becausedefault RectangleIScalablePane.getScaledRect(Rectangle rect) booleanFigure.intersects(Rectangle rect) booleanIFigure.intersects(Rectangle rect) Returnstrueif this IFigure's bounds intersect with the given Rectangle.voidUpdateListener.notifyPainting(Rectangle damage, Map<IFigure, Rectangle> dirtyRegions) Notifies the listener that the listened to object is painting.voidUpdateListener.Stub.notifyPainting(Rectangle damage, Map<IFigure, Rectangle> dirtyRegions) static voidFigureUtilities.paintEtchedBorder(Graphics g, Rectangle r) Paints a border with an etching effect, having a shadow of a darker version of g's background color, and a highlight a lighter version of g's background color.static voidFigureUtilities.paintEtchedBorder(Graphics g, Rectangle r, Color shadow, Color highlight) Paints a border with an etching effect, having a shadow of Color shadow and highlight of Color highlight.voidDeferredUpdateManager.performUpdate(Rectangle exposed) Adds the given exposed region to the update queue and then performs the update.voidSubordinateUpdateManager.performUpdate(Rectangle rect) Deprecated.abstract voidUpdateManager.performUpdate(Rectangle exposed) Performs an update on the given exposed rectangle.final voidvoidRepaints the rectangular area within this IFigure represented byrect.voidSets the bounds of this Figure to the Rectangle rect.voidSets the bounds to the bounds of the specifiedRectangle.voidprotected voidFlowLayout.setBoundsOfChild(IFigure parent, IFigure child, Rectangle bounds) Sets the given bounds for the child figure input.abstract voidSets the clip rectangle.voidvoidvoidFreeformFigure.setFreeformBounds(Rectangle bounds) Sets the freeform bounds of this FreeformFigure.voidFreeformLayer.setFreeformBounds(Rectangle bounds) voidFreeformLayeredPane.setFreeformBounds(Rectangle bounds) static ScrollPaneSolver.ResultScrollPaneSolver.solve(Rectangle clientArea, Viewport viewport, int hVis, int vVis, int vBarWidth, int hBarHeight) Solves for the viewport area, insets, and visibility of horizontal and vertical scrollbars of a ScrollPaneMethod parameters in org.eclipse.draw2d with type arguments of type RectangleModifier and TypeMethodDescriptionprotected voidUpdateManager.firePainting(Rectangle damage, Map<IFigure, Rectangle> dirtyRegions) Notifies listeners that painting is about to occur, passing them the damaged rectangle and the map of dirty regions.voidUpdateListener.notifyPainting(Rectangle damage, Map<IFigure, Rectangle> dirtyRegions) Notifies the listener that the listened to object is painting.voidUpdateListener.Stub.notifyPainting(Rectangle damage, Map<IFigure, Rectangle> dirtyRegions) 
- 
Uses of Rectangle in org.eclipse.draw2d.geometrySubclasses of Rectangle in org.eclipse.draw2d.geometryModifier and TypeClassDescriptionfinal classA Rectangle implementation using floating point values which are truncated into the inherited integer fields.Fields in org.eclipse.draw2d.geometry declared as RectangleModifier and TypeFieldDescriptionstatic final RectangleRectangle.SINGLETONA singleton for use in short calculations.Methods in org.eclipse.draw2d.geometry that return RectangleModifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.PrecisionRectangle.expand(double h, double v) Expands the horizontal and vertical sides of this Rectangle with the values provided as input, and returns this for convenience.PrecisionRectangle.expand(int h, int v) Rectangle.expand(double h, double v) Expands the horizontal and vertical sides of this Rectangle with the values provided as input, and returns this for convenience.Rectangle.expand(int h, int v) Expands the horizontal and vertical sides of this Rectangle with the values provided as input, and returns this for convenience.Expands the horizontal and vertical sides of this Rectangle by the width and height of the given Insets, and returns this for convenience.PointList.getBounds()Returns the smallest Rectangle which contains all Points.PrecisionRectangle.getCopy()Rectangle.getCopy()Returns a new Rectangle which has the exact same parameters as this Rectangle.Rectangle.getCropped(Insets insets) Deprecated, for removal: This API element is subject to removal in a future version.UsegetShrinked(Insets)instead.Rectangle.getExpanded(double h, double v) Returns a new incremented Rectangle, where the sides are expanded by the horizontal and vertical values provided.Rectangle.getExpanded(int h, int v) Returns a new incremented Rectangle, where the sides are expanded by the horizontal and vertical values provided.Rectangle.getExpanded(Insets insets) Creates and returns a new Rectangle with the bounds ofthisRectangle, expanded by the given Insets.Rectangle.getIntersection(Rectangle rect) Returns a new Rectangle which has the intersection of this Rectangle and the rectangle provided as input.Rectangle.getResized(double w, double h) Returns a new Rectangle which is equivalent to this Rectangle with its dimensions modified by the passed width w and height h.Rectangle.getResized(int w, int h) Returns a new Rectangle which is equivalent to this Rectangle with its dimensions modified by the passed width w and height h.Rectangle.getResized(Dimension d) Returns a new Rectangle which is equivalent to this Rectangle with its dimensions modified by the passed Dimension d.Rectangle.getShrinked(double h, double v) Returns a new Rectangle, where the sides are shrinked by the horizontal and vertical values supplied.Rectangle.getShrinked(int h, int v) Returns a new Rectangle, where the sides are shrinked by the horizontal and vertical values supplied.Rectangle.getShrinked(Insets insets) Returns a new Rectangle shrinked by the specified insets.Rectangle.getTranslated(double dx, double dy) Returns a new Rectangle which is shifted along each axis by the passed values.Rectangle.getTranslated(int dx, int dy) Returns a new Rectangle which is shifted along each axis by the passed values.Rectangle.getTranslated(Point pt) Returns a new Rectangle which is shifted by the position of the given Point.Rectangle.getTransposed()Returns a new rectangle whose width and height have been interchanged, as well as its x and y values.Returns a new Rectangle which contains both this Rectangle and the Point supplied as input.Returns a new Rectangle which contains both this Rectangle and the Rectangle supplied as input.Sets the size of this Rectangle to the intersection region with the Rectangle supplied as input, and returns this for convenience.PrecisionRectangle.resize(double w, double h) PrecisionRectangle.resize(int w, int h) Rectangle.resize(double w, double h) Resizes this Rectangle by the values supplied as input and returns this for convenience.Rectangle.resize(int w, int h) Resizes this Rectangle by the values supplied as input and returns this for convenience.Resizes this Rectangle by the Dimension provided as input and returns this for convenience.final RectangleRectangle.scale(double scaleFactor) Scales the location and size of this Rectangle by the given scale and returns this for convenience.Rectangle.scale(double scaleX, double scaleY) Scales the location and size of this Rectangle by the given scales and returns this for convenience.Rectangle.setBottom(int newBottom) Updates the height to match the specifiedbottom()coordinate.PrecisionRectangle.setBounds(int x, int y, int width, int height) Rectangle.setBounds(int x, int y, int width, int height) Sets the x, y, width, and height values of this Rectangle to the provided values.Sets the location and size of this rectangle to the provided ones.Sets the parameters of this Rectangle from the Rectangle passed in and returns this for convenience.PrecisionRectangle.setHeight(int height) Rectangle.setHeight(int height) Sets the height of this Rectangle to the specified one.PrecisionRectangle.setLocation(int x, int y) PrecisionRectangle.setLocation(Point loc) Rectangle.setLocation(int x, int y) Sets the location of this Rectangle to the coordinates given as input and returns this for convenience.Rectangle.setLocation(Point p) Sets the location of this Rectangle to the point given as input and returns this for convenience.Rectangle.setRight(int newRight) Updates the width to match the specifiedright()coordinate.PrecisionRectangle.setSize(int w, int h) Rectangle.setSize(int w, int h) Sets the width of this Rectangle to w and the height of this Rectangle to h and returns this for convenience.Sets the width and height of this Rectangle to the width and height of the given Dimension and returns this for convenience.PrecisionRectangle.setWidth(int width) Rectangle.setWidth(int width) Sets the width of this Rectangle to the specified one.PrecisionRectangle.setX(int value) Rectangle.setX(int x) Sets the x value of the Rectangle and returns this for convenience.PrecisionRectangle.setY(int value) Rectangle.setY(int y) Sets the y value of the Rectangle and returns this for convenience.PrecisionRectangle.shrink(double h, double v) Shrinks the sides of this Rectangle by the horizontal and vertical values provided as input, and returns this Rectangle for convenience.PrecisionRectangle.shrink(int h, int v) Rectangle.shrink(double h, double v) Shrinks the sides of this Rectangle by the horizontal and vertical values provided as input, and returns this Rectangle for convenience.Rectangle.shrink(int h, int v) Shrinks the sides of this Rectangle by the horizontal and vertical values provided as input, and returns this Rectangle for convenience.Shrinks this rectangle by the amount specified ininsets.Rectangle.shrinkLeft(int deltaX) Shrinks the width of the rectangle by the given amount, keepingright().Rectangle.shrinkTop(int deltaY) Shrinks the height of the rectangle by the given amount, keepingbottom().Returns a new transposed Rectangle of the input Rectangle.PrecisionRectangle.translate(double dx, double dy) PrecisionRectangle.translate(int dx, int dy) Rectangle.translate(double dx, double dy) Moves this Rectangle horizontally by dx and vertically by dy, then returns this Rectangle for convenience.Rectangle.translate(int dx, int dy) Moves this Rectangle horizontally by dx and vertically by dy, then returns this Rectangle for convenience.Moves this Rectangle horizontally by the x value of the given Point and vertically by the y value of the given Point, then returns this Rectangle for convenience.PrecisionRectangle.transpose()Rectangle.transpose()Switches the x and y values, as well as the width and height of this Rectangle.PrecisionRectangle.union(double x, double y) PrecisionRectangle.union(double x, double y, double w, double h) PrecisionRectangle.union(int x, int y) PrecisionRectangle.union(int x, int y, int w, int h) Rectangle.union(double x, double y) Updates this Rectangle's bounds to the minimum size which can hold both this Rectangle and the coordinate (x,y).Rectangle.union(double x, double y, double w, double h) Updates this Rectangle's dimensions to the minimum size which can hold both this Rectangle and the rectangle (x, y, w, h).Rectangle.union(int x1, int y1) Updates this Rectangle's bounds to the minimum size which can hold both this Rectangle and the coordinate (x,y).Rectangle.union(int x, int y, int w, int h) Updates this Rectangle's dimensions to the minimum size which can hold both this Rectangle and the rectangle (x, y, w, h).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.Updates this Rectangle's dimensions to the minimum size which can hold both this Rectangle and the given Rectangle.Methods in org.eclipse.draw2d.geometry with parameters of type RectangleModifier and TypeMethodDescriptionbooleanbooleanReturnstrueif the given rectangle is contained within the boundaries of this Rectangle.Rectangle.getIntersection(Rectangle rect) Returns a new Rectangle which has the intersection of this Rectangle and the rectangle provided as input.Returns a new Rectangle which contains both this Rectangle and the Rectangle supplied as input.Sets the size of this Rectangle to the intersection region with the Rectangle supplied as input, and returns this for convenience.booleanPointList.intersects(Rectangle r) Determines whether any of the line segments represented by this PointList intersect the given Rectangle.booleanRectangle.intersects(Rectangle rect) Returnstrueif the input Rectangle intersects this Rectangle.Sets the parameters of this Rectangle from the Rectangle passed in and returns this for convenience.Returns a new transposed Rectangle of the input Rectangle.booleanbooleanReturnstrueif the input Rectangle touches this Rectangle.Updates this Rectangle's dimensions to the minimum size which can hold both this Rectangle and the given Rectangle.Constructors in org.eclipse.draw2d.geometry with parameters of type RectangleModifierConstructorDescriptionPrecisionRectangle(Rectangle rect) Constructs a new PrecisionRectangle from the given integer Rectangle.Constructs a copy of the provided Rectangle.
- 
Uses of Rectangle in org.eclipse.draw2d.graphMethods in org.eclipse.draw2d.graph with parameters of type RectangleModifier and TypeMethodDescriptionbooleanShortestPathRouter.addObstacle(Rectangle rect) Adds an obstacle with the given bounds to the obstacles.booleanShortestPathRouter.removeObstacle(Rectangle rect) Removes the obstacle with the rectangle's bounds from the routing.booleanShortestPathRouter.updateObstacle(Rectangle oldBounds, Rectangle newBounds) Updates the position of an existing obstacle.
- 
Uses of Rectangle in org.eclipse.draw2d.partsMethods in org.eclipse.draw2d.parts that return RectangleModifier and TypeMethodDescriptionprotected RectangleScrollableThumbnail.calculateSelectorBounds()Calculate the size and position of the selector Subclasses may override if they only want to show parts of the overall viewport.protected RectangleThumbnail.getSourceRectangle()Returns the rectangular region relative to the source figure which will be the basis of the thumbnail.Methods in org.eclipse.draw2d.parts with parameters of type RectangleModifier and TypeMethodDescriptionvoidThumbnail.notifyPainting(Rectangle damage, Map<IFigure, Rectangle> dirtyRegions) Method parameters in org.eclipse.draw2d.parts with type arguments of type RectangleModifier and TypeMethodDescriptionvoidThumbnail.notifyPainting(Rectangle damage, Map<IFigure, Rectangle> dirtyRegions) 
- 
Uses of Rectangle in org.eclipse.draw2d.textMethods in org.eclipse.draw2d.text with parameters of type RectangleModifier and TypeMethodDescriptionvoidAbstractFlowBorder.paint(FlowFigure figure, Graphics g, Rectangle where, int sides) Subclasses should override this method to paint each box's border.voidFlowBorder.paint(FlowFigure figure, Graphics g, Rectangle where, int sides) Paints the border around the given box location.voidvoidFlowFigures override setBounds() to prevent translation of children.void
shrink(Insets)instead.