Class GenericMouseListener<Row>
- java.lang.Object
-
- com.macrofocus.high_d.interaction.GenericMouseListener<Row>
-
- All Implemented Interfaces:
com.macrofocus.crossplatform.CPCanvas.MouseListener
,com.macrofocus.crossplatform.CPCanvas.MouseMotionListener
public abstract class GenericMouseListener<Row> extends java.lang.Object implements com.macrofocus.crossplatform.CPCanvas.MouseListener, com.macrofocus.crossplatform.CPCanvas.MouseMotionListener
Created by luc on 27/07/16.
-
-
Constructor Summary
Constructors Constructor Description GenericMouseListener(com.macrofocus.rubberband.RubberBand rubberBand)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Row
getClosestRow(int x, int y)
protected abstract MutableFilter<Row>
getFilter()
protected abstract com.macrofocus.high_d.interaction.InteractionMode
getMode()
protected abstract MutableSingleSelection<Row>
getProbing()
protected abstract java.util.Collection<Row>
getRows(com.macrofocus.igraphics.Rectangle2D rect)
protected com.macrofocus.rubberband.RubberBand
getRubberBand()
protected abstract MutableSelection<Row>
getSelection()
boolean
isSelectionMode()
void
mouseClicked(com.macrofocus.crossplatform.CPCanvas.MouseEvent e)
void
mouseDragged(com.macrofocus.crossplatform.CPCanvas.MouseEvent event)
void
mouseEntered(com.macrofocus.crossplatform.CPCanvas.MouseEvent e)
void
mouseExited(com.macrofocus.crossplatform.CPCanvas.MouseEvent e)
void
mouseMoved(com.macrofocus.crossplatform.CPCanvas.MouseEvent event)
void
mousePressed(com.macrofocus.crossplatform.CPCanvas.MouseEvent event)
void
mouseReleased(com.macrofocus.crossplatform.CPCanvas.MouseEvent event)
protected abstract void
setMode(com.macrofocus.high_d.interaction.InteractionMode mode)
void
setSelectionMode(boolean value)
-
-
-
Method Detail
-
getMode
protected abstract com.macrofocus.high_d.interaction.InteractionMode getMode()
-
setMode
protected abstract void setMode(com.macrofocus.high_d.interaction.InteractionMode mode)
-
isSelectionMode
public boolean isSelectionMode()
-
setSelectionMode
public void setSelectionMode(boolean value)
-
getProbing
protected abstract MutableSingleSelection<Row> getProbing()
-
getSelection
protected abstract MutableSelection<Row> getSelection()
-
getFilter
protected abstract MutableFilter<Row> getFilter()
-
getClosestRow
protected abstract Row getClosestRow(int x, int y)
-
getRows
protected abstract java.util.Collection<Row> getRows(com.macrofocus.igraphics.Rectangle2D rect)
-
getRubberBand
protected com.macrofocus.rubberband.RubberBand getRubberBand()
-
mouseClicked
public void mouseClicked(com.macrofocus.crossplatform.CPCanvas.MouseEvent e)
- Specified by:
mouseClicked
in interfacecom.macrofocus.crossplatform.CPCanvas.MouseListener
-
mousePressed
public void mousePressed(com.macrofocus.crossplatform.CPCanvas.MouseEvent event)
- Specified by:
mousePressed
in interfacecom.macrofocus.crossplatform.CPCanvas.MouseListener
-
mouseReleased
public void mouseReleased(com.macrofocus.crossplatform.CPCanvas.MouseEvent event)
- Specified by:
mouseReleased
in interfacecom.macrofocus.crossplatform.CPCanvas.MouseListener
-
mouseEntered
public void mouseEntered(com.macrofocus.crossplatform.CPCanvas.MouseEvent e)
- Specified by:
mouseEntered
in interfacecom.macrofocus.crossplatform.CPCanvas.MouseListener
-
mouseExited
public void mouseExited(com.macrofocus.crossplatform.CPCanvas.MouseEvent e)
- Specified by:
mouseExited
in interfacecom.macrofocus.crossplatform.CPCanvas.MouseListener
-
mouseDragged
public void mouseDragged(com.macrofocus.crossplatform.CPCanvas.MouseEvent event)
- Specified by:
mouseDragged
in interfacecom.macrofocus.crossplatform.CPCanvas.MouseMotionListener
-
mouseMoved
public void mouseMoved(com.macrofocus.crossplatform.CPCanvas.MouseEvent event)
- Specified by:
mouseMoved
in interfacecom.macrofocus.crossplatform.CPCanvas.MouseMotionListener
-
-