Liking cljdoc? Tell your friends :D

javax.swing.RepaintManager

This class manages repaint requests, allowing the number of repaints to be minimized, for example by collapsing multiple requests into a single repaint for members of a component tree.

As of 1.6 RepaintManager handles repaint requests for Swing's top level components (JApplet, JWindow, JFrame and JDialog). Any calls to repaint on one of these will call into the appropriate addDirtyRegion method.

This class manages repaint requests, allowing the number
of repaints to be minimized, for example by collapsing multiple
requests into a single repaint for members of a component tree.

As of 1.6 RepaintManager handles repaint requests
for Swing's top level components (JApplet,
JWindow, JFrame and JDialog).
Any calls to repaint on one of these will call into the
appropriate addDirtyRegion method.
raw docstring

*current-managerclj

(*current-manager c)

Return the RepaintManager for the calling thread given a Component.

c - a Component -- unused in the default implementation, but could be used by an overridden version to return a different RepaintManager depending on the Component - java.awt.Component

returns: the RepaintManager object - javax.swing.RepaintManager

Return the RepaintManager for the calling thread given a Component.

c - a Component -- unused in the default implementation, but could be used by an overridden version to return a different RepaintManager depending on the Component - `java.awt.Component`

returns: the RepaintManager object - `javax.swing.RepaintManager`
raw docstring

*set-current-managerclj

(*set-current-manager a-repaint-manager)

Set the RepaintManager that should be used for the calling thread. aRepaintManager will become the current RepaintManager for the calling thread's thread group.

a-repaint-manager - the RepaintManager object to use - javax.swing.RepaintManager

Set the RepaintManager that should be used for the calling
 thread. aRepaintManager will become the current RepaintManager
 for the calling thread's thread group.

a-repaint-manager - the RepaintManager object to use - `javax.swing.RepaintManager`
raw docstring

->repaint-managerclj

(->repaint-manager)

Constructor.

Create a new RepaintManager instance. You rarely call this constructor. directly. To get the default RepaintManager, use RepaintManager.currentManager(JComponent) (normally "this").

Constructor.

Create a new RepaintManager instance. You rarely call this constructor.
 directly. To get the default RepaintManager, use
 RepaintManager.currentManager(JComponent) (normally "this").
raw docstring

add-dirty-regionclj

(add-dirty-region this c x y w h)

Add a component in the list of components that should be refreshed. If c already has a dirty region, the rectangle (x,y,w,h) will be unioned with the region that should be redrawn.

c - Component to repaint, null results in nothing happening. - javax.swing.JComponent x - X coordinate of the region to repaint - int y - Y coordinate of the region to repaint - int w - Width of the region to repaint - int h - Height of the region to repaint - int

Add a component in the list of components that should be refreshed.
 If c already has a dirty region, the rectangle (x,y,w,h)
 will be unioned with the region that should be redrawn.

c - Component to repaint, null results in nothing happening. - `javax.swing.JComponent`
x - X coordinate of the region to repaint - `int`
y - Y coordinate of the region to repaint - `int`
w - Width of the region to repaint - `int`
h - Height of the region to repaint - `int`
raw docstring

add-invalid-componentclj

(add-invalid-component this invalid-component)

Mark the component as in need of layout and queue a runnable for the event dispatching thread that will validate the components first isValidateRoot() ancestor.

invalid-component - javax.swing.JComponent

Mark the component as in need of layout and queue a runnable
 for the event dispatching thread that will validate the components
 first isValidateRoot() ancestor.

invalid-component - `javax.swing.JComponent`
raw docstring

completely-dirty?clj

(completely-dirty? this a-component)

Convenience method that returns true if aComponent will be completely painted during the next paintDirtyRegions(). If computing dirty regions is expensive for your component, use this method and avoid computing dirty region if it return true.

a-component - javax.swing.JComponent

returns: boolean

Convenience method that returns true if aComponent will be completely
 painted during the next paintDirtyRegions(). If computing dirty regions is
 expensive for your component, use this method and avoid computing dirty region
 if it return true.

a-component - `javax.swing.JComponent`

returns: `boolean`
raw docstring

double-buffering-enabled?clj

(double-buffering-enabled? this)

Returns true if this RepaintManager is double buffered. The default value for this property may vary from platform to platform. On platforms where native double buffering is supported in the AWT, the default value will be false to avoid unnecessary buffering in Swing. On platforms where native double buffering is not supported, the default value will be true.

returns: true if this object is double buffered - boolean

Returns true if this RepaintManager is double buffered.
 The default value for this property may vary from platform
 to platform.  On platforms where native double buffering
 is supported in the AWT, the default value will be false
 to avoid unnecessary buffering in Swing.
 On platforms where native double buffering is not supported,
 the default value will be true.

returns: true if this object is double buffered - `boolean`
raw docstring

