Class SwingTreePlotView<N,Row,Column>

java.lang.Object
com.treemap.treeplot.AbstractTreePlotView<JComponent,N,Row,Column,Color,Font>
com.treemap.swing.treeplot.SwingTreePlotView<N,Row,Column>
Type Parameters:
N - the type of nodes
All Implemented Interfaces:
TreePlotView<JComponent,N,Row,Column,Color,Font>

public class SwingTreePlotView<N,Row,Column> extends AbstractTreePlotView<JComponent,N,Row,Column,Color,Font>
Main class for the view part of TreePlot.
  • Constructor Details

    • SwingTreePlotView

      public SwingTreePlotView()
  • Method Details

    • getPaint

      public Paint getPaint(N node, com.macrofocus.geom.Shape shape, com.macrofocus.geom.Rectangle bounds, boolean allowGradientPaint)
      Specified by:
      getPaint in interface TreePlotView<JComponent,N,Row,Column,Color,Font>
      Overrides:
      getPaint in class AbstractTreePlotView<JComponent,N,Row,Column,Color,Font>
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • getRenderingHints

      public RenderingHints getRenderingHints()
    • setRenderingHints

      public void setRenderingHints(RenderingHints renderingHints)
    • repaint

      protected void repaint(long delay)
      Specified by:
      repaint in class AbstractTreePlotView<JComponent,N,Row,Column,Color,Font>
    • setBackground

      protected void setBackground(com.macrofocus.igraphics.CPColor<Color> background)
      Specified by:
      setBackground in class AbstractTreePlotView<JComponent,N,Row,Column,Color,Font>
    • getSize

      public Dimension getSize()
    • getNativeComponent

      public JComponent getNativeComponent()
    • 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)