Class SwingTreeMapView<N,​Row,​Column>

  • All Implemented Interfaces:
    TreeMapView<javax.swing.JComponent,​N,​Row,​Column,​java.awt.Color,​java.awt.Font>

    public class SwingTreeMapView<N,​Row,​Column>
    extends AbstractTreeMapView<javax.swing.JComponent,​N,​Row,​Column,​java.awt.Color,​java.awt.Font>
    Provides a view for a TreeMapModel
    • Constructor Detail

      • SwingTreeMapView

        public SwingTreeMapView()
    • Method Detail

      • updateModelDimension

        public void updateModelDimension()
      • setLicenseModel

        public void setLicenseModel​(LicenseModel licenseModel)
      • getImage

        public java.awt.image.BufferedImage getImage()
        Creates a new image and render the current treemap into it. It will wait that all pending update requests to be completed before proceeding to the rendering. The tooltip won't be rendered.
        Returns:
        an image containing the current treemap.
      • getToolTipImage

        public java.awt.image.BufferedImage getToolTipImage​(N node)
        Creates a new image and render the tooltip used for probing into it.
        Parameters:
        node - the node for which the tooltip should be rendered
        Returns:
        an image containing the tooltip
      • getToolTipPreferredLocation

        public java.awt.Point getToolTipPreferredLocation​(N node)
        Returns the preferred location of the probing tooltip for the specified node.
        Parameters:
        node - the node to query about its preferred location
        Returns:
        the preferred location of the tooltip in screen coordinates
      • waitUntilReady

        public void waitUntilReady()
        Wait until all processing are completed.
      • setShowTiming

        public void setShowTiming​(boolean showTiming)
        Sets whether information about refresh rate should be displayed.
        Parameters:
        showTiming - true to display refresh rate information, false otherwise
      • setProgressive

        public void setProgressive​(TreeMapView.Progressive progressive)
        Sets whether progressive display mode is enabled.
        Parameters:
        progressive - true if progressive display mode is enabled, false otherwise
      • getNativeComponent

        public javax.swing.JComponent getNativeComponent()
      • getBackground

        public com.macrofocus.igraphics.CPColor<java.awt.Color> getBackground()
      • getSize

        public java.awt.Dimension getSize()
      • setSize

        public void setSize​(java.awt.Dimension dimension)
      • repaint

        protected void repaint​(long delay)
        Specified by:
        repaint in class AbstractTreeMapView<javax.swing.JComponent,​N,​Row,​Column,​java.awt.Color,​java.awt.Font>
      • addMouseListener

        public void addMouseListener​(com.macrofocus.crossplatform.CPCanvas.MouseListener l)
      • addMouseMotionListener

        public void addMouseMotionListener​(com.macrofocus.crossplatform.CPCanvas.MouseMotionListener l)
      • addMouseWheelListener

        public void addMouseWheelListener​(com.macrofocus.crossplatform.CPCanvas.MouseWheelListener l)
      • addKeyListener

        public void addKeyListener​(com.macrofocus.crossplatform.CPCanvas.KeyListener l)
      • addContextMenuListener

        public void addContextMenuListener​(com.macrofocus.crossplatform.CPCanvas.ContextMenuListener l)