Defines the interface for classes that know how to lay out Containers.
Swing's painting architecture assumes the children of a JComponent do not overlap. If a JComponent's LayoutManager allows children to overlap, the JComponent must override isOptimizedDrawingEnabled to return false.
Defines the interface for classes that know how to lay out Containers. Swing's painting architecture assumes the children of a JComponent do not overlap. If a JComponent's LayoutManager allows children to overlap, the JComponent must override isOptimizedDrawingEnabled to return false.
(add-layout-component this name comp)
If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name.
name - the string to be associated with the component - java.lang.String
comp - the component to be added - java.awt.Component
If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name. name - the string to be associated with the component - `java.lang.String` comp - the component to be added - `java.awt.Component`
(layout-container this parent)
Lays out the specified container.
parent - the container to be laid out - java.awt.Container
Lays out the specified container. parent - the container to be laid out - `java.awt.Container`
(minimum-layout-size this parent)
Calculates the minimum size dimensions for the specified container, given the components it contains.
parent - the component to be laid out - java.awt.Container
returns: java.awt.Dimension
Calculates the minimum size dimensions for the specified container, given the components it contains. parent - the component to be laid out - `java.awt.Container` returns: `java.awt.Dimension`
(preferred-layout-size this parent)
Calculates the preferred size dimensions for the specified container, given the components it contains.
parent - the container to be laid out - java.awt.Container
returns: java.awt.Dimension
Calculates the preferred size dimensions for the specified container, given the components it contains. parent - the container to be laid out - `java.awt.Container` returns: `java.awt.Dimension`
(remove-layout-component this comp)
Removes the specified component from the layout.
comp - the component to be removed - java.awt.Component
Removes the specified component from the layout. comp - the component to be removed - `java.awt.Component`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close