Liking cljdoc? Tell your friends :D

javax.swing.text.FlowView

A View that tries to flow it's children into some partially constrained space. This can be used to build things like paragraphs, pages, etc. The flow is made up of the following pieces of functionality.

A logical set of child views, which as used as a layout pool from which a physical view is formed. A strategy for translating the logical view to a physical (flowed) view. Constraints for the strategy to work against. A physical structure, that represents the flow. The children of this view are where the pieces of of the logical views are placed to create the flow.

A View that tries to flow it's children into some
partially constrained space.  This can be used to
build things like paragraphs, pages, etc.  The
flow is made up of the following pieces of functionality.

A logical set of child views, which as used as a
layout pool from which a physical view is formed.
A strategy for translating the logical view to
a physical (flowed) view.
Constraints for the strategy to work against.
A physical structure, that represents the flow.
The children of this view are where the pieces of
of the logical views are placed to create the flow.
raw docstring

->flow-viewclj

(->flow-view elem axis)

Constructor.

Constructs a FlowView for the given element.

elem - the element that this view is responsible for - javax.swing.text.Element axis - may be either View.X_AXIS or View.Y_AXIS - int

Constructor.

Constructs a FlowView for the given element.

elem - the element that this view is responsible for - `javax.swing.text.Element`
axis - may be either View.X_AXIS or View.Y_AXIS - `int`
raw docstring

changed-updateclj

(changed-update this changes a f)

Gives notification from the document that attributes were changed in a location that this view is responsible for.

changes - the change information from the associated document - javax.swing.event.DocumentEvent a - the current allocation of the view - java.awt.Shape f - the factory to use to rebuild if the view has children - javax.swing.text.ViewFactory

Gives notification from the document that attributes were changed
 in a location that this view is responsible for.

changes - the change information from the associated document - `javax.swing.event.DocumentEvent`
a - the current allocation of the view - `java.awt.Shape`
f - the factory to use to rebuild if the view has children - `javax.swing.text.ViewFactory`
raw docstring

get-flow-axisclj

(get-flow-axis this)

Fetches the axis along which views should be flowed. By default, this will be the axis orthogonal to the axis along which the flow rows are tiled (the axis of the default flow rows themselves). This is typically used by the FlowStrategy.

returns: int

Fetches the axis along which views should be
 flowed.  By default, this will be the axis
 orthogonal to the axis along which the flow
 rows are tiled (the axis of the default flow
 rows themselves).  This is typically used
 by the FlowStrategy.

returns: `int`
raw docstring

get-flow-spanclj

(get-flow-span this index)

Fetch the constraining span to flow against for the given child index. This is called by the FlowStrategy while it is updating the flow. A flow can be shaped by providing different values for the row constraints. By default, the entire span inside of the insets along the flow axis is returned.

index - the index of the row being updated. This should be a value >= 0 and < getViewCount(). - int

returns: int

Fetch the constraining span to flow against for
 the given child index.  This is called by the
 FlowStrategy while it is updating the flow.
 A flow can be shaped by providing different values
 for the row constraints.  By default, the entire
 span inside of the insets along the flow axis
 is returned.

index - the index of the row being updated. This should be a value >= 0 and < getViewCount(). - `int`

returns: `int`
raw docstring

get-flow-startclj

(get-flow-start this index)

Fetch the location along the flow axis that the flow span will start at. This is called by the FlowStrategy while it is updating the flow. A flow can be shaped by providing different values for the row constraints.

index - the index of the row being updated. This should be a value >= 0 and < getViewCount(). - int

returns: int

Fetch the location along the flow axis that the
 flow span will start at.  This is called by the
 FlowStrategy while it is updating the flow.
 A flow can be shaped by providing different values
 for the row constraints.

index - the index of the row being updated. This should be a value >= 0 and < getViewCount(). - `int`

returns: `int`
raw docstring

insert-updateclj

(insert-update this changes a f)

Gives notification that something was inserted into the document in a location that this view is responsible for.

changes - the change information from the associated document - javax.swing.event.DocumentEvent a - the current allocation of the view - java.awt.Shape f - the factory to use to rebuild if the view has children - javax.swing.text.ViewFactory

Gives notification that something was inserted into the document
 in a location that this view is responsible for.

changes - the change information from the associated document - `javax.swing.event.DocumentEvent`
a - the current allocation of the view - `java.awt.Shape`
f - the factory to use to rebuild if the view has children - `javax.swing.text.ViewFactory`
raw docstring

remove-updateclj

(remove-update this changes a f)

Gives notification that something was removed from the document in a location that this view is responsible for.

changes - the change information from the associated document - javax.swing.event.DocumentEvent a - the current allocation of the view - java.awt.Shape f - the factory to use to rebuild if the view has children - javax.swing.text.ViewFactory

Gives notification that something was removed from the document
 in a location that this view is responsible for.

changes - the change information from the associated document - `javax.swing.event.DocumentEvent`
a - the current allocation of the view - `java.awt.Shape`
f - the factory to use to rebuild if the view has children - `javax.swing.text.ViewFactory`
raw docstring

set-parentclj

(set-parent this parent)

Sets the parent of the view. This is reimplemented to provide the superclass behavior as well as calling the loadChildren method if this view does not already have children. The children should not be loaded in the constructor because the act of setting the parent may cause them to try to search up the hierarchy (to get the hosting Container for example). If this view has children (the view is being moved from one place in the view hierarchy to another), the loadChildren method will not be called.

parent - the parent of the view, null if none - javax.swing.text.View

Sets the parent of the view.
 This is reimplemented to provide the superclass
 behavior as well as calling the loadChildren
 method if this view does not already have children.
 The children should not be loaded in the
 constructor because the act of setting the parent
 may cause them to try to search up the hierarchy
 (to get the hosting Container for example).
 If this view has children (the view is being moved
 from one place in the view hierarchy to another),
 the loadChildren method will not be called.

parent - the parent of the view, null if none - `javax.swing.text.View`
raw docstring

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

× close