LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing.component
Class LyJTitlePanel._LyJTitlePanelManager

java.lang.Object
  extended by leon.view.win.swing.component.LyAbstractTitlePanelManager
      extended by leon.view.win.swing.component.LyJTitlePanel._LyJTitlePanelManager
All Implemented Interfaces:
java.awt.event.MouseListener, java.util.EventListener
Enclosing class:
LyJTitlePanel

public class LyJTitlePanel._LyJTitlePanelManager
extends LyAbstractTitlePanelManager
implements java.awt.event.MouseListener

Implements the LyAbstractTitlePanelManager to manage offscreen image.

See Also:
LyAbstractTitlePanelManager

Field Summary
 
Fields inherited from class leon.view.win.swing.component.LyAbstractTitlePanelManager
__VERSION, FADING, X_GAP, Y_GAP
 
Constructor Summary
LyJTitlePanel._LyJTitlePanelManager()
          Sole constructor.
LyJTitlePanel._LyJTitlePanelManager(java.awt.Image bgImage, java.awt.Image image, java.lang.String imageToolTip, java.awt.Image rightImage, java.lang.String rightImageToolTip, java.lang.String leftLabel, java.lang.String centerLabel, java.lang.String rightLabel, java.awt.Component comp, LyActionListener listener)
          Creates a title panel manager and adds it mouse listeners.
 
Method Summary
 java.awt.Image getImageOffScreen(java.awt.Dimension offScreenSize)
          This canvas manager doesn't have offscreen images.
 java.awt.Dimension getPreferredSize()
          Computes preferred size depending on content.
 java.awt.Graphics getTargetGraphics(java.awt.Image offScreenImage, java.awt.Graphics defaultGraphics)
          This canvas manager doesn't have offscreen images.
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
          Nothing is done.
 void mouseExited(java.awt.event.MouseEvent e)
          Nothing is done.
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
          Nothing is done.
 void paintOnScreen(java.awt.Image offScreenImage, java.awt.Graphics onScreenGraphics)
          This canvas manager doesn't have offscreen images.
 
Methods inherited from class leon.view.win.swing.component.LyAbstractTitlePanelManager
getComponent, getDrawableString, getImageRectangle, getImageToolTip, getMinimumSize, getRightImageRectangle, getRightImageToolTip, getRightLabelRectangle, paintCommon, setCenterLabel, setFading, setImage, setImageBackgroundColor, setImageBorderColor, setImageToolTip, setLeftLabel, setRightImage, setRightImageToolTip, setRightLabel, setTitleBackgroundColor, setTitleColor, setTitleFont
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LyJTitlePanel._LyJTitlePanelManager

public LyJTitlePanel._LyJTitlePanelManager()
Sole constructor. (For invocation by subclass constructors, typically implicit.)


LyJTitlePanel._LyJTitlePanelManager

public LyJTitlePanel._LyJTitlePanelManager(java.awt.Image bgImage,
                                           java.awt.Image image,
                                           java.lang.String imageToolTip,
                                           java.awt.Image rightImage,
                                           java.lang.String rightImageToolTip,
                                           java.lang.String leftLabel,
                                           java.lang.String centerLabel,
                                           java.lang.String rightLabel,
                                           java.awt.Component comp,
                                           LyActionListener listener)
Creates a title panel manager and adds it mouse listeners.

Parameters:
bgImage - the background image
image - the main image of the titlebar
imageToolTip - the main image tooltip
rightImage - the right image of the titlebar
rightImageToolTip - the right image tooltip
leftLabel - the left label on the title
centerLabel - the centered label
rightLabel - the right label
comp - the associated graphical component
listener - the action listener
Method Detail

getImageOffScreen

public java.awt.Image getImageOffScreen(java.awt.Dimension offScreenSize)
This canvas manager doesn't have offscreen images.

Specified by:
getImageOffScreen in class LyAbstractTitlePanelManager
Parameters:
offScreenSize - the size of the image to return
Returns:
null
See Also:
LyAbstractTitlePanelManager.getImageOffScreen(Dimension)

getTargetGraphics

public java.awt.Graphics getTargetGraphics(java.awt.Image offScreenImage,
                                           java.awt.Graphics defaultGraphics)
This canvas manager doesn't have offscreen images.

Specified by:
getTargetGraphics in class LyAbstractTitlePanelManager
Parameters:
offScreenImage - the offscreen image
defaultGraphics - the default graphics context to use
Returns:
the specified defaut graphics
See Also:
LyAbstractTitlePanelManager.getTargetGraphics(Image, Graphics)

paintOnScreen

public void paintOnScreen(java.awt.Image offScreenImage,
                          java.awt.Graphics onScreenGraphics)
This canvas manager doesn't have offscreen images. Nothing is done.

Specified by:
paintOnScreen in class LyAbstractTitlePanelManager
Parameters:
offScreenImage - the offscreen image to paint on the onscreen context
onScreenGraphics - the graphics context to paint the offscreen image on
See Also:
LyAbstractTitlePanelManager.paintOnScreen(Image, Graphics)

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Nothing is done.

Specified by:
mouseExited in interface java.awt.event.MouseListener
See Also:
MouseListener.mouseExited(java.awt.event.MouseEvent)

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Nothing is done.

Specified by:
mouseReleased in interface java.awt.event.MouseListener
See Also:
MouseListener.mouseReleased(java.awt.event.MouseEvent)

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Nothing is done.

Specified by:
mouseEntered in interface java.awt.event.MouseListener
See Also:
MouseListener.mouseEntered(java.awt.event.MouseEvent)

getPreferredSize

public java.awt.Dimension getPreferredSize()
Description copied from class: LyAbstractTitlePanelManager
Computes preferred size depending on content.

Overrides:
getPreferredSize in class LyAbstractTitlePanelManager
Returns:
the preferred size of the component

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com