Class AbstractTreeMapController<C,​N,​Row,​Column,​Color,​Font>

  • All Implemented Interfaces:
    TreeMapController<C,​N,​Row,​Column,​Color,​Font>
    Direct Known Subclasses:
    SwingTreeMapController

    public abstract class AbstractTreeMapController<C,​N,​Row,​Column,​Color,​Font>
    extends java.lang.Object
    implements TreeMapController<C,​N,​Row,​Column,​Color,​Font>
    Created by luc on 03.05.17.
    • Constructor Detail

      • AbstractTreeMapController

        public AbstractTreeMapController​(TreeMapView<C,​N,​Row,​Column,​Color,​Font> view,
                                         com.macrofocus.crossplatform.CPFactory<C,​?,​?,​?> factory)
    • Method Detail

      • zoomingCenterFunction

        protected double zoomingCenterFunction​(double center)
        Currently returns Math.tanh(x * 3). Can be overridden to use other (e.g. logistic) function.
        Parameters:
        center - the center within a normalized (-1..1) range
        Returns:
        the new center within a normalized (-1..1) range
      • getViewport

        public com.macrofocus.igraphics.Rectangle2D getViewport()
      • getWorld

        public com.macrofocus.igraphics.Rectangle2D getWorld()