Class 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:
    SwingTableLensComponent

    public abstract class AbstractTableLensComponent<Component,​Color,​Row,​C>
    extends java.lang.Object
    implements TableLensComponent<Component,​Row,​C>
    • Constructor Detail

      • AbstractTableLensComponent

        protected AbstractTableLensComponent​(TableLensView view,
                                             com.macrofocus.crossplatform.CPCanvas canvas,
                                             com.macrofocus.crossplatform.CPFactory<?,​?,​?,​Color> factory)
    • Method Detail

      • getWidth

        protected abstract int getWidth()
      • getHeight

        protected abstract int getHeight()
      • refresh

        protected abstract void refresh()
      • repaint

        protected abstract void repaint()
      • getRows

        public java.util.List<Row> getRows​(com.macrofocus.igraphics.Rectangle2D rect)
        Description copied from interface: TableLensComponent
        Returns the nodes overlapping the specified rectangle.
        Specified by:
        getRows in interface TableLensComponent<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:
        addMouseListener in interface com.macrofocus.crossplatform.CPInteractiveComponent<Component>
      • addMouseMotionListener

        public void addMouseMotionListener​(com.macrofocus.crossplatform.CPCanvas.MouseMotionListener l)
        Specified by:
        addMouseMotionListener in interface com.macrofocus.crossplatform.CPInteractiveComponent<Component>
      • removeMouseListener

        public void removeMouseListener​(com.macrofocus.crossplatform.CPCanvas.MouseListener l)
        Specified by:
        removeMouseListener in interface com.macrofocus.crossplatform.CPInteractiveComponent<Component>
      • removeMouseMotionListener

        public void removeMouseMotionListener​(com.macrofocus.crossplatform.CPCanvas.MouseMotionListener l)
        Specified by:
        removeMouseMotionListener in interface com.macrofocus.crossplatform.CPInteractiveComponent<Component>