public abstract class AWTAbstractMouseSelector extends Object implements MouseListener, MouseMotionListener
Modifier and Type | Field and Description |
---|---|
protected Chart |
chart |
protected boolean |
dragging |
protected IntegerCoord2d |
in |
protected IntegerCoord2d |
last |
protected IntegerCoord2d |
out |
protected Renderer2d |
selectionRenderer |
Constructor and Description |
---|
AWTAbstractMouseSelector() |
Modifier and Type | Method and Description |
---|---|
abstract void |
clearLastSelection() |
void |
dispose() |
protected void |
dragSelection(MouseEvent e) |
protected void |
drawRectangle(Graphics2D g2d,
IntegerCoord2d in,
IntegerCoord2d out) |
protected abstract void |
drawSelection(Graphics2D g,
int width,
int height)
Drawing occurs in the selection renderer which as the dimension of the
GL2 scene viewport.
|
protected Renderer2d |
initRenderer2d(ICanvas c) |
protected boolean |
matchRectangleSelection(IntegerCoord2d in,
IntegerCoord2d out,
Coord3d projection,
int width,
int height) |
protected boolean |
matchRectangleSelection(IntegerCoord2d in,
IntegerCoord2d out,
float px,
float py,
int width,
int height) |
void |
mouseClicked(MouseEvent e) |
void |
mouseDragged(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
void |
mouseWheelMoved(MouseEvent e) |
protected abstract void |
processSelection(Scene scene,
View view,
int width,
int height) |
void |
register(Chart chart) |
protected void |
releaseSelection(MouseEvent e) |
protected void |
rollOver(MouseEvent e) |
protected void |
startSelection(MouseEvent e) |
void |
unregister() |
protected void |
updateLast() |
int |
x(MouseEvent e) |
IntegerCoord2d |
xy(MouseEvent e) |
int |
y(MouseEvent e) |
protected Chart chart
protected boolean dragging
protected IntegerCoord2d in
protected IntegerCoord2d out
protected IntegerCoord2d last
protected Renderer2d selectionRenderer
public void dispose()
public void register(Chart chart)
public void unregister()
protected Renderer2d initRenderer2d(ICanvas c)
protected abstract void processSelection(Scene scene, View view, int width, int height)
protected abstract void drawSelection(Graphics2D g, int width, int height)
AbstractViewportManager} and {@link Camera}
public abstract void clearLastSelection()
protected boolean matchRectangleSelection(IntegerCoord2d in, IntegerCoord2d out, Coord3d projection, int width, int height)
protected boolean matchRectangleSelection(IntegerCoord2d in, IntegerCoord2d out, float px, float py, int width, int height)
in
- The mouse selection start pointout
- The mouse selection end pointpx
- A projected point x valuepy
- A projected point y valuewidth
- The canvas dimensionheight
- The canvas dimensionprotected void drawRectangle(Graphics2D g2d, IntegerCoord2d in, IntegerCoord2d out)
protected void startSelection(MouseEvent e)
public IntegerCoord2d xy(MouseEvent e)
public int x(MouseEvent e)
public int y(MouseEvent e)
protected void dragSelection(MouseEvent e)
protected void releaseSelection(MouseEvent e)
protected void rollOver(MouseEvent e)
protected void updateLast()
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
public void mouseWheelMoved(MouseEvent e)
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
Copyright © 2016. All rights reserved.