# AbstractTreeMapView

abstract class AbstractTreeMapView<N, Row, Column>(val headless: Headless) : TreeMapView<N, Row, Column>

This class provides a skeletal implementation of the TreeMapView interface to minimize the effort required to implement this interface.

#### Inheritors

DefaultTreeMapView

## Constructors

AbstractTreeMapView
Link copied to clipboard
constructor(headless: Headless)

## Properties

background
Link copied to clipboard
abstract val background: MkColor?
component
Link copied to clipboard
abstract val component: CPComponent
headerRenderer
Link copied to clipboard
open override var headerRenderer: TreeMapHeaderRenderer<N, Row, Column>?
headless
Link copied to clipboard
open override val headless: Headless
image
Link copied to clipboard
abstract val image: CPImage?

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.

isDirty
Link copied to clipboard
open override var isDirty: Boolean
isSelectionMode
Link copied to clipboard
open override var isSelectionMode: Boolean
isShowTiming
Link copied to clipboard
open override var isShowTiming: Boolean

Returns whether information about refresh rate should be displayed.

isUpdateModelDimension
Link copied to clipboard
open override var isUpdateModelDimension: Boolean

Returns whether change in the view dimension should be reflected in the model.

labelRenderer
Link copied to clipboard
open override var labelRenderer: TreeMapLabelRenderer<N, Row, Column>?
model
Link copied to clipboard
open override var model: TreeMapModel<N, Row, Column>?

Sets the data model and registers with it for listener notifications from the new data model.

postRenderers
Link copied to clipboard
override val postRenderers: MutableList<TreeMapRenderer<N, Row, Column>>
preProgressiveRenderers
Link copied to clipboard
override val preProgressiveRenderers: MutableList<TreeMapRenderer<N, Row, Column>>
preRenderers
Link copied to clipboard
override val preRenderers: MutableList<TreeMapRenderer<N, Row, Column>>
probingListener
Link copied to clipboard
val probingListener: SingleSelectionListener<N?>
progressive
Link copied to clipboard
open override var progressive: Progressive

Returns whether progressive display mode is enabled.

progressiveRenderers
Link copied to clipboard
override val progressiveRenderers: MutableList<TreeMapRenderer<N, Row, Column>>
rubberBand
Link copied to clipboard
override val rubberBand: RubberBand
screenTransform
Link copied to clipboard
override val screenTransform: MutableTwoDScreenTransform
selectionListener
Link copied to clipboard
val selectionListener: SelectionListener<N>
selectionToolTip
Link copied to clipboard
open override var selectionToolTip: TreeMapToolTip<N, Row, Column>?

Sets the tooltip used for selection.

size
Link copied to clipboard
abstract var size: Dimension
toolTip
Link copied to clipboard
open override var toolTip: TreeMapToolTip<N, Row, Column>?

Sets the tooltip used for probing (aka mouse over).

tooltipRenderer
Link copied to clipboard
open override var tooltipRenderer: TreeMapTooltipRenderer<N, Row, Column>?
viewport
Link copied to clipboard
open override val viewport: Rectangle2D
world
Link copied to clipboard
open override val world: Rectangle2D
xRangeModel
Link copied to clipboard
override val xRangeModel: MutableBoundedInterval
yRangeModel
Link copied to clipboard
override val yRangeModel: MutableBoundedInterval
zoomFactor
Link copied to clipboard
open override val zoomFactor: Float

## Functions

addContextMenuListener
Link copied to clipboard
abstract fun addContextMenuListener(l: ContextMenuListener)
addKeyListener
Link copied to clipboard
abstract fun addKeyListener(listener: KeyListener)
addMouseListener
Link copied to clipboard
abstract fun addMouseListener(l: MouseListener)
addMouseMotionListener
Link copied to clipboard
abstract fun addMouseMotionListener(l: MouseMotionListener)
addMouseWheelListener
Link copied to clipboard
abstract fun addMouseWheelListener(l: MouseWheelListener)
contains
Link copied to clipboard
open override fun contains(p: Point, shape: Shape): Boolean
drill
Link copied to clipboard
open override fun drill(x: Int, y: Int)
drillDown
Link copied to clipboard
open override fun drillDown()
drillUp
Link copied to clipboard
open override fun drillUp()
getNode
Link copied to clipboard
open override fun getNode(p: Point?): N?

{@inheritDoc}

getNodes
Link copied to clipboard
open override fun getNodes(rect: Rectangle?): List<N>?

{@inheritDoc}

getRenderedShape
Link copied to clipboard
open override fun getRenderedShape(node: N): Shape

{@inheritDoc}

getToolTipImage
Link copied to clipboard
abstract fun getToolTipImage(node: N): CPImage?

Creates a new image and render the tooltip used for probing into it.

getToolTipPreferredLocation
Link copied to clipboard
abstract fun getToolTipPreferredLocation(node: N): Point?

Returns the preferred location of the probing tooltip for the specified node.

repaint
Link copied to clipboard
open override fun repaint()
screenToWorldX
Link copied to clipboard
open override fun screenToWorldX(x: Int): Double

{@inheritDoc}

screenToWorldY
Link copied to clipboard
open override fun screenToWorldY(y: Int): Double

{@inheritDoc}

setDirty
Link copied to clipboard
fun setDirty()
setDirtyShapes
Link copied to clipboard
fun setDirtyShapes()
setLicenseModel
Link copied to clipboard
abstract fun setLicenseModel(licenseModel: LicenseModel?)
updateModelDimension
Link copied to clipboard
abstract fun updateModelDimension()
waitUntilReady
Link copied to clipboard
abstract fun waitUntilReady()

Wait until all processing are completed.

worldToScreen
Link copied to clipboard
open override fun worldToScreen(node: N?): Shape?

{@inheritDoc}

open override fun worldToScreen(shape: Shape): Shape
worldToScreenPrecise
Link copied to clipboard
open override fun worldToScreenPrecise(r: Rectangle2D): Rectangle2D

{@inheritDoc}

worldToScreenRectangle
Link copied to clipboard
open override fun worldToScreenRectangle(rectangle: Rectangle2D): Rectangle

{@inheritDoc}

worldToScreenX
Link copied to clipboard
open override fun worldToScreenX(x: Double): Int

{@inheritDoc}

worldToScreenY
Link copied to clipboard
open override fun worldToScreenY(y: Double): Int

{@inheritDoc}

zoom
Link copied to clipboard
open override fun zoom(animate: Boolean, x1: Double, x2: Double, y1: Double, y2: Double)

{@inheritDoc}

zoomIn
Link copied to clipboard
open override fun zoomIn()
zoomOut
Link copied to clipboard
open override fun zoomOut()