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:
JavaFXTreePlotView
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 TreeMapToolTip
protected final com.macrofocus.transform.twod.MutableTwoDScreenTransform
protected TreeMapToolTip
protected final MutableBoundedInterval
protected final MutableBoundedInterval
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProgressiveRenderer
(TreePlotRenderer renderer) void
addRenderer
(TreePlotRenderer renderer) void
drill
(int x, int y) void
void
drillUp()
com.macrofocus.geom.Shape
getLeafScreenShape
(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.Shape
getRenderedShape
(N node) com.macrofocus.rubberband.RubberBand
com.macrofocus.geom.Rectangle
getScreenBounds
(N node) com.macrofocus.geom.Shape
getScreenShape
(N node) Returns the shape of the node according to its layout position in screen coordinates.com.macrofocus.geom.Point
getToolTipPreferredLocation
(N node) com.macrofocus.geom.Rectangle2D
getWorld()
float
boolean
isDirty()
boolean
Returns whether information about refresh rate should be displayed.void
repaint()
protected abstract void
repaint
(long delay) protected void
protected void
protected abstract void
setBackground
(com.macrofocus.igraphics.CPColor<Color> background) void
setDirty
(boolean dirty) void
void
Sets the data model and registers with it for listener notifications from the new data model.void
setSelectionToolTip
(TreeMapToolTip<N, Row, Column, Color, Font> tooltip) void
setShowTiming
(boolean showTiming) Sets whether information about refresh rate should be displayed.void
setToolTip
(TreeMapToolTip<N, Row, Column, Color, Font> tooltip) void
zoom
(double x1, double x2, double y1, double y2) void
zoomIn()
void
zoomOut()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getXRangeModel
in interfaceTreePlotView<C,
N, Row, Column, Color, Font>
-
getYRangeModel
- Specified by:
getYRangeModel
in interfaceTreePlotView<C,
N, Row, Column, Color, Font>
-
getXCoordinateAxis
- Specified by:
getXCoordinateAxis
in interfaceTreePlotView<C,
N, Row, Column, Color, Font>
-
getYCoordinateAxis
- Specified by:
getYCoordinateAxis
in 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:
getZoomFactor
in interfaceTreePlotView<C,
N, Row, Column, Color, Font>
-
isShowTiming
public boolean isShowTiming()Returns whether information about refresh rate should be displayed.- Specified by:
isShowTiming
in 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:
setShowTiming
in 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:
getTooltipRenderer
in interfaceTreePlotView<C,
N, Row, Column, Color, Font>
-
getToolTipPreferredLocation
- Specified by:
getToolTipPreferredLocation
in interfaceTreePlotView<C,
N, Row, Column, Color, Font>
-
addProgressiveRenderer
- Specified by:
addProgressiveRenderer
in interfaceTreePlotView<C,
N, Row, Column, Color, Font>
-
addRenderer
- Specified by:
addRenderer
in interfaceTreePlotView<C,
N, Row, Column, Color, Font>
-
getProgressiveRenderers
- Specified by:
getProgressiveRenderers
in interfaceTreePlotView<C,
N, Row, Column, Color, Font>
-
getRenderers
- Specified by:
getRenderers
in interfaceTreePlotView<C,
N, Row, Column, Color, Font>
-
getScreenShape
Returns the shape of the node according to its layout position in screen coordinates.- Specified by:
getScreenShape
in interfaceTreePlotView<C,
N, Row, Column, Color, Font> - Parameters:
node
- the node- Returns:
- the shape of the node
-
getLeafScreenShape
-
getRenderedShape
- Specified by:
getRenderedShape
in interfaceTreePlotView<C,
N, Row, Column, Color, Font>
-
getScreenBounds
- Specified by:
getScreenBounds
in 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:
setDirtyShapes
in interfaceTreePlotView<C,
N, Row, Column, Color, Font>
-
getToolTip
- Specified by:
getToolTip
in interfaceTreePlotView<C,
N, Row, Column, Color, Font>
-
setToolTip
- Specified by:
setToolTip
in interfaceTreePlotView<C,
N, Row, Column, Color, Font>
-
getSelectionToolTip
- Specified by:
getSelectionToolTip
in interfaceTreePlotView<C,
N, Row, Column, Color, Font>
-
setSelectionToolTip
- Specified by:
setSelectionToolTip
in 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:
getRubberBand
in interfaceTreePlotView<C,
N, Row, Column, Color, Font>
-
getHeadless
- Specified by:
getHeadless
in interfaceTreePlotView<C,
N, Row, Column, Color, Font>
-
getBoundingMode
- Specified by:
getBoundingMode
in 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()
-