Package com.macrofocus.high_d.tablelens
Class AbstractTableLensComponent<Component,Color,Row,C>
java.lang.Object
com.macrofocus.high_d.tablelens.AbstractTableLensComponent<Component,Color,Row,C>
- All Implemented Interfaces:
com.macrofocus.crossplatform.CPComponent<Component>,com.macrofocus.crossplatform.CPInteractiveComponent<Component>,TableLensComponent<Component,Row, C>
- Direct Known Subclasses:
JavaFXTableLensComponent
public abstract class AbstractTableLensComponent<Component,Color,Row,C>
extends Object
implements TableLensComponent<Component,Row,C>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractTableLensComponent(TableLensView view, com.macrofocus.crossplatform.CPCanvas canvas, com.macrofocus.crossplatform.CPFactory<?, ?, ?, Color> factory) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMouseListener(com.macrofocus.crossplatform.CPCanvas.MouseListener l) voidaddMouseMotionListener(com.macrofocus.crossplatform.CPCanvas.MouseMotionListener l) voidgetClosestRow(int x, int y) protected abstract intgetRows(com.macrofocus.geom.Rectangle2D rect) Returns the nodes overlapping the specified rectangle.protected abstract intgetWidth()protected abstract voidrefresh()voidremoveMouseListener(com.macrofocus.crossplatform.CPCanvas.MouseListener l) voidremoveMouseMotionListener(com.macrofocus.crossplatform.CPCanvas.MouseMotionListener l) protected abstract voidrepaint()voidsetModel(TableLensModel model) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.macrofocus.crossplatform.CPComponent
setStyleClassMethods inherited from interface com.macrofocus.high_d.tablelens.TableLensComponent
getNativeComponent, scheduleUpdate
-
Field Details
-
model
-
canvas
protected final com.macrofocus.crossplatform.CPCanvas canvas -
view
-
timer
-
-
Constructor Details
-
AbstractTableLensComponent
protected AbstractTableLensComponent(TableLensView view, com.macrofocus.crossplatform.CPCanvas canvas, com.macrofocus.crossplatform.CPFactory<?, ?, ?, Color> factory)
-
-
Method Details
-
getWidth
protected abstract int getWidth() -
getHeight
protected abstract int getHeight() -
refresh
protected abstract void refresh() -
repaint
protected abstract void repaint() -
setModel
- Specified by:
setModelin interfaceTableLensComponent<Component,Color, Row>
-
createOverplots
public void createOverplots()- Specified by:
createOverplotsin interfaceTableLensComponent<Component,Color, Row>
-
getClosestRow
- Specified by:
getClosestRowin interfaceTableLensComponent<Component,Color, Row>
-
getRows
Description copied from interface:TableLensComponentReturns the nodes overlapping the specified rectangle.- Specified by:
getRowsin interfaceTableLensComponent<Component,Color, Row> - Parameters:
rect- the rectangle in screen coordinates- Returns:
- the list of nodes
-
addMouseListener
public void addMouseListener(com.macrofocus.crossplatform.CPCanvas.MouseListener l) - Specified by:
addMouseListenerin interfacecom.macrofocus.crossplatform.CPInteractiveComponent<Component>
-
addMouseMotionListener
public void addMouseMotionListener(com.macrofocus.crossplatform.CPCanvas.MouseMotionListener l) - Specified by:
addMouseMotionListenerin interfacecom.macrofocus.crossplatform.CPInteractiveComponent<Component>
-
removeMouseListener
public void removeMouseListener(com.macrofocus.crossplatform.CPCanvas.MouseListener l) - Specified by:
removeMouseListenerin interfacecom.macrofocus.crossplatform.CPInteractiveComponent<Component>
-
removeMouseMotionListener
public void removeMouseMotionListener(com.macrofocus.crossplatform.CPCanvas.MouseMotionListener l) - Specified by:
removeMouseMotionListenerin interfacecom.macrofocus.crossplatform.CPInteractiveComponent<Component>
-