|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
BufferedImageOpEffectAbstractBufferedLayerUI paitns the JXLayer
to the BufferedImage and then paints this image to the Graphics
passed to its paint method.LayerEffect interface.AbstractLayerUI provided default implementation for most
of the abstract methods in the LayerUI class.JXLayer can have only two direct children:
the view component and the glassPane,
so this method throws UnsupportedOperationException.
LayerItemListener to the layer item.
LayerItemListener to the layer item.
LayerItemListener to the layer item.
LayerItemListener to the listener list.
BufferedImage.
Filters the passed image using clip and
BufferedImageOps provided by AbstractBufferedImageOpEffect.getBufferedImageOps()
BufferedImage.
LayerEffects
and applies each enabled one to the buffer.
Effect uses BufferedImageOp to filter the passed
BufferedImageOp.ImageEffect
with the specified array of BufferedImageOp.
BufferedLayerUI is the mutable implementation of
the AbstractBufferedLayerUI class.AbstractLayerUI.paint(java.awt.Graphics, javax.swing.JComponent) method prior to
any drawing operations to configure the Graphics2D object.
true
if any of them is visible and contains passed x,y point.
ComponentUI.contains(JComponent, int, int) method,
if LayerUI is set and enabled.
BufferedImage to be used as the cached image.
DebugRepaintingUI provides a visual indication
of repainting JXLayers subcomponents.DebugRepaintingUI
with 50 milliseconds set for the animation timer between-event delay.
DebugRepaintingUI
with the specified time set for the animation timer between-event delay.
JXLayer
and all it subcomponents to this LayerUI,
when LayerItem.isEnabled() returns true.
This method calls the appropriate
process<eventType>Event
method for the given class of event.
JXLayer
and all it subcomponents to this LayerUI,
when LayerItem.isEnabled() returns true.
This method calls the appropriate
process<eventType>Event
method for the given class of event.
Preprocesses the AWTEvent to deactivate mouse scrolling
when any key was pressed or focus left the JXLayer.
JXLayer
and all it subcomponents to this LayerUI,
when LayerItem.isEnabled() returns true.
LayerItemListeners that
have been added to this object.
LayerItemListeners that
have been added to this object.
LayerItemListeners
that have been added to this object.
LayerItemListeners that have registered interest
for notification on this event type.
LayerItemListeners that
have been added to this object.
LayerItemListeners that
have been added to this object.
BufferedLayerUI.getComposite() returns an instanse of AlphaComposite
then this method returns the value of AlphaComposite.getAlpha(),
otherwise it returns 1.
BufferedImageOps
specified for this LayerEffect.
BufferedImageOps
specified for this LayerEffect.
Shape to be used as the clip during painting of this JXLayer,
the default implementation returns null.
Shape to be applied to the Graphics2D
during painting of this BufferedLayerUI.
Shape to be used as the clip during painting of this JXLayer,
the default implementation returns null.
This implementation returns the Shape
set using BufferedLayerUI.setClip(Shape)}
If a BufferedLayerUI provides more extensive API
to support different clipping shapes depending on its state
or on the state of the passed JXLayer,
this method should be overridden.
LayerItemChangeEvent can be sent to multiple
JXLayers, this method gives an opportunity
for the subclasses of LayerItemChangeEvent to define
the precise part of a JXLayer to be repainted.
Composite to be used during painting of this JXLayer,
the default implementation returns null.
Composite to be applied to the Graphics2D
during painting of this BufferedLayerUI.
Composite to be used during painting of this JXLayer,
the default implementation returns null.
This implementation returns the Composite
set using BufferedLayerUI.setComposite(Composite)
If a BufferedLayerUI provides more extensive API
to support different Composites depending on its state
or on the state of the passed JXLayer,
this method should be overridden.
JXLayer.
JXLayer.
JXLayer this AbstractBufferedLayerUI is set to.
LayerEffect to be used during painting of this JXLayer,
the default implementation returns constant empty array.
LayerEffects
to be applied to the buffer of this BufferedLayerUI
LayerEffect to be used during painting of this JXLayer,
the default implementation returns constant empty array.
This implementation returns the array of Effects
set using BufferedLayerUI.setLayerEffects(LayerEffect[])
If a BufferedLayerUI provides more extensive API
to support different Effects depending on its state
or on the state of the passed JXLayer,
this method should be overridden.
LayerEffect to be used during painting of this JXLayer,
the default implementation returns constant empty array.
LayerUI
and all its JXLayers
It means that LayerUI.eventDispatched(AWTEvent, JXLayer) method
will only receive events that match the event mask.
By default only mouse, mouse motion, mouse wheel, keyboard and focus events are supported,
all other events included in the eventMask will be ignored.
LayerUI
and all its JXLayers
It means that LayerUI.eventDispatched(AWTEvent, JXLayer) method
will only receive events that match the event mask.
LayerItemListeners
registered on this LayerItem.
LayerItemListeners
registered on this LayerItem.
LayerItemListeners
registered on this LayerItem.
LayerItemChangeSupport object with addLayerItemListener()
LockableLayerUI when it locked state.
JXLayer,
the default implementation returns the empty unmodifiable map.
Graphics2D
during painting of this BufferedLayerUI.
JXLayer,
the default implementation returns the empty unmodifiable map.
This implementation returns the map of rendreing hints
set using BufferedLayerUI.setRenderingHints(java.util.Map)
If a BufferedLayerUI provides more extensive API
to support different rendering hints depending on its state
or on the state of the passed JXLayer,
this method should be overridden.
LayerItem on which the event initially occurred.
AffineTransform to be used during painting of this JXLayer,
the default implementation returns null.
AffineTransform to be applied to the Graphics2D
during painting of this BufferedLayerUI.
AffineTransform to be used during painting of this JXLayer,
the default implementation returns null.
This implementation returns the AffineTransform
set using BufferedLayerUI.setTransform(AffineTransform)
If a BufferedLayerUI provides more extensive API
to support different AffineTransform depending on its state
or on the state of the passed JXLayer,
this method should be overridden.
LayerUI for this JXLayer.
JXLayer.
JXLayer appropriate for this AbstractLayerUI.
This implementation saves the passed JXLayer instance
and checks that it set to one layer only
JXLayer appropriate for this AbstractLayerUI.
JXLayer appropriate for this AbstractLayerUI.
This method is invoked when the LayerUI instance is being installed
as the UI delegate on the specified JXLayer.
Subclasses can install any listeners to the passed JXLayer,
configure its glassPane or do any other setting up.
The default implementation registers the passed JXLayer
as a LayerItemListener for this AbstractLayerUI.
Note: Subclasses can safely cast the passed component
to the JXLayer<V>
This implementation saves the passed JXLayer instance
and checks that it set to one layer only
true if this AbstractLayerUI catches AWT events
with help of AWTEventListener,
in this case AbstractLayerUI.registerAWTEventListener(JXLayer, long)
will be called from installUI(JComponent)
with AbstractLayerUI.getLayerEventMask() as the second parameter
and AbstractLayerUI.unregisterAWTEventListener(JXLayer)
will be called from uninstallUI(JComponent)
If this method is overridden to return true
don't forget to override getAWTEventListenerEventMask()
The default implementation returns false
true if this AbstractLayerUI catches AWT events
with help of AWTEventListener,
in this case AbstractLayerUI.registerAWTEventListener(JXLayer, long)
will be called from installUI(JComponent)
with AbstractLayerUI.getLayerEventMask() as the second parameter
and AbstractLayerUI.unregisterAWTEventListener(JXLayer)
will be called from uninstallUI(JComponent)
If this method is overridden to return true
don't forget to override getAWTEventListenerEventMask()
The default implementation returns false
LayerItem is in active state.
AbstractLayerUI is enabled initially by default.
LayerItem is in active state.
The default return value for this method is true.
LayerItem is in active state.
true if the events with the passed id
are enabled for this LayerUI
false and AbstractLayerUI.isDirty returns false
and the cached image exists and matches the size of painted JXLayer
then the existing image will be used during the painting.
true if incremental update is enabled for this BufferedLayerUI
and its cache image is updated on every repainting, otherwise returns false.
false and AbstractLayerUI.isDirty returns false
and the cached image exists and matches the size of painted JXLayer
then the existing image will be used during the painting.
This implementation returns the incremental update flag
set using BufferedLayerUI.setIncrementalUpdate(boolean)
If a BufferedLayerUI provides more extensive API
to support incremental updated depending on its state
or on the state of the passed JXLayer,
this method should be overridden.
false
and it makes the painting much faster
true if this LockableLayerUI
is in locked state and all JXLayer's mouse, keyboard and focuse events
are temporarily blocked, otherwise returns false.
true if mouseEvent is a mouse auto-scrolling trigger.
JXLayer overrides the default implementation of
this method to return false when the glassPane is visible.
true is the proxy InputContext is enabled for this JXLayer.
JXLayer.JXGlassPane
MouseEvents,
KeyEvents and FocusEvents which generated within its borders.JXLayer object with empty view component
and empty LayerUI.
JXLayer object with empty LayerUI.
JXLayer object with provided view component
and LayerUI object.
BufferedImage.JXLayer's decoration.LayerItem has changed.
LayerItemChangeEvent provides notification of changes
to a LayerItem.LayerItemEvent object.
LayerItem.LayerItemChangeSupport object.
LayerItemListeners are notified of a LayerItem's changesJXLayer.JXLayer's UI delegates.BufferedLayerUI which provides
a lightweight disabling for the content of its JXLayer.MouseScrollableUI provides the mouse auto-scrolling feature
for your applications.MouseScrollableUI.
MouseScrollableUI.
LayerUI object.
Graphics object to
render the content of the component.
Note: Subclasses can safely cast the passed component
to the JXLayer<V> Graphics
to the Graphics2D instance.
Note: It is rarely necessary to override this method, for
custom painting override AbstractLayerUI.paintLayer(Graphics2D,JXLayer) instead
This method configures the passed Graphics with help of the
AbstractLayerUI.configureGraphics(Graphics2D,JXLayer) method,
then calls paintLayer(Graphics2D,JXLayer)
and resets the "dirty bit" at the end.
This method paints the paitns the JXLayer to the BufferedImage
and then paints this image to the passed Graphics.
AbstractLayerUI.paintLayer(Graphics2D,JXLayer) instead
This method configures the passed Graphics with help of the
AbstractLayerUI.configureGraphics(Graphics2D,JXLayer) method,
then calls paintLayer(Graphics2D,JXLayer)
and resets the "dirty bit" at the end.
Graphics object to
render the content of the component.
Note: Subclasses can safely cast the passed component
to the JXLayer<V> Graphics
to the Graphics2D instance.
Note: It is rarely necessary to override this method, for
custom painting override AbstractLayerUI.paintLayer(Graphics2D,JXLayer) instead
This method configures the passed Graphics with help of the
AbstractLayerUI.configureGraphics(Graphics2D,JXLayer) method,
then calls paintLayer(Graphics2D,JXLayer)
and resets the "dirty bit" at the end.
This method paints the paitns the JXLayer to the BufferedImage
and then paints this image to the passed Graphics.
FocusEvent occurring on the JXLayer
or any of its subcomponents.
KeyEvent occurring on the JXLayer
or any of its subcomponents.
KeyEvent occurring on the JXLayer
or any of its subcomponents.
MouseEvent occurring on the JXLayer
or any of its subcomponents.
MouseEvent occurring on the JXLayer
or any of its subcomponents.
Activates the mouse auto-scrolling if e is a scrolling trigger.
JXLayer
or any of its subcomponents.
JXLayer
or any of its subcomponents.
Scrolls the JXLayer's view JScrollPane
if mouse scrolling is activated
MouseWheelEvent occurring on the JXLayer
or any of its subcomponents.
JXLayer's view component.
JXLayer's view component.
LayerItemListener from this LayerItem.
LayerItemListener from this LayerItem.
LayerItemListener from this LayerItem.
LayerItemListener from the listener list.
PropertyChangeListener from the listener
list for a specific property.
AlphaComposite with the specified alpha value
as the Composite for this BufferedLayerUI.
BufferedImageOps
to be used by this ImageEffect
Shape to be applied to the Graphics2D
during painting of this BufferedLayerUI.
Composite to be applied to the Graphics2D
during painting of this BufferedLayerUI.
enabled.
AbstractEffect,
depending on the value of the parameter isEnabled.
enabled.
enabled.
Deactivates the mouse scrolling for disabled MouseScrollableUI
JXLayer.
BufferedLayerUI.
Effects to be applied to the Graphics2D
during painting of this BufferedLayerUI
This BufferedLayerUI is set to every Effect
in this array as a LayerItemListener to mark itself
as dirty when any of those Effects changes its state.
AbstractLayerUI
and all its JXLayers
It means that AbstractLayerUI.eventDispatched(AWTEvent, JXLayer) method
will only receive events that match the event mask.
isLocked is true then all mouse, keyboard and focuse events
from the JXLayer of this LockableLayerUI
will be temporarily blocked.
LockableLayerUI when it locked state.
AWTEventListener
The default value for this property is true
For more informaiton please see
JXLayer 3.0 - Event handling
Graphics2D
during painting of this BufferedLayerUI.
AffineTransform to be applied to the Graphics2D
during painting of this BufferedLayerUI.
LayerUI which will perform painting
and receive input events for this JXLayer.
JXLayer.
installUI(JComponent).
installUI(JComponent).
installUI(JComponent). This method is invoked when this
LayerUI instance is being removed as the UI delegate
for the specified JXLayer.
uninstallUI(JComponent) should undo the
configuration performed in installUI(JComponent), being careful to
leave the JXLayer instance in a clean state
(e.g. all previously set listeners must be removed in this method).
The default implementation removes the passed JXLayer
from the LayerItemListener's list of this AbstractLayerUI.
Note: Subclasses can safely cast the passed component
to the JXLayer<V>
AbstractLayerUI.registerAWTEventListener(JXLayer, long)
and also enables back the proxy InputContext of the passed JXLayer.
JXLayer manages its painting in a different way
so this method doesn't call the LayerUI.paint(Graphics, JComponent) method
after background is filled for the opaque JXLayers.
LayerUI.updateUI(JXLayer) method,
if LayerUI is set and enabled.
AbstractBufferedLayerUI as dirty if the LookAndFeel was changed
JXLayer.updateUI() is called
from the JXLayer this LayerUI is set to.
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||