Liking cljdoc? Tell your friends :D

jdk.awt.LayoutManager2

Defines an interface for classes that know how to layout Containers based on a layout constraints object.

This interface extends the LayoutManager interface to deal with layouts explicitly in terms of constraint objects that specify how and where components should be added to the layout.

This minimal extension to LayoutManager is intended for tool providers who wish to the creation of constraint-based layouts. It does not yet provide full, general support for custom constraint-based layout managers.

Defines an interface for classes that know how to layout Containers
based on a layout constraints object.

This interface extends the LayoutManager interface to deal with layouts
explicitly in terms of constraint objects that specify how and where
components should be added to the layout.

This minimal extension to LayoutManager is intended for tool
providers who wish to the creation of constraint-based layouts.
It does not yet provide full, general support for custom
constraint-based layout managers.
raw docstring

add-layout-componentclj

(add-layout-component this comp constraints)

Adds the specified component to the layout, using the specified constraint object.

comp - the component to be added - java.awt.Component constraints - where/how the component is added to the layout. - java.lang.Object

Adds the specified component to the layout, using the specified
 constraint object.

comp - the component to be added - `java.awt.Component`
constraints - where/how the component is added to the layout. - `java.lang.Object`
raw docstring

get-layout-alignment-xclj

(get-layout-alignment-x this target)

Returns the alignment along the x axis. This specifies how the component would like to be aligned relative to other components. The value should be a number between 0 and 1 where 0 represents alignment along the origin, 1 is aligned the furthest away from the origin, 0.5 is centered, etc.

target - java.awt.Container

returns: float

Returns the alignment along the x axis.  This specifies how
 the component would like to be aligned relative to other
 components.  The value should be a number between 0 and 1
 where 0 represents alignment along the origin, 1 is aligned
 the furthest away from the origin, 0.5 is centered, etc.

target - `java.awt.Container`

returns: `float`
raw docstring

get-layout-alignment-yclj

(get-layout-alignment-y this target)

Returns the alignment along the y axis. This specifies how the component would like to be aligned relative to other components. The value should be a number between 0 and 1 where 0 represents alignment along the origin, 1 is aligned the furthest away from the origin, 0.5 is centered, etc.

target - java.awt.Container

returns: float

Returns the alignment along the y axis.  This specifies how
 the component would like to be aligned relative to other
 components.  The value should be a number between 0 and 1
 where 0 represents alignment along the origin, 1 is aligned
 the furthest away from the origin, 0.5 is centered, etc.

target - `java.awt.Container`

returns: `float`
raw docstring

invalidate-layoutclj

(invalidate-layout this target)

Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.

target - java.awt.Container

Invalidates the layout, indicating that if the layout manager
 has cached information it should be discarded.

target - `java.awt.Container`
raw docstring

maximum-layout-sizeclj

(maximum-layout-size this target)

Calculates the maximum size dimensions for the specified container, given the components it contains.

target - java.awt.Container

returns: java.awt.Dimension

Calculates the maximum size dimensions for the specified container,
 given the components it contains.

target - `java.awt.Container`

returns: `java.awt.Dimension`
raw docstring

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

× close