Package com.treemap.swing.treeplot
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.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.treemap.treeplot.TreePlotView
TreePlotView.BoundingMode -
Field Summary
Fields inherited from class com.treemap.treeplot.AbstractTreePlotView
model, probingToolTip, screenTransform, selectionToolTip, shapes, xGuide, xRangeModel, yGuide, yRangeModel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContextMenuListener(com.macrofocus.crossplatform.CPCanvas.ContextMenuListener l) voidaddKeyListener(com.macrofocus.crossplatform.CPCanvas.KeyListener l) voidaddMouseListener(com.macrofocus.crossplatform.CPCanvas.MouseListener l) voidaddMouseMotionListener(com.macrofocus.crossplatform.CPCanvas.MouseMotionListener l) voidaddMouseWheelListener(com.macrofocus.crossplatform.CPCanvas.MouseWheelListener l) intgetPaint(N node, com.macrofocus.geom.Shape shape, com.macrofocus.geom.Rectangle bounds, boolean allowGradientPaint) getSize()intgetWidth()protected voidrepaint(long delay) protected voidsetBackground(com.macrofocus.igraphics.CPColor<Color> background) voidsetRenderingHints(RenderingHints renderingHints) Methods inherited from class com.treemap.treeplot.AbstractTreePlotView
addProgressiveRenderer, addRenderer, drill, drillDown, drillUp, getBoundingMode, getHeadless, getLeafScreenShape, getModel, getNode, getNodes, getProgressiveRenderers, getRenderedShape, getRenderers, getRubberBand, getScreenBounds, getScreenShape, getSelectionToolTip, getToolTip, getToolTipPreferredLocation, getTooltipRenderer, getWorld, getXCoordinateAxis, getXGuide, getXRangeModel, getYCoordinateAxis, getYGuide, getYRangeModel, getZoomFactor, isDirty, isShowTiming, repaint, resetXAxis, resetYAxis, setDirty, setDirtyShapes, setModel, setSelectionToolTip, setShowTiming, setToolTip, zoom, zoomIn, zoomOut
-
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:
getPaintin interfaceTreePlotView<JComponent,N, Row, Column, Color, Font> - Overrides:
getPaintin classAbstractTreePlotView<JComponent,N, Row, Column, Color, Font>
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getRenderingHints
-
setRenderingHints
-
repaint
protected void repaint(long delay) - Specified by:
repaintin classAbstractTreePlotView<JComponent,N, Row, Column, Color, Font>
-
setBackground
- Specified by:
setBackgroundin classAbstractTreePlotView<JComponent,N, Row, Column, Color, Font>
-
getSize
-
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)
-