public class SelectionRectangle
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private org.eclipse.swt.graphics.Point |
endPoint
the end point of selection
|
private org.eclipse.swt.graphics.Point |
startPoint
the start point of selection
|
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.
|
private org.eclipse.swt.graphics.Point startPoint
private org.eclipse.swt.graphics.Point endPoint
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 context