# TreeMapView

interface TreeMapView<N, Row, Column>

Main interface for the view part of TreeMap.

#### Parameters

the type of columns

#### Inheritors

AbstractTreeMapView

## Types

Companion
Link copied to clipboard
object Companion

## Properties

background
Link copied to clipboard
abstract val background: MkColor?
component
Link copied to clipboard
abstract val component: CPComponent
headerRenderer
Link copied to clipboard
abstract var headerRenderer: TreeMapHeaderRenderer<N, Row, Column>?
headless
Link copied to clipboard
abstract 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
abstract var isDirty: Boolean
isSelectionMode
Link copied to clipboard
abstract var isSelectionMode: Boolean
isShowTiming
Link copied to clipboard
abstract var isShowTiming: Boolean

Sets whether information about refresh rate should be displayed.

isUpdateModelDimension
Link copied to clipboard
abstract var isUpdateModelDimension: Boolean

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

labelRenderer
Link copied to clipboard
abstract var labelRenderer: TreeMapLabelRenderer<N, Row, Column>?
model
Link copied to clipboard
abstract 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
abstract val postRenderers: Iterable<TreeMapRenderer<N, Row, Column>>
preProgressiveRenderers
Link copied to clipboard
abstract val preProgressiveRenderers: Iterable<TreeMapRenderer<N, Row, Column>>
preRenderers
Link copied to clipboard
abstract val preRenderers: Iterable<TreeMapRenderer<N, Row, Column>>
progressive
Link copied to clipboard
abstract var progressive: Progressive

Sets whether progressive display mode is enabled.

progressiveRenderers
Link copied to clipboard
abstract val progressiveRenderers: Iterable<TreeMapRenderer<N, Row, Column>>
rubberBand
Link copied to clipboard
abstract val rubberBand: RubberBand
screenTransform
Link copied to clipboard
abstract val screenTransform: TwoDScreenTransform
selectionToolTip
Link copied to clipboard
abstract 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
abstract var toolTip: TreeMapToolTip<N, Row, Column>?

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

tooltipRenderer
Link copied to clipboard
abstract var tooltipRenderer: TreeMapTooltipRenderer<N, Row, Column>?
viewport
Link copied to clipboard
abstract val viewport: Rectangle2D
world
Link copied to clipboard
abstract val world: Rectangle2D
xRangeModel
Link copied to clipboard
abstract val xRangeModel: MutableBoundedInterval
yRangeModel
Link copied to clipboard
abstract val yRangeModel: MutableBoundedInterval
zoomFactor
Link copied to clipboard
abstract 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
abstract fun contains(p: Point, shape: Shape): Boolean
drill
Link copied to clipboard
abstract fun drill(x: Int, y: Int)
drillDown
Link copied to clipboard
abstract fun drillDown()
drillUp
Link copied to clipboard
abstract fun drillUp()
getNode
Link copied to clipboard
abstract fun getNode(p: Point?): N?

Returns the node at the specified location on the screen.

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

Returns the nodes overlapping the specified rectangle.

getRenderedShape
Link copied to clipboard
abstract fun getRenderedShape(node: N): Shape?

Returns the shape of the node according to its rendered position in screen coordinates.

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
abstract fun repaint()
screenToWorldX
Link copied to clipboard
abstract fun screenToWorldX(x: Int): Double
screenToWorldY
Link copied to clipboard
abstract fun screenToWorldY(y: Int): Double
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
abstract fun worldToScreen(node: N?): Shape?

Returns the shape of the node according to its layout position in screen coordinates.

abstract fun worldToScreen(shape: Shape): Shape
worldToScreenPrecise
Link copied to clipboard
abstract fun worldToScreenPrecise(rectangle: Rectangle2D): Rectangle2D

Convert the specified rectangle to screen coordinates.

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

Convert the specified rectangle to screen coordinates.

worldToScreenX
Link copied to clipboard
abstract fun worldToScreenX(x: Double): Int
worldToScreenY
Link copied to clipboard
abstract fun worldToScreenY(y: Double): Int
zoom
Link copied to clipboard
abstract fun zoom(animate: Boolean, x1: Double, x2: Double, y1: Double, y2: Double)
zoomIn
Link copied to clipboard
abstract fun zoomIn()
zoomOut
Link copied to clipboard
abstract fun zoomOut()