|
|
|
|
Uses of Class org.eclipse.swt.graphics.Point
Methods in
org.eclipse.jface.text.source that return
Point
|
protected
Point
|
LineChangeHover.
computeLineRange
(
ISourceViewer viewer,
int line,
int min,
int max)
Computes the block of lines which form a contiguous block of changes covering line . |
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. |
Methods in
org.eclipse.jface.util that return
Point
|
static
Point
|
Geometry.
add
(
Point point1,
Point point2)
Adds two points as 2d vectors. |
static
Point
|
Geometry.
centerPoint
(
Rectangle rect)
Returns the point in the center of the given rectangle. |
static
Point
|
Geometry.
copy
(
Point toCopy)
Returns a copy of the given point |
static
Point
|
Geometry.
divide
(
Point toDivide,
int scalar)
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
|
Geometry.
getSize
(
Rectangle rectangle)
Returns the size of the rectangle, as a Point |
static
Point
|
Geometry.
max
(
Point p1,
Point p2)
Returns a new point whose coordinates are the maximum of the coordinates
of the given points |
static
Point
|
Geometry.
min
(
Point p1,
Point p2)
Returns a new point whose coordinates are the minimum of the coordinates of the
given points |
static
Point
|
Geometry.
subtract
(
Point point1,
Point point2)
Performs vector subtraction on two points. |
Methods in
org.eclipse.jface.util with parameters of type
Point
|
static
Point
|
Geometry.
add
(
Point point1,
Point point2)
Adds two points as 2d vectors. |
static
Point
|
Geometry.
copy
(
Point toCopy)
Returns a copy of the given point |
static
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
|
Geometry.
divide
(
Point toDivide,
int scalar)
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
|
Geometry.
flipXY
(
Point toFlip)
Swaps the X and Y coordinates of 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
|
Geometry.
magnitude
(
Point p)
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
|
Geometry.
max
(
Point p1,
Point p2)
Returns a new point whose coordinates are the maximum of the coordinates
of the given points |
static
Point
|
Geometry.
min
(
Point p1,
Point p2)
Returns a new point whose coordinates are the minimum of the coordinates of the
given points |
static void
|
Geometry.
moveRectangle
(
Rectangle rect,
Point delta)
Moves the given rectangle by the given delta. |
static void
|
Geometry.
set
(
Point result,
Point toCopy)
Sets result equal to toCopy |
static 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
|
Geometry.
setSize
(
Rectangle rectangle,
Point newSize)
Sets the size of the given rectangle to the given size |
static
Point
|
Geometry.
subtract
(
Point point1,
Point point2)
Performs vector subtraction on two points. |
Methods in
org.eclipse.swt.custom that return
Point
|
protected
Point
|
StackLayout.
computeSize
(
Composite composite,
int wHint,
int hHint,
boolean flushCache)
|
Point
|
StyledText.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
TableTree.
computeSize
(int wHint,
int hHint,
boolean changed)
Deprecated. |
Point
|
CCombo.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
CLabel.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
AnimatedProgress.
computeSize
(int wHint,
int hHint,
boolean changed)
Deprecated. |
Point
|
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. |
Point
|
ScrolledComposite.
getOrigin
()
Return the point in the content that currently appears in the top left
corner of the scrolled composite. |
Point
|
CBanner.
getRightMinimumSize
()
Returns the minimum size of the control that appears on the right of the banner. |
Point
|
StyledText.
getSelection
()
Returns the selection. |
Point
|
CCombo.
getSelection
()
Returns a Point 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. |
Point
|
StyledText.
getSelectionRange
()
Returns the selection. |
Methods in
org.eclipse.swt.custom with parameters of type
Point
|
CTabItem
|
CTabFolder.
getItem
(
Point pt)
Gets the item at a point in the widget. |
TableTreeItem
|
TableTree.
getItem
(
Point point)
Deprecated. Returns the item at the given point in the receiver
or null if no such item exists. |
int
|
StyledText.
getOffsetAtLocation
(
Point point)
Returns the offset of the character at the given location 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
|
ScrolledComposite.
setOrigin
(
Point origin)
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
|
StyledText.
setSelection
(
Point point)
Sets the selection and scrolls it into view. |
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. |
Methods in
org.eclipse.swt.graphics with parameters of type
Point
|
boolean
|
Rectangle.
contains
(
Point pt)
Returns true if the given point is inside the
area specified by the receiver, and false
otherwise. |
boolean
|
Region.
contains
(
Point pt)
Returns true if the given point is inside the
area specified by the receiver, and false
otherwise. |
int
|
TextLayout.
getOffset
(
Point point,
int[] trailing)
Returns the character offset for the specified point. |
void
|
Region.
translate
(
Point pt)
Translate all of the polygons the receiver maintains to describe
its area by the specified point. |
Methods in
org.eclipse.swt.layout that return
Point
|
protected
Point
|
RowLayout.
computeSize
(
Composite composite,
int wHint,
int hHint,
boolean flushCache)
|
protected
Point
|
FormLayout.
computeSize
(
Composite composite,
int wHint,
int hHint,
boolean flushCache)
|
protected
Point
|
FillLayout.
computeSize
(
Composite composite,
int wHint,
int hHint,
boolean flushCache)
|
protected
Point
|
GridLayout.
computeSize
(
Composite composite,
int wHint,
int hHint,
boolean flushCache)
|
Methods in
org.eclipse.swt.printing that return
Point
|
Point
|
Printer.
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. |
Methods in
org.eclipse.swt.widgets that return
Point
|
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. |
Point
|
Control.
computeSize
(int wHint,
int hHint)
Returns the preferred size of the receiver. |
Point
|
CoolItem.
computeSize
(int wHint,
int hHint)
Returns the preferred size of the receiver. |
Point
|
ExpandBar.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
Scale.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
Group.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
Control.
computeSize
(int wHint,
int hHint,
boolean changed)
Returns the preferred size of the receiver. |
Point
|
Tree.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
TabFolder.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
Label.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
Sash.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
DateTime.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
Slider.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
Table.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
List.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
ToolBar.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
Button.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
CoolBar.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
Link.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
Combo.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
Text.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
Composite.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
ProgressBar.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
Spinner.
computeSize
(int wHint,
int hHint,
boolean changed)
|
Point
|
Text.
getCaretLocation
()
Returns a point describing the receiver's location relative
to its parent (or its display if its parent is null). |
Point
|
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. |
Point
|
Shell.
getLocation
()
|
Point
|
Caret.
getLocation
()
Returns a point describing the receiver's location relative
to its parent (or its display if its parent is null). |
Point
|
Decorations.
getLocation
()
|
Point
|
Control.
getLocation
()
Returns a point describing the receiver's location relative
to its parent (or its display if its parent is null), unless
the receiver is a shell. |
Point
|
Shell.
getMinimumSize
()
Returns a point describing the minimum receiver's size. |
Point
|
CoolItem.
getMinimumSize
()
Returns the minimum size that the cool item can
be resized to using the cool item's gripper. |
Point
|
CoolItem.
getPreferredSize
()
Returns a point describing the receiver's ideal size. |
Point
|
Combo.
getSelection
()
Returns a Point 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. |
Point
|
Text.
getSelection
()
Returns a Point 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. |
Point
|
Shell.
getSize
()
|
Point
|
Caret.
getSize
()
Returns a point describing the receiver's size. |
Point
|
Decorations.
getSize
()
|
Point
|
Control.
getSize
()
Returns a point describing the receiver's size. |
Point
|
CoolItem.
getSize
()
Returns a point describing the receiver's size. |
Point
|
ScrollBar.
getSize
()
Returns a point describing the receiver's size. |
Point
|
Display.
map
(
Control from,
Control to,
int x,
int y)
Maps a point from one coordinate system to another. |
Point
|
Display.
map
(
Control from,
Control to,
Point point)
Maps a point from one coordinate system to another. |
Point
|
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. |
Point
|
Control.
toControl
(
Point point)
Returns a point which is the result of converting the
argument, which is specified in display relative coordinates,
to coordinates relative to the receiver. |
Point
|
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. |
Point
|
Control.
toDisplay
(
Point point)
Returns a point which is the result of converting the
argument, which is specified in coordinates relative to
the receiver, to display relative coordinates. |
Methods in
org.eclipse.swt.widgets with parameters of type
Point
|
TreeItem
|
Tree.
getItem
(
Point point)
Returns the item at the given point in the receiver
or null if no such item exists. |
TabItem
|
TabFolder.
getItem
(
Point point)
Returns the tab item at the given point in the receiver
or null if no such item exists. |
TableItem
|
Table.
getItem
(
Point point)
Returns the item at the given point in the receiver
or null if no such item exists. |
ToolItem
|
ToolBar.
getItem
(
Point point)
Returns the item at the given point in the receiver
or null if no such item exists. |
Point
|
Display.
map
(
Control from,
Control to,
Point point)
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
|
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
|
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
|
Shell.
setMinimumSize
(
Point size)
Sets the receiver's minimum 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
|
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
|
Caret.
setSize
(
Point size)
Sets the receiver's size to the point specified by the argument. |
void
|
Control.
setSize
(
Point size)
Sets the receiver's size to the point specified by the argument. |
void
|
CoolItem.
setSize
(
Point size)
Sets the receiver's size to the point specified by the argument. |
Point
|
Control.
toControl
(
Point point)
Returns a point which is the result of converting the
argument, which is specified in display relative coordinates,
to coordinates relative to the receiver. |
Point
|
Control.
toDisplay
(
Point point)
Returns a point which is the result of converting the
argument, which is specified in coordinates relative to
the receiver, to display relative coordinates. |
Methods in
org.eclipse.ui.forms.widgets that return
Point
|
Point
|
SizeCache.
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). |
Point
|
SizeCache.
computeMinimumSize
()
|
protected
Point
|
TableWrapLayout.
computeSize
(
Composite parent,
int wHint,
int hHint,
boolean changed)
|
protected
Point
|
ColumnLayout.
computeSize
(
Composite composite,
int wHint,
int hHint,
boolean flushCache)
|
Point
|
SizeCache.
computeSize
(int widthHint,
int heightHint)
Computes the preferred size of the control. |
Point
|
ScrolledPageBook.
computeSize
(int wHint,
int hHint,
boolean changed)
Removes the default size of the composite, allowing the control to
shrink to the trim. |
Point
|
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). |
Point
|
Form.
computeSize
(int wHint,
int hHint,
boolean changed)
Fully delegates the size computation to the internal layout manager. |
Point
|
ToggleHyperlink.
computeSize
(int wHint,
int hHint,
boolean changed)
Computes the size of the control. |
Point
|
ExpandableComposite.
computeSize
(int wHint,
int hHint,
boolean changed)
Computes the size of the expandable composite. |
Point
|
Hyperlink.
computeSize
(int wHint,
int hHint,
boolean changed)
Overrides the parent by incorporating the margin. |
Point
|
ImageHyperlink.
computeSize
(int wHint,
int hHint,
boolean changed)
Computes the control size by reserving space for images in addition to
text. |
Point
|
LayoutCache.
computeSize
(int controlIndex,
int widthHint,
int heightHint)
Computes the preferred size of the nth control |
protected
Point
|
Hyperlink.
computeTextSize
(int wHint,
int hHint)
|
Methods in
org.eclipse.ui.texteditor with parameters of type
Point
|
protected 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. |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.
|
|
|