|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.win.swing.component.LyAbstractTitlePanelManager
public abstract class LyAbstractTitlePanelManager
This class manages title panels.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
static int |
FADING
Fading used for the background color (use 0 for no fading). |
static int |
X_GAP
Horizontal space between components. |
static int |
Y_GAP
Vertical space between components. |
Constructor Summary | |
---|---|
LyAbstractTitlePanelManager()
Default constructor. |
|
LyAbstractTitlePanelManager(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)
Class constructor of a LyAbstractTitlePanelManager object. |
Method Summary | |
---|---|
java.awt.Component |
getComponent()
Gets the current title bar component. |
java.lang.String |
getDrawableString(java.lang.String label,
int xStart,
int xEnd)
Retrieves the drawable part of the specified string between the starting and ending abscisses. |
abstract java.awt.Image |
getImageOffScreen(java.awt.Dimension offScreenSize)
Returns the offscreen image if any. |
java.awt.Rectangle |
getImageRectangle()
Gets the main image rectangle. |
java.lang.String |
getImageToolTip()
Gets the main image tooltip. |
java.awt.Dimension |
getMinimumSize()
Computes minimum size depending on content. |
java.awt.Dimension |
getPreferredSize()
Computes preferred size depending on content. |
java.awt.Rectangle |
getRightImageRectangle()
Gets the right image rectangle. |
java.lang.String |
getRightImageToolTip()
Gets the right image tooltip. |
java.awt.Rectangle |
getRightLabelRectangle()
Gets the right label rectangle. |
abstract java.awt.Graphics |
getTargetGraphics(java.awt.Image offScreenImage,
java.awt.Graphics defaultGraphics)
Returns the graphics context of the specified offscreen image or the default graphics context if none is available. |
void |
paintCommon(java.awt.Graphics g)
Draws the title panel in this graphics context. |
abstract void |
paintOnScreen(java.awt.Image offScreenImage,
java.awt.Graphics onScreenGraphics)
Paints the specified offscreen image to the onscreen graphics context. |
void |
setCenterLabel(java.lang.String centerLabel)
Sets the center label parameter. |
void |
setFading(boolean fading)
Sets the fading property of the titlebar. |
void |
setImage(java.awt.Image image)
Sets the main image. |
void |
setImageBackgroundColor(java.awt.Color color)
Sets the titlebar main image background color. |
void |
setImageBorderColor(java.awt.Color color)
Sets the titlebar main image border color. |
void |
setImageToolTip(java.lang.String toolTip)
Sets the image tooltip. |
void |
setLeftLabel(java.lang.String leftLabel)
Sets the left label parameter. |
void |
setRightImage(java.awt.Image image)
Sets the right image. |
void |
setRightImageToolTip(java.lang.String toolTip)
Sets the right image tooltip. |
void |
setRightLabel(java.lang.String rightLabel)
Sets the right label parameter. |
void |
setTitleBackgroundColor(java.awt.Color color)
Sets the titlebar background color. |
void |
setTitleColor(java.awt.Color color)
Sets the titlebar text color. |
void |
setTitleFont(java.awt.Font font)
Sets the titlebar font. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public static final int X_GAP
public static final int Y_GAP
public static final int FADING
Constructor Detail |
---|
public LyAbstractTitlePanelManager()
public LyAbstractTitlePanelManager(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)
null
.
bgImage
- the background imageimage
- the main image of the titlebarimageToolTip
- the main image tooltiprightImage
- the right image of the titlebarrightImageToolTip
- the right image tooltipleftLabel
- the left label on the titlecenterLabel
- the centered labelrightLabel
- the right labelcomp
- the associated graphical componentlistener
- the action listenerMethod Detail |
---|
public abstract java.awt.Image getImageOffScreen(java.awt.Dimension offScreenSize)
offScreenSize
- size of the offscreen image
public abstract java.awt.Graphics getTargetGraphics(java.awt.Image offScreenImage, java.awt.Graphics defaultGraphics)
offScreenImage
- the image to get its graphics contextdefaultGraphics
- the default graphics context if the image doesn't have one
public abstract void paintOnScreen(java.awt.Image offScreenImage, java.awt.Graphics onScreenGraphics)
offScreenImage
- the offscreen image to paint on the onscreen contextonScreenGraphics
- the graphics context to paint the offscreen image onpublic void paintCommon(java.awt.Graphics g)
g
- the graphics context to paint the images onpublic java.lang.String getDrawableString(java.lang.String label, int xStart, int xEnd)
label
- the labelxStart
- start drawing abscissexEnd
- end drawing abscisse
public java.awt.Dimension getMinimumSize()
getPreferredSize()
public java.awt.Dimension getPreferredSize()
public java.awt.Component getComponent()
public void setLeftLabel(java.lang.String leftLabel)
leftLabel
- new labelpublic void setRightLabel(java.lang.String rightLabel)
rightLabel
- new labelpublic void setCenterLabel(java.lang.String centerLabel)
centerLabel
- new labelpublic void setImage(java.awt.Image image)
image
- new imagepublic void setImageToolTip(java.lang.String toolTip)
toolTip
- new image tooltipgetImageToolTip()
public void setRightImage(java.awt.Image image)
image
- new imagepublic void setRightImageToolTip(java.lang.String toolTip)
toolTip
- new right image tooltipgetRightImageToolTip()
public void setTitleFont(java.awt.Font font)
font
- new titleBar fontpublic void setTitleBackgroundColor(java.awt.Color color)
color
- the new titlebar background colorpublic void setImageBackgroundColor(java.awt.Color color)
color
- the new image background colorpublic void setImageBorderColor(java.awt.Color color)
color
- the new image border colorpublic void setTitleColor(java.awt.Color color)
color
- the new titlebar text colorpublic void setFading(boolean fading)
fading
- Indicates if the titlebar must be drawn with a fading effect.public java.awt.Rectangle getImageRectangle()
public java.awt.Rectangle getRightImageRectangle()
public java.awt.Rectangle getRightLabelRectangle()
public java.lang.String getImageToolTip()
setImageToolTip(String)
public java.lang.String getRightImageToolTip()
setRightImageToolTip(String)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |