Uses of Class
org.eclipse.swt.graphics.Point
Packages that use Point
Package
Description
SWT Browser widget.
SWT Custom widgets.
SWT graphics classes.
SWT internal image loading/saving support classes.
SWT layout classes.
SWT Printing support classes.
SWT widget public API classes.
-
Uses of Point in org.eclipse.swt.browser
Fields in org.eclipse.swt.browser declared as Point -
Uses of Point in org.eclipse.swt.custom
Fields in org.eclipse.swt.custom declared as PointModifier and TypeFieldDescription(package private) PointStyledText.clipboardSelection(package private) PointStyledText.doubleClickSelection(package private) PointCTabFolder.oldSize(package private) PointViewForm.oldSizeprivate PointMouseNavigator.originalMouseLocation(package private) Point[]StyledText.Printing.selection(package private) Point[]StyledText.selectionFields in org.eclipse.swt.custom with type parameters of type PointModifier and TypeFieldDescription(package private) static final Comparator<Point> StyledText.SELECTION_COMPARATORMethods in org.eclipse.swt.custom that return PointModifier and TypeMethodDescription(package private) PointCBannerLayout.computeChildSize(Control control, int wHint, int hHint, boolean flushCache) (package private) PointViewFormLayout.computeChildSize(Control control, int wHint, int hHint, boolean flushCache) AnimatedProgress.computeSize(int wHint, int hHint, boolean changed) Deprecated.protected PointCBannerLayout.computeSize(Composite composite, int wHint, int hHint, boolean flushCache) CCombo.computeSize(int wHint, int hHint, boolean changed) CLabel.computeSize(int wHint, int hHint, boolean changed) (package private) PointCLayoutData.computeSize(Control control, int wHint, int hHint, boolean flushCache) protected PointCTabFolderLayout.computeSize(Composite composite, int wHint, int hHint, boolean flushCache) protected PointCTabFolderRenderer.computeSize(int part, int state, GC gc, int wHint, int hHint) Returns the preferred size of a part.protected PointSashFormLayout.computeSize(Composite composite, int wHint, int hHint, boolean flushCache) protected PointScrolledCompositeLayout.computeSize(Composite composite, int wHint, int hHint, boolean flushCache) protected PointStackLayout.computeSize(Composite composite, int wHint, int hHint, boolean flushCache) StyledText.computeSize(int wHint, int hHint, boolean changed) protected PointViewFormLayout.computeSize(Composite composite, int wHint, int hHint, boolean flushCache) StyledText.getLocationAtOffset(int offset) Returns the x, y location of the upper left corner of the character bounding box at the specified offset in the text.private PointMouseNavigator.getMouseLocation()ScrolledComposite.getOrigin()Return the point in the content that currently appears in the top left corner of the scrolled composite.(package private) PointStyledText.getPointAtOffset(int offset) Returns the location of the given offset.CBanner.getRightMinimumSize()Returns the minimum size of the control that appears on the right of the banner.CCombo.getSelection()Returns aPointwhose x coordinate is the start of the selection in the receiver's text field, and whose y coordinate is the end of the selection.StyledText.getSelection()Returns the selection.StyledText.getSelectionRange()Returns the selection.private PointCLabel.getTotalSize(Image image, String text) Compute the minimum size.private Point[]StyledTextRenderer.intersectingRelativeNonEmptySelections(int fromOffset, int toOffset) Methods in org.eclipse.swt.custom with parameters of type PointModifier and TypeMethodDescription(package private) Rectangle[]CTabFolder.computeControlBounds(Point size, boolean[][] position) (package private) TreeItem(package private) intCTabFolder.getControlHeight(Point ctrlSize) (package private) intCTabFolder.getControlY(Point size, Rectangle[] rects, int borderBottom, int borderTop, int i) Gets the item at a point in the widget.intStyledText.getOffsetAtLocation(Point point) Deprecated.intStyledText.getOffsetAtPoint(Point point) Returns the offset of the character at the given point relative to the first character in the document.(package private) intCTabFolder.getWrappedHeight(Point size) private static int(package private) voidStyledText.setCaretLocations(Point[] locations, int direction) voidScrolledComposite.setMinSize(Point size) Specify the minimum width and height at which the ScrolledComposite will begin scrolling the content with the horizontal scroll bar.voidScrolls the content so that the specified point in the content is in the top left corner.voidCBanner.setRightMinimumSize(Point size) Set the minimum height of the control that appears on the right side of the banner.voidCCombo.setSelection(Point selection) Sets the selection in the receiver's text field to the range specified by the argument whose x coordinate is the start of the selection and whose y coordinate is the end of the selection.voidStyledText.setSelection(Point point) Sets the selection and scrolls it into view. -
Uses of Point in org.eclipse.swt.graphics
Subclasses of Point in org.eclipse.swt.graphicsModifier and TypeClassDescriptionstatic classInstances of this class representPointobjects with the fields capable of storing more precise value in float.static final classInstances of this class representPoint.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 PointMethods in org.eclipse.swt.graphics that return PointModifier and TypeMethodDescriptionPoint.clone()Creates and returns a shallow copy of thisPoint.default PointImageDataAtSizeProvider.getDefaultSize()Returns the default size of the image data returned by this provider.Device.getDPI()Returns a point whose x coordinate is the logical horizontal dots per inch of the display, and whose y coordinate is the logical vertical dots per inch of the display.TextLayout.getLocation(int offset, boolean trailing) Returns the location for the specified character offset.(package private) PointTextLayout.getLocationInPixels(int offset, boolean trailing) (package private) PointDevice.getScreenDPI()GC.stringExtent(String string) Returns the extent of the given string.(package private) PointGC.stringExtentInPixels(String string) GC.textExtent(String string) Returns the extent of the given string.GC.textExtent(String string, int flags) Returns the extent of the given string.(package private) PointGC.textExtentInPixels(String string) (package private) PointGC.textExtentInPixels(String string, int flags) Methods in org.eclipse.swt.graphics with parameters of type PointModifier and TypeMethodDescriptionbooleanReturnstrueif the given point is inside the area specified by the receiver, andfalseotherwise.booleanReturnstrueif the given point is inside the area specified by the receiver, andfalseotherwise.static Point.OfFloatCreates a shallow copy of the provided point as a Point.OfFloat instance.intReturns the character offset for the specified point.(package private) intTextLayout.getOffsetInPixels(Point point, int[] trailing) static RectangleCreates a newRectangleusing the specified top-left point and dimensions.private static int[]GC.transformPoints(double[] transformation, Point[] points) Transforms x,y coordinate pairs with given matrixvoidTranslate all of the polygons the receiver maintains to describe its area by the specified point. -
Uses of Point in org.eclipse.swt.internal.image
Fields in org.eclipse.swt.internal.image declared as Point -
Uses of Point in org.eclipse.swt.layout
Fields in org.eclipse.swt.layout with type parameters of type PointModifier and TypeFieldDescriptionBorderData.cachedSizeprivate static final ToIntFunction<Point> BorderLayout.HEIGHTprivate static final ToIntFunction<Point> BorderLayout.WIDTHMethods in org.eclipse.swt.layout that return PointModifier and TypeMethodDescription(package private) PointFillLayout.computeChildSize(Control control, int wHint, int hHint, boolean flushCache) (package private) PointBorderData.computeSize(Control control, int wHint, int hHint, boolean changed) protected PointBorderLayout.computeSize(Composite composite, int wHint, int hHint, boolean flushCache) (package private) PointFillData.computeSize(Control control, int wHint, int hHint, boolean flushCache) protected PointFillLayout.computeSize(Composite composite, int wHint, int hHint, boolean flushCache) protected PointFormLayout.computeSize(Composite composite, int wHint, int hHint, boolean flushCache) protected PointGridLayout.computeSize(Composite composite, int wHint, int hHint, boolean flushCache) protected PointRowLayout.computeSize(Composite composite, int wHint, int hHint, boolean flushCache) (package private) PointRowLayout.computeSize(Control control, boolean flushCache) protected PointTabFolderLayout.computeSize(Composite composite, int wHint, int hHint, boolean flushCache) (package private) Point(package private) PointFormLayout.layout(Composite composite, boolean move, int x, int y, int width, int height, boolean flushCache) (package private) PointGridLayout.layout(Composite composite, boolean move, int x, int y, int width, int height, boolean flushCache) (package private) PointRowLayout.layoutHorizontal(Composite composite, boolean move, boolean wrap, int width, boolean flushCache) (package private) PointRowLayout.layoutVertical(Composite composite, boolean move, boolean wrap, int height, boolean flushCache) Method parameters in org.eclipse.swt.layout with type arguments of type PointModifier and TypeMethodDescriptionprivate static intBorderLayout.getMax(ToIntFunction<Point> extractor, int region, Map<Integer, List<Map.Entry<Control, BorderData>>> regionMap) private static intBorderLayout.getMax(ToIntFunction<Point> extractor, List<Map.Entry<Control, BorderData>> list, int maxW, int maxH, boolean flushCache) private intBorderLayout.getTotal(ToIntFunction<Point> extractor, int region, Map<Integer, List<Map.Entry<Control, BorderData>>> regionMap) Calculates the total W/H according to the extractorConstructors in org.eclipse.swt.layout with parameters of type Point -
Uses of Point in org.eclipse.swt.printing
Methods in org.eclipse.swt.printing that return PointModifier and TypeMethodDescriptionPrinter.getDPI()Returns a point whose x coordinate is the horizontal dots per inch of the printer, and whose y coordinate is the vertical dots per inch of the printer.(package private) PointPrinter.getIndependentDPI() -
Uses of Point in org.eclipse.swt.widgets
Fields in org.eclipse.swt.widgets declared as PointModifier and TypeFieldDescription(package private) PointControl.lastInputPoint for storing the (x, y) coordinate of the last input (click/scroll/etc.).(package private) Point[]Link.offsets(package private) PointDateTime.prefferedSize(package private) PointLink.selectionMethods in org.eclipse.swt.widgets that return PointModifier and TypeMethodDescription(package private) PointTracker.adjustMoveCursor()(package private) PointTracker.adjustResizeCursor()(package private) PointDateTime.computeMaxTextSize(int wHint, int hHint, boolean changed) Compute the native text entry size when the formatted text inside the entry is at the longest length possible.(package private) PointCombo.computeNativeSize(long h, int wHint, int hHint, boolean changed) (package private) PointControl.computeNativeSize(long h, int wHint, int hHint, boolean changed) (package private) PointLabel.computeNativeSize(long h, int wHint, int hHint, boolean changed) Control.computeSize(int wHint, int hHint) Returns the preferred size (in points) of the receiver.Control.computeSize(int wHint, int hHint, boolean changed) Returns the preferred size (in points) of the receiver.CoolBar.computeSize(int wHint, int hHint, boolean changed) CoolItem.computeSize(int wHint, int hHint) Returns the preferred size of the receiver.protected abstract PointLayout.computeSize(Composite composite, int wHint, int hHint, boolean flushCache) Computes and returns the size of the specified composite's client area according to this layout.(package private) PointButton.computeSizeInPixels(int wHint, int hHint, boolean changed) (package private) PointCombo.computeSizeInPixels(int wHint, int hHint, boolean changed) (package private) PointComposite.computeSizeInPixels(int wHint, int hHint, boolean changed) (package private) PointControl.computeSizeInPixels(int wHint, int hHint) (package private) PointControl.computeSizeInPixels(int wHint, int hHint, boolean changed) (package private) PointDateTime.computeSizeInPixels(int wHint, int hHint, boolean changed) (package private) PointExpandBar.computeSizeInPixels(int wHint, int hHint, boolean changed) (package private) PointGroup.computeSizeInPixels(int wHint, int hHint, boolean changed) (package private) PointLabel.computeSizeInPixels(int wHint, int hHint, boolean changed) (package private) PointLink.computeSizeInPixels(int wHint, int hHint, boolean changed) (package private) PointList.computeSizeInPixels(int wHint, int hHint, boolean changed) (package private) PointSash.computeSizeInPixels(int wHint, int hHint, boolean changed) (package private) PointScale.computeSizeInPixels(int wHint, int hHint, boolean changed) (package private) PointSlider.computeSizeInPixels(int wHint, int hHint, boolean changed) (package private) PointSpinner.computeSizeInPixels(int wHint, int hHint, boolean changed) (package private) PointTabFolder.computeSizeInPixels(int wHint, int hHint, boolean changed) (package private) PointTable.computeSizeInPixels(int wHint, int hHint, boolean changed) (package private) PointText.computeSizeInPixels(int wHint, int hHint, boolean changed) (package private) PointToolBar.computeSizeInPixels(int wHint, int hHint, boolean changed) (package private) PointTree.computeSizeInPixels(int wHint, int hHint, boolean changed) (package private) Point(package private) PointCoolBar.fixPoint(int x, int y) Combo.getCaretLocation()Returns a point describing the location of the caret relative to the receiver.Text.getCaretLocation()Returns a point describing the location of the caret relative to the receiver.(package private) PointControl.getControlOrigin()GTK4 only function to replace gdk_surface_get_originDisplay.getCursorLocation()Returns the location of the on-screen pointer relative to the top left corner of the screen.Point[]Display.getCursorSizes()Returns an array containing the recommended cursor sizes.Point[]Display.getIconSizes()Returns an array containing the recommended icon sizes.(package private) PointCanvas.getIMCaretPos()(package private) PointControl.getIMCaretPos()Point[]CoolBar.getItemSizes()Returns an array of points whose x and y coordinates describe the widths and heights (respectively) of the items in the receiver in the order in which they are currently being displayed.Caret.getLocation()Returns a point describing the receiver's location relative to its parent (or its display if its parent is null).Control.getLocation()Returns a point describing the receiver's location relative to its parent in points (or its display if its parent is null), unless the receiver is a shell.(package private) PointEvent.getLocation()(package private) PointToolTip.getLocation()(package private) PointControl.getLocationInPixels()(package private) PointShell.getLocationInPixels()Shell.getMaximumSize()Returns a point describing the maximum receiver's size.CoolItem.getMinimumSize()Returns the minimum size that the cool item can be resized to using the cool item's gripper.Shell.getMinimumSize()Returns a point describing the minimum receiver's size.CoolItem.getPreferredSize()Returns a point describing the receiver's ideal size.Combo.getSelection()Returns aPointwhose x coordinate is the character position representing the start of the selection in the receiver's text field, and whose y coordinate is the character position representing the end of the selection.Text.getSelection()Returns aPointwhose x coordinate is the character position representing the start of the selected text, and whose y coordinate is the character position representing the end of the selection.Caret.getSize()Returns a point describing the receiver's size.Control.getSize()Returns a point describing the receiver's size in points.CoolItem.getSize()Returns a point describing the receiver's size.ScrollBar.getSize()Returns a point describing the receiver's size.(package private) PointToolTip.getSize(int maxWidth) (package private) PointControl.getSizeInPixels()(package private) PointShell.getSizeInPixels()(package private) PointControl.getSurfaceOrigin()Gets the position of the top left corner of the control in root window (display) coordinates.(package private) PointShell.getSurfaceOrigin()(package private) PointDateTime.getTextSelection()Returns the selected text.(package private) PointControl.getThickness(long widget) (package private) PointControl.getWindowOrigin()Gets the position of the top left corner of the control in root window (display) coordinates.(package private) PointShell.getWindowOrigin()private PointScrollable.hScrollbarSize()Maps a point from one coordinate system to another.Maps a point from one coordinate system to another.(package private) PointDisplay.mapInPixels(Control from, Control to, int x, int y) (package private) PointComposite.minimumSize(int wHint, int hHint, boolean changed) (package private) PointTabFolder.minimumSize(int wHint, int hHint, boolean flushCache) (package private) PointCombo.resizeCalculationsGTK3(long widget, int width, int height) (package private) PointControl.resizeCalculationsGTK3(long widget, int width, int height) (package private) PointProgressBar.resizeCalculationsGTK3(long widget, int width, int height) (package private) PointScale.resizeCalculationsGTK3(long widget, int width, int height) (package private) PointTable.resizeCalculationsGTK3(long widget, int width, int height) (package private) PointTree.resizeCalculationsGTK3(long widget, int width, int height) private PointScrollable.scrollBarSize(long scrollBarHandle) Control.toControl(int x, int y) Returns a point which is the result of converting the argument, which is specified in display relative coordinates, to coordinates relative to the receiver.Returns a point which is the result of converting the argument, which is specified in display relative coordinates, to coordinates relative to the receiver.Control.toDisplay(int x, int y) Returns a point which is the result of converting the argument, which is specified in coordinates relative to the receiver, to display relative coordinates.Returns a point which is the result of converting the argument, which is specified in coordinates relative to the receiver, to display relative coordinates.(package private) PointControl.toDisplayInPixels(int x, int y) private PointScrollable.vScrollBarSize()Methods in org.eclipse.swt.widgets with parameters of type PointModifier and TypeMethodDescriptionprivate intDateTime.calculateCalendarXpos(Point calendarSize, Rectangle coordsRelativeToScreen, Rectangle displayRect, int width) private intDateTime.calculateCalendarYpos(Point containerBounds, Rectangle coordsRelativeToScreen, int height, Rectangle displayRect) Returns the tab item at the given point in the receiver or null if no such item exists.Returns the item at the given point in the receiver or null if no such item exists.Returns the item at the given point in the receiver or null if no such item exists.Returns the item at the given point in the receiver or null if no such item exists.(package private) intText.getPosition(Point point) Maps a point from one coordinate system to another.voidDisplay.setCursorLocation(Point point) Sets the location of the on-screen pointer relative to the top left corner of the screen.voidCoolBar.setItemLayout(int[] itemOrder, int[] wrapIndices, Point[] sizes) Sets the receiver's item order, wrap indices, and item sizes all at once.(package private) voidCoolBar.setItemSizes(Point[] sizes) voidCaret.setLocation(Point location) Sets the receiver's location to the point specified by the argument which is relative to the receiver's parent (or its display if its parent is null).voidControl.setLocation(Point location) Sets the receiver's location to the point specified by the argument which is relative to the receiver's parent (or its display if its parent is null), unless the receiver is a shell.voidMenu.setLocation(Point location) Sets the location of the receiver, which must be a popup, to the point specified by the argument which is relative to the display.voidToolTip.setLocation(Point location) Sets the location of the receiver, which must be a tooltip, to the point specified by the argument which is relative to the display.(package private) voidControl.setLocationInPixels(Point location) voidShell.setMaximumSize(Point size) Sets the receiver's maximum size to the size specified by the argument.voidCoolItem.setMinimumSize(Point size) Sets the minimum size that the cool item can be resized to using the cool item's gripper, to the point specified by the argument.voidShell.setMinimumSize(Point size) Sets the receiver's minimum size to the size specified by the argument.voidCoolItem.setPreferredSize(Point size) Sets the receiver's ideal size to the point specified by the argument.voidCombo.setSelection(Point selection) Sets the selection in the receiver's text field to the range specified by the argument whose x coordinate is the start of the selection and whose y coordinate is the end of the selection.voidText.setSelection(Point selection) Sets the selection to the range specified by the given point, where the x coordinate represents the start index and the y coordinate represents the end index.voidSets the receiver's size to the point specified by the argument.voidSets the receiver's size to the point specified by the argument.voidSets the receiver's size to the point specified by the argument.(package private) voidControl.setSizeInPixels(Point size) private voidDateTime.showPopupShell(Point containerBounds, Point calendarSize, Rectangle coordsRelativeToScreen, Rectangle displayRect) Returns a point which is the result of converting the argument, which is specified in display relative coordinates, to coordinates relative to the receiver.Returns a point which is the result of converting the argument, which is specified in coordinates relative to the receiver, to display relative coordinates.
StyledText.getOffsetAtPoint(Point)instead for better performance