Uses of Class
org.eclipse.swt.graphics.Rectangle
Packages that use Rectangle
Package
Description
SWT Accessibility.
SWT Custom widgets.
SWT graphics classes.
SWT internal GTK implementation classes.
SWT Printing support classes.
SWT widget public API classes.
-
Uses of Rectangle in org.eclipse.swt.accessibility
Fields in org.eclipse.swt.accessibility declared as Rectangle -
Uses of Rectangle in org.eclipse.swt.custom
Fields in org.eclipse.swt.custom declared as RectangleModifier and TypeFieldDescription(package private) Rectangle[]CTabFolder.bkImageBounds(package private) RectangleStyledText.Printing.clientArea(package private) RectangleCTabItem.closeRect(package private) Rectangle[]CTabFolder.controlRects(package private) RectangleCBanner.curveRect(package private) RectangleCTabFolder.hoverRectMethods in org.eclipse.swt.custom that return RectangleModifier and TypeMethodDescription(package private) RectangleControlEditor.computeBounds()(package private) RectangleTableEditor.computeBounds()(package private) RectangleTreeEditor.computeBounds()(package private) Rectangle[]CTabFolder.computeControlBounds(Point size, boolean[][] position) CTabFolder.computeTrim(int x, int y, int width, int height) protected RectangleCTabFolderRenderer.computeTrim(int part, int state, int x, int y, int width, int height) Given a desired client area for the part (as described by the arguments), returns the bounding rectangle which would be required to produce that client area.ViewForm.computeTrim(int x, int y, int width, int height) StyledText.getBlockSelectionBounds()Returns the block selection bounds.(package private) RectangleStyledText.getBlockSelectionPosition()(package private) RectangleStyledText.getBlockSelectionRectangle()CTabItem.getBounds()Returns a rectangle describing the receiver's size and location relative to its parent.(package private) RectangleStyledText.getBoundsAtOffset(int offset) CBanner.getClientArea()CTabFolder.getClientArea()ViewForm.getClientArea()StyledText.getTextBounds(int start, int end) Returns the smallest bounding rectangle that includes the characters between two offsets.Methods in org.eclipse.swt.custom with parameters of type RectangleModifier and TypeMethodDescriptionprotected voidDraw a specifiedpartof the CTabFolder using the providedboundsandGC.(package private) voidCTabFolderRenderer.drawBackground(GC gc, Rectangle bounds, int state) (package private) void(package private) voidCTabFolderRenderer.drawChevron(GC gc, Rectangle chevronRect, int chevronImageState) (package private) void(package private) voidCTabFolderRenderer.drawHighlight(GC gc, Rectangle bounds, int state, int rightEdge) (package private) voidCTabFolderRenderer.drawLeftUnselectedBorder(GC gc, Rectangle bounds, int state) (package private) voidCTabFolderRenderer.drawMaximize(GC gc, Rectangle maxRect, int maxImageState) (package private) voidCTabFolderRenderer.drawMinimize(GC gc, Rectangle minRect, int minImageState) (package private) voidCTabFolderRenderer.drawRightUnselectedBorder(GC gc, Rectangle bounds, int state) private voidCTabFolderRenderer.drawRoundRectangle(GC gc, Rectangle chevronRect) (package private) voidCTabFolderRenderer.drawSelected(int itemIndex, GC gc, Rectangle bounds, int state) (package private) voidCTabFolderRenderer.drawTabArea(GC gc, Rectangle bounds, int state) (package private) voidCTabFolderRenderer.drawUnselected(int index, GC gc, Rectangle bounds, int state) (package private) intCTabFolder.getControlY(Point size, Rectangle[] rects, int borderBottom, int borderTop, int i) (package private) booleanScrolledComposite.needHScroll(Rectangle contentRect, boolean vVisible) (package private) booleanScrolledComposite.needVScroll(Rectangle contentRect, boolean hVisible) Launches the Popup List, waits for an item to be selected and then closes the PopupList.private voidCLabel.paintBorder(GC gc, Rectangle r) Paint the Label's border.voidStyledText.setBlockSelectionBounds(Rectangle rect) Sets the block selection bounds.(package private) void(package private) booleanStyledText.showLocation(Rectangle rect, boolean scrollPage) -
Uses of Rectangle in org.eclipse.swt.graphics
Subclasses of Rectangle in org.eclipse.swt.graphicsModifier and TypeClassDescriptionstatic classInstances of this class representRectangleobjects which supports values of Float type for it's fieldsstatic final classInstances of this class representRectangle.OfFloatobjects along with the context of the monitor in relation to which they are placed on the display.Fields in org.eclipse.swt.graphics declared as RectangleMethods in org.eclipse.swt.graphics that return RectangleModifier and TypeMethodDescriptionRectangle.clone()Creates and returns a copy of thisRectangle.Device.getBounds()Returns a rectangle describing the receiver's size and location.Image.getBounds()Returns the bounds of the receiver.Region.getBounds()Returns a rectangle which represents the rectangular union of the collection of polygons the receiver maintains to describe its area.TextLayout.getBounds()Returns the bounds of the receiver.TextLayout.getBounds(int start, int end) Returns the bounds for the specified range of characters.Image.getBoundsInPixels()Deprecated, for removal: This API element is subject to removal in a future version.This API doesn't serve the purpose in an environment having multiple monitors with different DPIs, hence deprecated.(package private) RectangleTextLayout.getBoundsInPixels(int spacingInPixels) (package private) RectangleTextLayout.getBoundsInPixels(int start, int end) Device.getClientArea()Returns a rectangle which describes the area of the receiver which is capable of displaying data.GC.getClipping()Returns the bounding rectangle of the receiver's clipping region.(package private) RectangleGC.getClippingInPixels()TextLayout.getLineBounds(int lineIndex) Returns the bounds of the line for the specified line index.(package private) RectangleTextLayout.getLineBoundsInPixels(int lineIndex) private RectangleTextLayout.getLineBoundsInPixels(int lineIndex, long iter) private static RectangleGC.getTransformedClippingRectangle(int[] pointsArray) Rectangle.intersection(Rectangle rect) Returns a new rectangle which represents the intersection of the receiver and the given rectangle.static RectangleCreates a newRectangleusing the specified top-left point and dimensions.Returns a new rectangle which represents the union of the receiver and the given rectangle.Methods in org.eclipse.swt.graphics with parameters of type RectangleModifier and TypeMethodDescriptionvoidDestructively replaces the x, y, width and height values in the receiver with ones which represent the union of the rectangles specified by the receiver and the given rectangle.voidAdds the given rectangle to the collection of polygons the receiver maintains to describe its area.voidGC.drawRectangle(Rectangle rect) Draws the outline of the specified rectangle, using the receiver's foreground color.(package private) voidGC.drawRectangleInPixels(Rectangle rect) voidGC.fillRectangle(Rectangle rect) Fills the interior of the specified rectangle, using the receiver's background color.(package private) voidGC.fillRectangleInPixels(Rectangle rect) static Rectangle.OfFloatCreates a shallow copy of the provided Rectangle as a Rectangle.OfFloat instance.voidDestructively replaces the x, y, width and height values in the receiver with ones which represent the intersection of the rectangles specified by the receiver and the given rectangle.voidIntersects the given rectangle to the collection of polygons the receiver maintains to describe its area.Rectangle.intersection(Rectangle rect) Returns a new rectangle which represents the intersection of the receiver and the given rectangle.booleanRectangle.intersects(Rectangle rect) Returnstrueif the given rectangle intersects with the receiver andfalseotherwise.booleanRegion.intersects(Rectangle rect) Returnstrueif the given rectangle intersects with any of the polygons the receiver maintains to describe its area andfalseotherwise.(package private) booleanRegion.intersectsInPixels(Rectangle rect) voidGC.setClipping(Rectangle rect) Sets the area of the receiver which can be changed by drawing operations to the rectangular area specified by the argument.(package private) voidGC.setClippingInPixels(Rectangle rect) voidSubtracts the given rectangle from the collection of polygons the receiver maintains to describe its area.private static int[]GC.transformRectangle(double[] affineTransformation, Rectangle rectangle) Transforms rectangle with given matrixReturns a new rectangle which represents the union of the receiver and the given rectangle.Constructors in org.eclipse.swt.graphics with parameters of type RectangleModifierConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.useImage(Device, int, int)instead -
Uses of Rectangle in org.eclipse.swt.internal.gtk
Methods in org.eclipse.swt.internal.gtk that return Rectangle -
Uses of Rectangle in org.eclipse.swt.printing
Methods in org.eclipse.swt.printing that return RectangleModifier and TypeMethodDescriptionPrinter.computeTrim(int x, int y, int width, int height) Given a client area (as described by the arguments), returns a rectangle, relative to the client area's coordinates, that is the client area expanded by the printer's trim (or minimum margins).Printer.getBounds()Returns a rectangle describing the receiver's size and location.Printer.getClientArea()Returns a rectangle which describes the area of the receiver which is capable of displaying data. -
Uses of Rectangle in org.eclipse.swt.widgets
Fields in org.eclipse.swt.widgets declared as RectangleModifier and TypeFieldDescription(package private) RectangleTouchSource.bounds(package private) RectangleTracker.bounds(package private) RectangleTracker.cachedCombinedDisplayResolution(package private) RectangleTracker.cachedUnion(package private) RectangleCoolItem.itemBounds(package private) Rectangle[]Tracker.proportions(package private) Rectangle[]Tracker.rectanglesMethods in org.eclipse.swt.widgets that return RectangleModifier and TypeMethodDescription(package private) RectangleTracker.computeBounds()(package private) Rectangle[]Tracker.computeProportions(Rectangle[] rects) Scrollable.computeTrim(int x, int y, int width, int height) Given a desired client area for the receiver (as described by the arguments), returns the bounding rectangle which would be required to produce that client area.(package private) RectangleDateTime.computeTrimInPixels(int x, int y, int width, int height) (package private) RectangleGroup.computeTrimInPixels(int x, int y, int width, int height) (package private) RectangleScrollable.computeTrimInPixels(int x, int y, int width, int height) (package private) RectangleShell.computeTrimInPixels(int x, int y, int width, int height) (package private) RectangleSpinner.computeTrimInPixels(int x, int y, int width, int height) (package private) RectangleTabFolder.computeTrimInPixels(int x, int y, int width, int height) (package private) RectangleText.computeTrimInPixels(int x, int y, int width, int height) (package private) RectangleCoolBar.fixRectangle(int x, int y, int width, int height) Caret.getBounds()Returns a rectangle describing the receiver's size and location relative to its parent (or its display if its parent is null).Control.getBounds()Returns a rectangle describing the receiver's size and location in points relative to its parent (or its display if its parent is null), unless the receiver is a shell.CoolItem.getBounds()Returns a rectangle describing the receiver's size and location relative to its parent.Display.getBounds()Returns a rectangle describing the receiver's size and location.Event.getBounds()Gets the bounds.Monitor.getBounds()Returns a rectangle describing the receiver's size and location relative to its device.TabItem.getBounds()Returns a rectangle describing the receiver's size and location relative to its parent.TableItem.getBounds()Returns a rectangle describing the size and location of the receiver's text relative to its parent.TableItem.getBounds(int index) Returns a rectangle describing the receiver's size and location relative to its parent at a column in the table.ToolItem.getBounds()Returns a rectangle describing the receiver's size and location relative to its parent.TouchSource.getBounds()Returns the bounding rectangle of the device.TreeItem.getBounds()Returns a rectangle describing the size and location of the receiver's text relative to its parent.TreeItem.getBounds(int index) Returns a rectangle describing the receiver's size and location relative to its parent at a column in the tree.(package private) RectangleTableItem.getBoundsinPixels()Returns a rectangle describing the size and location of the receiver's text relative to its parent.(package private) RectangleControl.getBoundsInPixels()(package private) RectangleDisplay.getBoundsInPixels()(package private) RectangleShell.getBoundsInPixels()Display.getClientArea()Returns a rectangle which describes the area of the receiver which is capable of displaying data.Monitor.getClientArea()Returns a rectangle which describes the area of the receiver which is capable of displaying data.Scrollable.getClientArea()Returns a rectangle which describes the area of the receiver which is capable of displaying data (that is, not covered by the "trimmings").(package private) RectangleComposite.getClientAreaInPixels()(package private) RectangleGroup.getClientAreaInPixels()(package private) RectangleScrollable.getClientAreaInPixels()(package private) RectangleTabFolder.getClientAreaInPixels()(package private) RectangleTable.getClientAreaInPixels()(package private) RectangleTree.getClientAreaInPixels()TableItem.getImageBounds(int index) Returns a rectangle describing the size and location relative to its parent of an image at a column in the table.TreeItem.getImageBounds(int index) Returns a rectangle describing the size and location relative to its parent of an image at a column in the tree.Tracker.getRectangles()Returns the bounds that are being drawn, expressed relative to the parent widget.(package private) Rectangle[]Link.getRectanglesInPixels(int linkIndex) TableItem.getTextBounds(int index) Returns a rectangle describing the size and location relative to its parent of the text at a column in the table.TreeItem.getTextBounds(int index) Returns a rectangle describing the size and location relative to its parent of the text at a column in the tree.ScrollBar.getThumbBounds()Returns a rectangle describing the size and location of the receiver's thumb relative to its parent.ScrollBar.getThumbTrackBounds()Returns a rectangle describing the size and location of the receiver's thumb track relative to its parent.(package private) RectangleDisplay.getWorkArea()Returns the work area, an EWMH property to store the size and position of the screen not covered by dock and panel windows.(package private) RectangleCoolItem.internalGetBounds()Maps a point from one coordinate system to another.Maps a point from one coordinate system to another.(package private) RectangleDisplay.mapInPixels(Control from, Control to, int x, int y, int width, int height) (package private) RectangleDisplay.mapInPixels(Control from, Control to, Rectangle rectangle) Methods in org.eclipse.swt.widgets with parameters of type RectangleModifier and TypeMethodDescriptionprivate intDateTime.calculateCalendarXpos(Point calendarSize, Rectangle coordsRelativeToScreen, Rectangle displayRect, int width) private intDateTime.calculateCalendarYpos(Point containerBounds, Rectangle coordsRelativeToScreen, int height, Rectangle displayRect) (package private) Rectangle[]Tracker.computeProportions(Rectangle[] rects) (package private) voidTracker.drawRectangles(Rectangle[] rects) Developer note: - Rectangles can have absolute coords [Tracker(Display)] or relative to parent [Tracker(Composite)] - This method is called a lot, optimize your code.(package private) void(package private) void(package private) voidMaps a point from one coordinate system to another.(package private) RectangleDisplay.mapInPixels(Control from, Control to, Rectangle rectangle) voidSets the receiver's size and location to the rectangular area specified by the argument.voidSets the receiver's size and location in points to the rectangular area specified by the argument.voidSets the bounds.(package private) void(package private) voidControl.setBoundsInPixels(Rectangle rect) (package private) voidMonitor.setClientArea(Rectangle rect) voidTracker.setRectangles(Rectangle[] rectangles) Specifies the rectangles that should be drawn, expressed relative to the parent widget.private voidDateTime.showPopupShell(Point containerBounds, Point calendarSize, Rectangle coordsRelativeToScreen, Rectangle displayRect) Constructors in org.eclipse.swt.widgets with parameters of type RectangleModifierConstructorDescription(package private)TouchSource(long handle, boolean direct, Rectangle bounds) Constructs a new touch source from the given inputs.