Liking cljdoc? Tell your friends :D

javax.swing.plaf.metal.MetalTreeUI

The metal look and feel implementation of TreeUI.

MetalTreeUI allows for configuring how to visually render the spacing and delineation between nodes. The following hints are supported:

Angled A line is drawn connecting the child to the parent. For handling of the root node refer to JTree.setRootVisible(boolean) and JTree.setShowsRootHandles(boolean).

Horizontal
A horizontal line is drawn dividing the children of the root node.


 None
 Do not draw any visual indication between nodes.

As it is typically impractical to obtain the TreeUI from the JTree and cast to an instance of MetalTreeUI you enable this property via the client property JTree.lineStyle. For example, to switch to Horizontal style you would do: tree.putClientProperty("JTree.lineStyle", "Horizontal");

The default is Angled.

The metal look and feel implementation of TreeUI.

MetalTreeUI allows for configuring how to
visually render the spacing and delineation between nodes. The following
hints are supported:



   Angled
   A line is drawn connecting the child to the parent. For handling
         of the root node refer to
         JTree.setRootVisible(boolean) and
         JTree.setShowsRootHandles(boolean).



    Horizontal
    A horizontal line is drawn dividing the children of the root node.


     None
     Do not draw any visual indication between nodes.




As it is typically impractical to obtain the TreeUI from
the JTree and cast to an instance of MetalTreeUI
you enable this property via the client property
JTree.lineStyle. For example, to switch to
Horizontal style you would do:
tree.putClientProperty("JTree.lineStyle", "Horizontal");

The default is Angled.
raw docstring

*create-uiclj

(*create-ui x)

x - javax.swing.JComponent

returns: javax.swing.plaf.ComponentUI

x - `javax.swing.JComponent`

returns: `javax.swing.plaf.ComponentUI`
raw docstring

->metal-tree-uiclj

(->metal-tree-ui)

Constructor.

Constructor.
raw docstring

install-uiclj

(install-ui this c)

Description copied from class: ComponentUI

c - the component where this UI delegate is being installed - javax.swing.JComponent

Description copied from class: ComponentUI

c - the component where this UI delegate is being installed - `javax.swing.JComponent`
raw docstring

paintclj

(paint this g c)

Description copied from class: ComponentUI

g - the Graphics context in which to paint - java.awt.Graphics c - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - javax.swing.JComponent

Description copied from class: ComponentUI

g - the Graphics context in which to paint - `java.awt.Graphics`
c - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - `javax.swing.JComponent`
raw docstring

uninstall-uiclj

(uninstall-ui this c)

Description copied from class: ComponentUI

c - the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - javax.swing.JComponent

Description copied from class: ComponentUI

c - the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - `javax.swing.JComponent`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close