Uses of Class
org.eclipse.swt.graphics.Point
Package
Description
Provides a generic debugger user interface that clients may customize via standard
workbench extension points.
Provides provisioning user interface classes that can be used for assembling
a provisioning UI.
Provides support for shared UI resources such as menus,
tool bars, and status lines.
Provides a content assist add-on for implementors of
IContentAssistSubjectControl
.Provides support for dialogs.
Provides classes that help communicate proper content for fields in dialogs and wizards.
Provides support for layout generation.
Provides a framework for preferences.
Provides support for managing resources such as SWT
fonts and images.
Provides a framework for creating and manipulating text documents.
Provides a content assist add-on for an
ITextViewer
.Provides a framework for connecting document regions
with annotations and for displaying those.
This package provides the UI part for projection documents of which the most important part is the projection viewer.
Application programming interfaces for interaction
with the Eclipse text template support.
Provides useful building blocks used throughout JFace,
including property change events, a listener list implementation, and runtime
checked assertions.
Provides a framework for viewers, which are model-based
content adapters for SWT widgets.
Provides a general framework for creating and managing
windows.
Provides a framework for wizards.
SWT Browser widget.
SWT Custom widgets.
SWT graphics classes.
SWT internal classes
SWT layout classes.
SWT Printing support classes.
SWT widget public API classes.
Provides basic support for managing Team providers.
Classes for actions and operations used in a workbench
window, page, or part in the Eclipse Platform User Interface.
Application-level APIs for configuring and controling the Eclipse Platform User
Interface.
Custom widgets and controls for forms-based parts.
Provides the public API and default implementation for contributing menu
and toolbars to the menu service.
Classes for the creation of workbench parts that integrate
with the Eclipse Platform User Interface.
Provides a framework for text editors obeying to the
desktop rules.
-
Uses of Point in org.eclipse.compare.internal
Modifier and TypeMethodDescriptionprotected Point
TabFolderLayout.computeSize
(Composite composite, int wHint, int hHint, boolean flushCache) protected Point
CompareDialog.getDefaultSize()
If we don't have settings we need to come up with a reasonable default since we can't depend on the compare editor input layout returning a good default size.protected Point
ResizableDialog.getInitialLocation
(Point initialSize) protected Point
CompareDialog.getInitialSize()
protected Point
ResizableDialog.getInitialSize()
MergeSourceViewer.getLineRange
(Position p, Point region) protected Point
DiffImageDescriptor.getSize()
Modifier and TypeMethodDescriptionprotected Point
ResizableDialog.getInitialLocation
(Point initialSize) MergeSourceViewer.getLineRange
(Position p, Point region) -
Uses of Point in org.eclipse.debug.ui
Modifier and TypeMethodDescriptionprotected Point
DebugPopup.getInitialLocation
(Point initialSize) Returns the initial location to use for the shell based upon the current selection in the viewer.protected Point
InspectPopupDialog.getInitialSize()
Modifier and TypeMethodDescriptionprotected Point
DebugPopup.getInitialLocation
(Point initialSize) Returns the initial location to use for the shell based upon the current selection in the viewer.ModifierConstructorDescriptionDebugPopup
(Shell parent, Point anchor, String commandId) Constructs a new popup dialog of typePopupDialog.INFOPOPUPRESIZE_SHELLSTYLE
InspectPopupDialog
(Shell shell, Point anchor, String commandId, IExpression expression) Creates a new inspect popup. -
Uses of Point in org.eclipse.e4.ui.widgets
-
Uses of Point in org.eclipse.e4.ui.workbench.addons.perspectiveswitcher
-
Uses of Point in org.eclipse.e4.ui.workbench.renderers.swt
Modifier and TypeMethodDescriptionprotected Point
CTabRendering.computeSize
(int part, int state, GC gc, int wHint, int hHint) protected Point
SashLayout.computeSize
(Composite composite, int wHint, int hHint, boolean flushCache) protected Point
TrimBarLayout.computeSize
(Composite composite, int wHint, int hHint, boolean flushCache) protected Point
TrimmedPartLayout.computeSize
(Composite composite, int wHint, int hHint, boolean flushCache) Modifier and TypeMethodDescriptionTrimBarLayout.ctrlFromPoint
(Composite trimComp, Point trimPos) Get a Control at a certain position from the TrimBar. -
Uses of Point in org.eclipse.equinox.p2.ui
Modifier and TypeMethodDescriptionPolicy.getUpdateDetailsPreferredSize()
Get a point describing the preferred size of the details area shown in single IU update wizards.Modifier and TypeMethodDescriptionvoid
Policy.setUpdateDetailsPreferredSize
(Point preferredSize) Set the preferred size of the details area shown in update wizards which notify the user of a single update. -
Uses of Point in org.eclipse.help.ui.internal
Modifier and TypeMethodDescriptionHyperlinkLabel.computeSize
(int wHint, int hHint, boolean changed) -
Uses of Point in org.eclipse.jface.action
Modifier and TypeMethodDescriptionStatusLineContributionItem.getDisplayLocation()
An accessor for the current location of this status line contribution item -- relative to the display. -
Uses of Point in org.eclipse.jface.contentassist
Modifier and TypeMethodDescriptionComboContentAssistSubjectAdapter.getLocationAtOffset
(int offset) Deprecated.IContentAssistSubjectControl.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.TextContentAssistSubjectAdapter.getLocationAtOffset
(int offset) Deprecated.ComboContentAssistSubjectAdapter.getSelectedRange()
Deprecated.IContentAssistSubjectControl.getSelectedRange()
Returns the selected range.TextContentAssistSubjectAdapter.getSelectedRange()
Deprecated.ComboContentAssistSubjectAdapter.getWidgetSelectionRange()
Deprecated.IContentAssistSubjectControl.getWidgetSelectionRange()
Returns the selected range in the subject's widget.TextContentAssistSubjectAdapter.getWidgetSelectionRange()
Deprecated. -
Uses of Point in org.eclipse.jface.databinding.swt.typed
Modifier and TypeMethodDescriptionstatic <S extends Control>
IWidgetValueProperty<S,Point> WidgetProperties.location()
Returns a value property for observing the location of aControl
.static <S extends Control>
IWidgetValueProperty<S,Point> WidgetProperties.size()
Returns a value property for observing the size of aControl
. -
Uses of Point in org.eclipse.jface.dialogs
Modifier and TypeMethodDescriptionprotected Point
PopupDialog.getDefaultLocation
(Point initialSize) Returns the default location to use for the shell.protected Point
PopupDialog.getDefaultSize()
Return the default size to use for the shell.protected Point
Dialog.getInitialLocation
(Point initialSize) Returns the initial location to use for the shell.protected Point
PopupDialog.getInitialLocation
(Point initialSize) protected Point
Dialog.getInitialSize()
Returns the initial size to use for the shell.protected Point
PopupDialog.getInitialSize()
protected Point
ProgressMonitorDialog.getInitialSize()
protected Point
TitleAreaDialog.getInitialSize()
TheTitleAreaDialog
implementation of thisWindow
methods returns an initial size which is at least some reasonable minimum.Modifier and TypeMethodDescriptionprotected Point
PopupDialog.getDefaultLocation
(Point initialSize) Returns the default location to use for the shell.protected Point
Dialog.getInitialLocation
(Point initialSize) Returns the initial location to use for the shell.protected Point
PopupDialog.getInitialLocation
(Point initialSize) -
Uses of Point in org.eclipse.jface.fieldassist
Modifier and TypeMethodDescriptionContentProposalAdapter.getPopupSize()
Return the size, in pixels, of the content proposal popup.ComboContentAdapter.getSelection
(Control control) IControlContentAdapter2.getSelection
(Control control) Get the current selection range in the control.TextContentAdapter.getSelection
(Control control) Modifier and TypeMethodDescriptionvoid
ContentProposalAdapter.setPopupSize
(Point size) Set the size, in pixels, of the content proposal popup.void
ComboContentAdapter.setSelection
(Control control, Point range) void
IControlContentAdapter2.setSelection
(Control control, Point range) Set the current selection range in the control.void
TextContentAdapter.setSelection
(Control control, Point range) -
Uses of Point in org.eclipse.jface.layout
Modifier and TypeMethodDescriptionprotected Point
AbstractColumnLayout.computeSize
(Composite composite, int wHint, int hHint, boolean flushCache) static final Point
LayoutConstants.getMargins()
Returns the default dialog margins, in pixelsstatic final Point
LayoutConstants.getMinButtonSize()
Returns the default minimum button size, in pixelsstatic final Point
LayoutConstants.getSpacing()
Returns the default dialog spacing, in pixelsModifier and TypeMethodDescriptionstatic void
Generates layout data to the given control, given the number of cells spanned by the control.Sets the width and height hints.Sets the width and height hints.Sets the indent of the control within the cell.Sets the margins for layouts created with this factory.Sets the margins for layouts created with this factory.Sets the margins for layouts created with this factory.Sets the minimum size for the control.Sets the spacing for layouts created with this factory.Sets the GridData span. -
Uses of Point in org.eclipse.jface.preference
Modifier and TypeFieldDescriptionstatic final Point
PreferenceConverter.POINT_DEFAULT_DEFAULT
The default-default value for point preferences (the origin,(0,0)
).Modifier and TypeMethodDescriptionprotected Point
ColorFieldEditor.computeImageSize
(Control window) Computes the size of the color image displayed on the button.IPreferencePage.computeSize()
Computes a size for this page's UI component.PreferencePage.computeSize()
Computes the size for this page's UI control.protected Point
PreferencePage.doComputeSize()
Computes the size needed by this page's UI control.static Point
PreferenceConverter.getDefaultPoint
(IPreferenceStore store, String name) Returns the default value for the point-valued preference with the given name in the given preference store.static Point
PreferenceConverter.getPoint
(IPreferenceStore store, String name) Returns the current value of the point-valued preference with the given name in the given preference store.Modifier and TypeMethodDescriptionstatic void
PreferenceConverter.setDefault
(IPreferenceStore store, String name, Point value) Sets the default value of the preference with the given name in the given preference store.void
PreferenceDialog.setMinimumPageSize
(Point size) Sets the minimum page size.void
Sets the size of this page's UI component.void
static void
PreferenceConverter.setValue
(IPreferenceStore store, String name, Point value) Sets the current value of the preference with the given name in the given preference store. -
Uses of Point in org.eclipse.jface.resource
-
Uses of Point in org.eclipse.jface.text
Modifier and TypeMethodDescriptionprotected Point
AbstractInformationControlManager.computeInformationControlLocation
(Rectangle subjectArea, Point controlSize) Computes the location of the information control depending on the subject area and the size of the information control.protected Point
AbstractInformationControlManager.computeLocation
(Rectangle subjectArea, Point controlSize, AbstractInformationControlManager.Anchor anchor) Computes the display location of the information control.AbstractInformationControl.computeSizeConstraints
(int widthInChars, int heightInChars) Computes the size constraints based on thedialog font
.protected Point
AbstractInformationControlManager.computeSizeConstraints
(Control subjectControl, IInformationControl informationControl) Computes the size constraints of the information control in points based on the default font of the given subject control as well as the size constraints in character width.protected Point
AbstractInformationControlManager.computeSizeConstraints
(Control subjectControl, Rectangle subjectArea, IInformationControl informationControl) Computes the size constraints of the information control in points.IInformationControlExtension5.computeSizeConstraints
(int widthInChars, int heightInChars) Computes the width- and height constraints of the information control in pixels, based on the given width and height in characters.AbstractInformationControl.computeSizeHint()
DefaultInformationControl.computeSizeHint()
IInformationControl.computeSizeHint()
Computes and returns a proposal for the size of this information control depending on the information to present.protected Point
AbstractHoverInformationControlManager.getHoverEventLocation()
Returns the location at which the most recent mouse hover event has been issued.ITextViewerExtension2.getHoverEventLocation()
Returns the location at which the most recent mouse hover event has occurred.TextViewer.getHoverEventLocation()
IFindReplaceTargetExtension.getLineSelection()
Returns the currently selected range of lines as a offset and length.ITextViewer.getSelectedRange()
Returns the range of the current selection in coordinates of this viewer's document.TextViewer.getSelectedRange()
IFindReplaceTarget.getSelection()
Returns the currently selected range of characters as an offset and length in widget coordinates.protected final Point
AbstractInformationControl.getSizeConstraints()
Returns the size constraints.protected Point
TextViewer.modelSelection2WidgetSelection
(Point modelSelection) Translates the given selection range of the viewer's document into the corresponding widget range or returnsnull
of this fails.protected Point
TextViewer.widgetSelection2ModelSelection
(Point widgetSelection) Translates the given widget selection into the corresponding region of the viewer's document or returnsnull
if this fails.Modifier and TypeMethodDescriptionprotected Point
AbstractInformationControlManager.computeInformationControlLocation
(Rectangle subjectArea, Point controlSize) Computes the location of the information control depending on the subject area and the size of the information control.protected Point
AbstractInformationControlManager.computeLocation
(Rectangle subjectArea, Point controlSize, AbstractInformationControlManager.Anchor anchor) Computes the display location of the information control.protected Point
TextViewer.modelSelection2WidgetSelection
(Point modelSelection) Translates the given selection range of the viewer's document into the corresponding widget range or returnsnull
of this fails.void
AbstractInformationControl.setLocation
(Point location) void
IInformationControl.setLocation
(Point location) Sets the location of this information control.protected boolean
AbstractInformationControlManager.updateLocation
(Point location, Point size, Rectangle displayArea, AbstractInformationControlManager.Anchor anchor) Checks whether a control of the given size at the given location would be completely visible in the given display area when laid out by using the given anchor.protected Point
TextViewer.widgetSelection2ModelSelection
(Point widgetSelection) Translates the given widget selection into the corresponding region of the viewer's document or returnsnull
if this fails. -
Uses of Point in org.eclipse.jface.text.codemining
Modifier and TypeMethodDescriptionAbstractCodeMining.draw
(GC gc, StyledText textWidget, Color color, int x, int y) Draw theAbstractCodeMining.getLabel()
of mining with gray color.ICodeMining.draw
(GC gc, StyledText textWidget, Color color, int x, int y) Draw the code mining.LineHeaderCodeMining.draw
(GC gc, StyledText textWidget, Color color, int x, int y) -
Uses of Point in org.eclipse.jface.text.contentassist
Modifier and TypeMethodDescriptionCompletionProposal.getSelection
(IDocument document) ICompletionProposal.getSelection
(IDocument document) Returns the new selection after the proposal has been applied to the given document in absolute document coordinates.protected Point
ContentAssistant.restoreCompletionProposalPopupSize()
Restores the content assist's proposal pop-up size.protected Point
ContentAssistant.restoreContextSelectorPopupSize()
Restores the content assist's context selector pop-up size. -
Uses of Point in org.eclipse.jface.text.source
Modifier and TypeMethodDescriptionprotected Point
AnnotationBarHoverManager.computeInformationControlLocation
(Rectangle subjectArea, Point controlSize) protected Point
LineChangeHover.computeLineRange
(ISourceViewer viewer, int line, int min, int max) Computes the block of lines which form a contiguous block of changes coveringline
.protected Point
AnnotationBarHoverManager.computeLocation
(Rectangle subjectArea, Point controlSize, AbstractInformationControlManager.Anchor anchor) protected Point
SourceViewer.RulerLayout.computeSize
(Composite composite, int wHint, int hHint, boolean flushCache) protected Point
AnnotationBarHoverManager.computeSizeConstraints
(Control subjectControl, Rectangle subjectArea, IInformationControl informationControl) protected Point
SourceViewer.rememberSelection()
Remembers and returns the current selection.Modifier and TypeMethodDescriptionprotected Point
AnnotationBarHoverManager.computeInformationControlLocation
(Rectangle subjectArea, Point controlSize) protected Point
AnnotationBarHoverManager.computeLocation
(Rectangle subjectArea, Point controlSize, AbstractInformationControlManager.Anchor anchor) -
Uses of Point in org.eclipse.jface.text.source.projection
Modifier and TypeMethodDescriptionprotected Point
ProjectionViewer.widgetSelection2ModelSelection
(Point widgetSelection) Adapts the behavior of the super class to respect line based folding.Modifier and TypeMethodDescriptionprotected Point
ProjectionViewer.widgetSelection2ModelSelection
(Point widgetSelection) Adapts the behavior of the super class to respect line based folding. -
Uses of Point in org.eclipse.jface.text.templates
-
Uses of Point in org.eclipse.jface.util
Modifier and TypeMethodDescriptionstatic Point
Adds two points as 2d vectors.static Point
Geometry.centerPoint
(Rectangle rect) Returns the point in the center of the given rectangle.static Point
Returns a copy of the given pointstatic Point
Divides both coordinates of the given point by the given scalar.static Point
Geometry.getDirectionVector
(int distance, int direction) Returns a vector in the given direction with the given magnitude.static Point
Geometry.getLocation
(Rectangle toQuery) Returns the x,y position of the given rectangle.static Point
Returns the size of the rectangle, as a Pointstatic Point
Returns a new point whose coordinates are the maximum of the coordinates of the given pointsstatic Point
Returns a new point whose coordinates are the minimum of the coordinates of the given pointsstatic Point
Performs vector subtraction on two points.Modifier and TypeMethodDescriptionstatic Point
Adds two points as 2d vectors.static Point
Returns a copy of the given pointstatic Rectangle
Geometry.createRectangle
(Point position, Point size) Returns a new rectangle with the given position and dimensions, expressed as points.static int
Geometry.distanceSquared
(Point p1, Point p2) Returns the square of the distance between two points.static Point
Divides both coordinates of the given point by the given scalar.static int
Geometry.dotProduct
(Point p1, Point p2) Returns the dot product of the given vectors (expressed as Points)static void
Swaps the X and Y coordinates of the given point.static Monitor
Util.getClosestMonitor
(Display toSearch, Point toFind) Returns the monitor whose client area contains the given point.static int
Geometry.getClosestSide
(Rectangle boundary, Point toTest) Returns the edge of the given rectangle is closest to the given point.static int
Geometry.getCoordinate
(Point toMeasure, boolean width) Returns the x or y coordinates of the given point.static int
Geometry.getDistanceFrom
(Rectangle boundary, Point toTest) Returns the distance from the point to the nearest edge of the given rectangle.static int
Geometry.getDistanceFromEdge
(Rectangle rectangle, Point testPoint, int edgeOfInterest) Returns the distance of the given point from a particular side of the given rectangle.static int
Geometry.getRelativePosition
(Rectangle boundary, Point toTest) Determines where the given point lies with respect to the given rectangle.static double
Returns the magnitude of the given 2d vector (represented as a Point)static int
Geometry.magnitudeSquared
(Point p) Returns the square of the magnitude of the given 2-space vector (represented using a point)static Point
Returns a new point whose coordinates are the maximum of the coordinates of the given pointsstatic Point
Returns a new point whose coordinates are the minimum of the coordinates of the given pointsstatic void
Geometry.moveRectangle
(Rectangle rect, Point delta) Moves the given rectangle by the given delta.static void
Sets result equal to toCopystatic void
Geometry.setCoordinate
(Point toSet, boolean width, int newCoordinate) Sets one coordinate of the given point.static void
Geometry.setLocation
(Rectangle rectangle, Point newLocation) Sets the x,y position of the given rectangle.static void
Sets the size of the given rectangle to the given sizestatic Point
Performs vector subtraction on two points. -
Uses of Point in org.eclipse.jface.viewers
Modifier and TypeMethodDescriptionTableLayout.computeSize
(Composite c, int wHint, int hHint, boolean flush) protected Point
DecorationOverlayIcon.getSize()
ViewerLabel.getTooltipShift()
CellLabelProvider.getToolTipShift
(Object object) Return the amount of pixels in x and y direction you want the tool tip to pop up from the mouse pointer.Modifier and TypeMethodDescriptionReturns the viewer cell at the given widget-relative coordinates, ornull
if there is no cell at that locationGet the ViewerCell at point.int
ViewerRow.getColumnIndex
(Point point) Get the columnIndex of the point.protected Item
This implementation ofAbstractTreeViewer.getItemAt(Point)
returns null to ensure API backwards compatibility.protected abstract Item
Returns theItem
at the given widget-relative coordinates, ornull
if there is no item at the given coordinates.protected Item
protected Item
protected ViewerRow
ColumnViewer.getViewerRow
(Point point) Returns the viewer row at the given widget-relative coordinates.void
ViewerLabel.setTooltipShift
(Point tooltipShift) ModifierConstructorDescriptionDecorationOverlayIcon
(Image baseImage, ImageDescriptor[] overlaysArray, Point sizeValue) Create the decoration overlay for the base image using the array of provided overlays. -
Uses of Point in org.eclipse.jface.window
Modifier and TypeMethodDescriptionprotected Point
Window.getInitialLocation
(Point initialSize) Returns the initial location to use for the shell.protected Point
Window.getInitialSize()
Returns the initial size to use for the shell.ToolTip.getLocation
(Point tipSize, Event event) Get the display relative location where the tooltip is displayed.Modifier and TypeMethodDescriptionprotected Point
Window.getInitialLocation
(Point initialSize) Returns the initial location to use for the shell.ToolTip.getLocation
(Point tipSize, Event event) Get the display relative location where the tooltip is displayed.void
Set the shift (from the mouse position triggered the event) used to display the tooltip.void
Start up the tooltip programmatically -
Uses of Point in org.eclipse.jface.wizard
Modifier and TypeMethodDescriptionWizardDialog.PageContainerFillLayout.computeSize
(Composite composite, int wHint, int hHint, boolean force) IWizardNode.getExtent()
Returns the extent of the wizard for this node.default Point
IWizardPage.getMinimumPageSize()
Returns the minimum page size used of this page.default Point
IWizard.getMinimumWizardSize()
Returns the minimum size of this wizard.Wizard.getMinimumWizardSize()
Modifier and TypeMethodDescriptionvoid
WizardDialog.setMinimumPageSize
(Point size) Sets the minimum page size used for the pages.void
WizardDialog.setPageSize
(Point size) Sets the size of all pages. -
Uses of Point in org.eclipse.swt.browser
-
Uses of Point in org.eclipse.swt.custom
Modifier and TypeMethodDescriptionAnimatedProgress.computeSize
(int wHint, int hHint, boolean changed) Deprecated.CCombo.computeSize
(int wHint, int hHint, boolean changed) CLabel.computeSize
(int wHint, int hHint, boolean changed) protected Point
CTabFolderRenderer.computeSize
(int part, int state, GC gc, int wHint, int hHint) Returns the preferred size of a part.protected Point
StackLayout.computeSize
(Composite composite, int wHint, int hHint, boolean flushCache) StyledText.computeSize
(int wHint, int hHint, boolean changed) 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.ScrolledComposite.getOrigin()
Return the point in the content that currently appears in the top left corner of the scrolled composite.CBanner.getRightMinimumSize()
Returns the minimum size of the control that appears on the right of the banner.CCombo.getSelection()
Returns aPoint
whose 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.Modifier and TypeMethodDescriptionGets the item at a point in the widget.int
StyledText.getOffsetAtLocation
(Point point) Deprecated.int
StyledText.getOffsetAtPoint
(Point point) Returns the offset of the character at the given point relative to the first character in the document.void
ScrolledComposite.setMinSize
(Point size) Specify the minimum width and height at which the ScrolledComposite will begin scrolling the content with the horizontal scroll bar.void
Scrolls the content so that the specified point in the content is in the top left corner.void
CBanner.setRightMinimumSize
(Point size) Set the minimum height of the control that appears on the right side of the banner.void
CCombo.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.void
StyledText.setSelection
(Point point) Sets the selection and scrolls it into view. -
Uses of Point in org.eclipse.swt.graphics
Modifier and TypeMethodDescriptionDevice.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.GC.stringExtent
(String string) Returns the extent of the given 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.Modifier and TypeMethodDescriptionboolean
Returnstrue
if the given point is inside the area specified by the receiver, andfalse
otherwise.boolean
Returnstrue
if the given point is inside the area specified by the receiver, andfalse
otherwise.int
Returns the character offset for the specified point.void
Translate all of the polygons the receiver maintains to describe its area by the specified point. -
Uses of Point in org.eclipse.swt.internal
Modifier and TypeMethodDescriptionstatic Point
DPIUtil.autoScaleDown
(Drawable drawable, Point point) Returns a new scaled down Point if enabled for Drawable class.static Point
DPIUtil.autoScaleDown
(Point point) Returns a new scaled down Point.static Point
DPIUtil.autoScaleUp
(Drawable drawable, Point point) Returns a new scaled up Point if enabled for Drawable class.static Point
DPIUtil.autoScaleUp
(Point point) Returns a new scaled up Point.ImageList.getImageSize()
static Point
static Point
static Point
static Point
Modifier and TypeMethodDescriptionstatic Point
DPIUtil.autoScaleDown
(Drawable drawable, Point point) Returns a new scaled down Point if enabled for Drawable class.static Point
DPIUtil.autoScaleDown
(Point point) Returns a new scaled down Point.static Point
DPIUtil.autoScaleUp
(Drawable drawable, Point point) Returns a new scaled up Point if enabled for Drawable class.static Point
DPIUtil.autoScaleUp
(Point point) Returns a new scaled up Point.static Point
static Point
static Point
static Point
-
Uses of Point in org.eclipse.swt.layout
Modifier and TypeMethodDescriptionprotected Point
BorderLayout.computeSize
(Composite composite, int wHint, int hHint, boolean flushCache) protected Point
FillLayout.computeSize
(Composite composite, int wHint, int hHint, boolean flushCache) protected Point
FormLayout.computeSize
(Composite composite, int wHint, int hHint, boolean flushCache) protected Point
GridLayout.computeSize
(Composite composite, int wHint, int hHint, boolean flushCache) protected Point
RowLayout.computeSize
(Composite composite, int wHint, int hHint, boolean flushCache) -
Uses of Point in org.eclipse.swt.printing
-
Uses of Point in org.eclipse.swt.widgets
Modifier and TypeMethodDescriptionControl.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.CoolItem.computeSize
(int wHint, int hHint) Returns the preferred size of the receiver.protected abstract Point
Layout.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.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.Display.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.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.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 aPoint
whose 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 aPoint
whose 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.Maps a point from one coordinate system to another.Maps a point from one coordinate system to another.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.Modifier and TypeMethodDescriptionReturns 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.Maps a point from one coordinate system to another.void
Display.setCursorLocation
(Point point) Sets the location of the on-screen pointer relative to the top left corner of the screen.void
CoolBar.setItemLayout
(int[] itemOrder, int[] wrapIndices, Point[] sizes) Sets the receiver's item order, wrap indices, and item sizes all at once.void
Caret.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).void
Control.setLocation
(Point location) Sets the receiver's location to the point specified by the arguments which are relative to the receiver's parent (or its display if its parent is null), unless the receiver is a shell.void
Menu.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.void
ToolTip.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.void
Shell.setMaximumSize
(Point size) Sets the receiver's maximum size to the size specified by the argument.void
CoolItem.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.void
Shell.setMinimumSize
(Point size) Sets the receiver's minimum size to the size specified by the argument.void
CoolItem.setPreferredSize
(Point size) Sets the receiver's ideal size to the point specified by the argument.void
Combo.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.void
Text.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.void
Sets the receiver's size to the point specified by the argument.void
Sets the receiver's size to the point specified by the argument.void
Sets the receiver's size to the point specified by the argument.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. -
Uses of Point in org.eclipse.team.ui
Modifier and TypeMethodDescriptionprotected Point
SaveablePartDialog.getInitialSize()
Deprecated. -
Uses of Point in org.eclipse.ui.actions
Modifier and TypeMethodDescriptionprotected Point
QuickMenuCreator.computeMenuLocation
(StyledText text) Hook to compute the menu location if the focus widget is a styled text widget.protected Point
QuickMenuCreator.computeMenuLocation
(Control focus) Determine the optimal point for this menu to appear.protected Point
QuickMenuCreator.computeMenuLocation
(Table table) Hook to compute the menu location if the focus widget is a table widget.protected Point
QuickMenuCreator.computeMenuLocation
(Tree tree) Hook to compute the menu location if the focus widget is a tree widget. -
Uses of Point in org.eclipse.ui.application
Modifier and TypeMethodDescriptionIWorkbenchWindowConfigurer.getInitialSize()
Returns the size to use for the window's shell when it is created.Modifier and TypeMethodDescriptionvoid
IWorkbenchWindowConfigurer.setInitialSize
(Point initialSize) Sets the size to use for the window's shell when it is created. -
Uses of Point in org.eclipse.ui.forms.widgets
Modifier and TypeMethodDescriptionSizeCache.computeAdjustedSize
(int widthHint, int heightHint) Compute the control's size, and ensure that non-default hints are returned verbatim (this tries to compensate for SWT's hints, which aren't really the outer width of the control).SizeCache.computeMinimumSize()
protected Point
ColumnLayout.computeSize
(Composite composite, int wHint, int hHint, boolean flushCache) ExpandableComposite.computeSize
(int wHint, int hHint, boolean changed) Computes the size of the expandable composite.FormText.computeSize
(int wHint, int hHint, boolean changed) Overrides the method by fully trusting the layout manager (computed width or height may be larger than the provider width or height hints).Hyperlink.computeSize
(int wHint, int hHint, boolean changed) Overrides the parent by incorporating the margin.ImageHyperlink.computeSize
(int wHint, int hHint, boolean changed) Computes the control size by reserving space for images in addition to text.LayoutCache.computeSize
(int controlIndex, int widthHint, int heightHint) Computes the preferred size of the nth controlScrolledPageBook.computeSize
(int wHint, int hHint, boolean changed) Removes the default size of the composite, allowing the control to shrink to the trim.SizeCache.computeSize
(int widthHint, int heightHint) Computes the preferred size of the control.protected Point
TableWrapLayout.computeSize
(Composite parent, int wHint, int hHint, boolean changed) ToggleHyperlink.computeSize
(int wHint, int hHint, boolean changed) Computes the size of the control.protected Point
Hyperlink.computeTextSize
(int wHint, int hHint) -
Uses of Point in org.eclipse.ui.internal
Modifier and TypeMethodDescriptionHeapStatus.computeSize
(int wHint, int hHint, boolean changed) WorkbenchWindowConfigurer.getInitialSize()
-
Uses of Point in org.eclipse.ui.part
Modifier and TypeMethodDescriptionprotected Point
PageBook.PageBookLayout.computeSize
(Composite composite, int wHint, int hHint, boolean flushCache) -
Uses of Point in org.eclipse.ui.texteditor
Modifier and TypeMethodDescriptionprotected void
TextNavigationAction.fireSelectionChanged
(Point oldSelection) Fires a selection event to all selection listener of the action's text widget if the current selection differs from the given selection.
StyledText.getOffsetAtPoint(Point)
instead for better performance