public class SelectionRectangle extends Object
| Constructor and Description |
|---|
SelectionRectangle() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes the resource.
|
void |
draw(org.eclipse.swt.graphics.GC gc)
Draws the selection rectangle on chart panel.
|
org.eclipse.swt.graphics.Point |
getHorizontalRange()
Gets the horizontal selected range.
|
org.eclipse.swt.graphics.Point |
getVerticalRange()
Gets the vertical selected range.
|
boolean |
isDisposed()
Check if selection is disposed.
|
void |
setEndPoint(int x,
int y)
Sets the end point.
|
void |
setStartPoint(int x,
int y)
Sets the start point.
|
public void setStartPoint(int x,
int y)
x - the X coordinate of start point in pixelsy - the Y coordinate of start point in pixelspublic void setEndPoint(int x,
int y)
x - the X coordinate of end point in pixelsy - the X coordinate of end point in pixelspublic org.eclipse.swt.graphics.Point getHorizontalRange()
public org.eclipse.swt.graphics.Point getVerticalRange()
public boolean isDisposed()
public void dispose()
public void draw(org.eclipse.swt.graphics.GC gc)
gc - the graphics contextCopyright © 2024. All rights reserved.