Package com.treemap.treeplot
Class AbstractTreePlotView<C,N,Row,Column,Color,Font>
java.lang.Object
com.treemap.treeplot.AbstractTreePlotView<C,N,Row,Column,Color,Font>
- All Implemented Interfaces:
TreePlotView<C,N, Row, Column, Color, Font>
- Direct Known Subclasses:
SwingTreePlotView
public abstract class AbstractTreePlotView<C,N,Row,Column,Color,Font>
extends Object
implements TreePlotView<C,N,Row,Column,Color,Font>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.treemap.treeplot.TreePlotView
TreePlotView.BoundingMode -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TreeMapToolTipprotected final com.macrofocus.transform.twod.MutableTwoDScreenTransformprotected TreeMapToolTipprotected final MutableBoundedIntervalprotected final MutableBoundedInterval -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProgressiveRenderer(TreePlotRenderer renderer) voidaddRenderer(TreePlotRenderer renderer) voiddrill(int x, int y) voidvoiddrillUp()com.macrofocus.geom.ShapegetLeafScreenShape(N node) getModel()Returns the TreePlotModel that provides the data displayed by this TreePlotView.getNode(com.macrofocus.geom.Point p) Returns the node at the specified location on the screen.getNodes(com.macrofocus.geom.Rectangle rect) Returns the nodes overlapping the specified rectangle.getPaint(N node, com.macrofocus.geom.Shape shape, com.macrofocus.geom.Rectangle bounds, boolean allowGradientPaint) com.macrofocus.geom.ShapegetRenderedShape(N node) com.macrofocus.rubberband.RubberBandcom.macrofocus.geom.RectanglegetScreenBounds(N node) com.macrofocus.geom.ShapegetScreenShape(N node) Returns the shape of the node according to its layout position in screen coordinates.com.macrofocus.geom.PointgetToolTipPreferredLocation(N node) com.macrofocus.geom.Rectangle2DgetWorld()floatbooleanisDirty()booleanReturns whether information about refresh rate should be displayed.voidrepaint()protected abstract voidrepaint(long delay) protected voidprotected voidprotected abstract voidsetBackground(com.macrofocus.igraphics.CPColor<Color> background) voidsetDirty(boolean dirty) voidvoidSets the data model and registers with it for listener notifications from the new data model.voidsetSelectionToolTip(TreeMapToolTip<N, Row, Column, Color, Font> tooltip) voidsetShowTiming(boolean showTiming) Sets whether information about refresh rate should be displayed.voidsetToolTip(TreeMapToolTip<N, Row, Column, Color, Font> tooltip) voidzoom(double x1, double x2, double y1, double y2) voidzoomIn()voidzoomOut()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.treemap.treeplot.TreePlotView
addContextMenuListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, getHeight, getNativeComponent, getSize, getWidth
-
Field Details
-
model
-
probingToolTip
-
selectionToolTip
-
xGuide
-
yGuide
-
xRangeModel
-
yRangeModel
-
screenTransform
protected final com.macrofocus.transform.twod.MutableTwoDScreenTransform screenTransform -
shapes
-
-
Constructor Details
-
AbstractTreePlotView
-
-
Method Details
-
getModel
Returns the TreePlotModel that provides the data displayed by this TreePlotView. -
getPaint
-
getXGuide
-
getYGuide
-
getXRangeModel
- Specified by:
getXRangeModelin interfaceTreePlotView<C,N, Row, Column, Color, Font>
-
getYRangeModel
- Specified by:
getYRangeModelin interfaceTreePlotView<C,N, Row, Column, Color, Font>
-
getXCoordinateAxis
- Specified by:
getXCoordinateAxisin interfaceTreePlotView<C,N, Row, Column, Color, Font>
-
getYCoordinateAxis
- Specified by:
getYCoordinateAxisin interfaceTreePlotView<C,N, Row, Column, Color, Font>
-
zoom
public void zoom(double x1, double x2, double y1, double y2) -
resetXAxis
protected void resetXAxis() -
resetYAxis
protected void resetYAxis() -
getZoomFactor
public float getZoomFactor()- Specified by:
getZoomFactorin interfaceTreePlotView<C,N, Row, Column, Color, Font>
-
isShowTiming
public boolean isShowTiming()Returns whether information about refresh rate should be displayed.- Specified by:
isShowTimingin interfaceTreePlotView<C,N, Row, Column, Color, Font> - Returns:
- true to display refresh rate information, false otherwise
-
setShowTiming
public void setShowTiming(boolean showTiming) Sets whether information about refresh rate should be displayed.- Specified by:
setShowTimingin interfaceTreePlotView<C,N, Row, Column, Color, Font> - Parameters:
showTiming- true to display refresh rate information, false otherwise
-
setModel
Sets the data model and registers with it for listener notifications from the new data model. -
getTooltipRenderer
- Specified by:
getTooltipRendererin interfaceTreePlotView<C,N, Row, Column, Color, Font>
-
getToolTipPreferredLocation
- Specified by:
getToolTipPreferredLocationin interfaceTreePlotView<C,N, Row, Column, Color, Font>
-
addProgressiveRenderer
- Specified by:
addProgressiveRendererin interfaceTreePlotView<C,N, Row, Column, Color, Font>
-
addRenderer
- Specified by:
addRendererin interfaceTreePlotView<C,N, Row, Column, Color, Font>
-
getProgressiveRenderers
- Specified by:
getProgressiveRenderersin interfaceTreePlotView<C,N, Row, Column, Color, Font>
-
getRenderers
- Specified by:
getRenderersin interfaceTreePlotView<C,N, Row, Column, Color, Font>
-
getScreenShape
Returns the shape of the node according to its layout position in screen coordinates.- Specified by:
getScreenShapein interfaceTreePlotView<C,N, Row, Column, Color, Font> - Parameters:
node- the node- Returns:
- the shape of the node
-
getLeafScreenShape
-
getRenderedShape
- Specified by:
getRenderedShapein interfaceTreePlotView<C,N, Row, Column, Color, Font>
-
getScreenBounds
- Specified by:
getScreenBoundsin interfaceTreePlotView<C,N, Row, Column, Color, Font>
-
getNode
Returns the node at the specified location on the screen. -
getNodes
Returns the nodes overlapping the specified rectangle. -
setDirty
public void setDirty(boolean dirty) -
isDirty
public boolean isDirty() -
setDirtyShapes
public void setDirtyShapes()- Specified by:
setDirtyShapesin interfaceTreePlotView<C,N, Row, Column, Color, Font>
-
getToolTip
- Specified by:
getToolTipin interfaceTreePlotView<C,N, Row, Column, Color, Font>
-
setToolTip
- Specified by:
setToolTipin interfaceTreePlotView<C,N, Row, Column, Color, Font>
-
getSelectionToolTip
- Specified by:
getSelectionToolTipin interfaceTreePlotView<C,N, Row, Column, Color, Font>
-
setSelectionToolTip
- Specified by:
setSelectionToolTipin interfaceTreePlotView<C,N, Row, Column, Color, Font>
-
repaint
public void repaint() -
repaint
protected abstract void repaint(long delay) -
setBackground
-
getRubberBand
public com.macrofocus.rubberband.RubberBand getRubberBand()- Specified by:
getRubberBandin interfaceTreePlotView<C,N, Row, Column, Color, Font>
-
getHeadless
- Specified by:
getHeadlessin interfaceTreePlotView<C,N, Row, Column, Color, Font>
-
getBoundingMode
- Specified by:
getBoundingModein interfaceTreePlotView<C,N, Row, Column, Color, Font>
-
getWorld
public com.macrofocus.geom.Rectangle2D getWorld() -
drill
public void drill(int x, int y) -
drillDown
public void drillDown() -
drillUp
public void drillUp() -
zoomIn
public void zoomIn() -
zoomOut
public void zoomOut()
-