get-dirty-regionclj

(get-dirty-region this a-component)

Return the current dirty region for a component. Return an empty rectangle if the component is not dirty.

a-component - javax.swing.JComponent

returns: java.awt.Rectangle

Return the current dirty region for a component.
  Return an empty rectangle if the component is not
  dirty.

a-component - `javax.swing.JComponent`

returns: `java.awt.Rectangle`
raw docstring

get-double-buffer-maximum-sizeclj

(get-double-buffer-maximum-size this)

Returns the maximum double buffer size.

returns: a Dimension object representing the maximum size - java.awt.Dimension

Returns the maximum double buffer size.

returns: a Dimension object representing the maximum size - `java.awt.Dimension`
raw docstring

get-offscreen-bufferclj

(get-offscreen-buffer this c proposed-width proposed-height)

Return the offscreen buffer that should be used as a double buffer with the component c. By default there is a double buffer per RepaintManager. The buffer might be smaller than (proposedWidth,proposedHeight) This happens when the maximum double buffer size as been set for the receiving repaint manager.

c - java.awt.Component proposed-width - int proposed-height - int

returns: java.awt.Image

Return the offscreen buffer that should be used as a double buffer with
 the component c.
 By default there is a double buffer per RepaintManager.
 The buffer might be smaller than (proposedWidth,proposedHeight)
 This happens when the maximum double buffer size as been set for the receiving
 repaint manager.

c - `java.awt.Component`
proposed-width - `int`
proposed-height - `int`

returns: `java.awt.Image`
raw docstring

get-volatile-offscreen-bufferclj

(get-volatile-offscreen-buffer this c proposed-width proposed-height)

Return a volatile offscreen buffer that should be used as a double buffer with the specified component c. The image returned will be an instance of VolatileImage, or null if a VolatileImage object could not be instantiated. This buffer might be smaller than (proposedWidth,proposedHeight). This happens when the maximum double buffer size has been set for this repaint manager.

c - java.awt.Component proposed-width - int proposed-height - int

returns: java.awt.Image

Return a volatile offscreen buffer that should be used as a
 double buffer with the specified component c.
 The image returned will be an instance of VolatileImage, or null
 if a VolatileImage object could not be instantiated.
 This buffer might be smaller than (proposedWidth,proposedHeight).
 This happens when the maximum double buffer size has been set for this
 repaint manager.

c - `java.awt.Component`
proposed-width - `int`
proposed-height - `int`

returns: `java.awt.Image`
raw docstring

mark-completely-cleanclj

(mark-completely-clean this a-component)

Mark a component completely clean. aComponent will not get painted during the next paintDirtyRegions() call.

a-component - javax.swing.JComponent

Mark a component completely clean. aComponent will not
 get painted during the next paintDirtyRegions() call.

a-component - `javax.swing.JComponent`
raw docstring

mark-completely-dirtyclj

(mark-completely-dirty this a-component)

Mark a component completely dirty. aComponent will be completely painted during the next paintDirtyRegions() call.

a-component - javax.swing.JComponent

Mark a component completely dirty. aComponent will be
 completely painted during the next paintDirtyRegions() call.

a-component - `javax.swing.JComponent`
raw docstring

paint-dirty-regionsclj

(paint-dirty-regions this)

Paint all of the components that have been marked dirty.

Paint all of the components that have been marked dirty.
raw docstring

remove-invalid-componentclj

(remove-invalid-component this component)

Remove a component from the list of invalid components.

component - javax.swing.JComponent

Remove a component from the list of invalid components.

component - `javax.swing.JComponent`
raw docstring

set-double-buffer-maximum-sizeclj

(set-double-buffer-maximum-size this d)

Set the maximum double buffer size.

d - java.awt.Dimension

Set the maximum double buffer size.

d - `java.awt.Dimension`
raw docstring

set-double-buffering-enabledclj

(set-double-buffering-enabled this a-flag)

Enables or disables double buffering in this RepaintManager. CAUTION: The default value for this property is set for optimal paint performance on the given platform and it is not recommended that programs modify this property directly.

a-flag - true to activate double buffering - boolean

Enables or disables double buffering in this RepaintManager.
 CAUTION: The default value for this property is set for optimal
 paint performance on the given platform and it is not recommended
 that programs modify this property directly.

a-flag - true to activate double buffering - `boolean`
raw docstring

to-stringclj

(to-string this)

Returns a string that displays and identifies this object's properties.

returns: a String representation of this object - java.lang.String

Returns a string that displays and identifies this
 object's properties.

returns: a String representation of this object - `java.lang.String`
raw docstring

validate-invalid-componentsclj

(validate-invalid-components this)

Validate all of the components that have been marked invalid.

Validate all of the components that have been marked invalid.
raw docstring

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

× close