|
EchoPoint 2.1.0rc4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectechopointng.tabbedpane.DefaultTabImageRenderer
DefaultTabImageRenderer is a default implementation
of TabImageRenderer that uses a "background template image"
and TextImageReference to return "dynamic" tab image representations.
| Field Summary | |
static nextapp.echo2.app.Insets |
DEFAULT_INSETS
The default insets used by the DefaultTabImageRenderer |
| Constructor Summary | |
DefaultTabImageRenderer()
Constructs a DefaultTabImageRenderer with default
background tab images. |
|
DefaultTabImageRenderer(java.awt.Image activeTabImage,
java.awt.Image inactiveTabImage)
Constructs a DefaultTabImageRenderer with the specified
background tab images. |
|
| Method Summary | |
java.awt.Image |
getActiveTabImage()
Returns the current active tab java.awt.Image |
nextapp.echo2.app.Color |
getImageBorderColor()
This is called the indicate the color of any border around the image. |
int |
getImageBorderWidth()
This is called the indicate the width of any border around the image. |
java.awt.Image |
getInactiveTabImage()
Returns the current inactive tab java.awt.Image |
nextapp.echo2.app.Insets |
getInsets()
Returns the image insets that will be appplied to any TextImageReferences returned. |
static DefaultTabImageRenderer |
getInstance()
This helper method will construct a DefaultTabImageRenderer with default colors of 0xC0C0C0 for the active tabs, 0xE0E0E0 for the inactive tabs and a border color of 0x000000 and a tab placement of Alignment.TOP |
static DefaultTabImageRenderer |
getInstance(nextapp.echo2.app.Color activeTabColor,
nextapp.echo2.app.Color inactiveTabColor,
nextapp.echo2.app.Color borderColor,
int tabPlacement)
This helper method will construct a DefaultTabImageRenderer using some template background images. |
static DefaultTabImageRenderer |
getInstance(int tabPlacement)
This helper method will construct a DefaultTabImageRenderer with default colors of 0xC0C0C0 for the active tabs, 0xE0E0E0 for the inactive tabs and a border color of 0x000000. |
nextapp.echo2.app.ImageReference |
getLeadInImage()
Returns the current lead in ImageReference |
nextapp.echo2.app.ImageReference |
getLeadInImage(TabbedPane tp)
This returns a "lead in" image that will be place to the left of all tab images. |
nextapp.echo2.app.ImageReference |
getLeadOutImage()
Returns the current lead out ImageReference |
nextapp.echo2.app.ImageReference |
getLeadOutImage(TabbedPane tp)
This returns a "lead out" image that will be place to the right of all tab images. |
nextapp.echo2.app.ImageReference |
getTabImage(TabbedPane tp,
int tabIndex,
nextapp.echo2.app.Component tabComponent,
boolean isSelected)
This returns an ImageReference to be used as the tab's representation. |
void |
prime(TabbedPane tp)
This will set properties in the TabbedPane that are sutiable for this TabImageRenderer. |
void |
setActiveTabImage(java.awt.Image image)
Sets the java.awt.Image to be used as a background for active tabs. |
void |
setBorderColor(nextapp.echo2.app.Color color)
Sets the border color that may be around any of the tab images |
void |
setBorderWidth(int i)
Sets the border width that may be around any of the tab images |
void |
setInactiveTabImage(java.awt.Image image)
Sets the java.awt.Image to be used as a background for inactive tabs. |
void |
setInsets(nextapp.echo2.app.Insets insets)
Sets the image insets that will be appplied to aby TextImageReferences returned. |
void |
setLeadInImage(nextapp.echo2.app.ImageReference reference)
Sets the ImageReference to be used for the lead in image |
void |
setLeadOutImage(nextapp.echo2.app.ImageReference reference)
Sets the ImageReference to be used for the lead out image |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final nextapp.echo2.app.Insets DEFAULT_INSETS
| Constructor Detail |
public DefaultTabImageRenderer()
DefaultTabImageRenderer with default
background tab images.
public DefaultTabImageRenderer(java.awt.Image activeTabImage,
java.awt.Image inactiveTabImage)
DefaultTabImageRenderer with the specified
background tab images. The leadIn andleadOut ImageReferences will
be null.
activeTabImage - - the java.awt.Image to be used for active tabsinactiveTabImage - - the java.awt.Image to be used for inactive tabs| Method Detail |
public nextapp.echo2.app.ImageReference getLeadInImage(TabbedPane tp)
TabImageRenderer
getLeadInImage in interface TabImageRenderertp - the TabbedPane in question
TabImageRenderer.getLeadInImage(echopointng.TabbedPane)public nextapp.echo2.app.ImageReference getLeadOutImage(TabbedPane tp)
TabImageRenderer
getLeadOutImage in interface TabImageRenderertp - the TabbedPane in question
TabImageRenderer.getLeadOutImage(echopointng.TabbedPane)
public nextapp.echo2.app.ImageReference getTabImage(TabbedPane tp,
int tabIndex,
nextapp.echo2.app.Component tabComponent,
boolean isSelected)
TabImageRendererThis MUST NOT be null since the TabbedPane requires an image if a TabImageRenderer is in use.
getTabImage in interface TabImageRenderertp - the TabbedPane in questiontabIndex - -
the index of the tabtabComponent - -
the component that represents the tab at indexisSelected - -
true if the tab is the selected one
ImageReference to use as the tab image. This
must NOT be null.TabImageRenderer.getTabImage(echopointng.TabbedPane, int, nextapp.echo2.app.Component, boolean)public int getImageBorderWidth()
TabImageRenderer
getImageBorderWidth in interface TabImageRendererTabImageRenderer.getImageBorderWidth()public nextapp.echo2.app.Color getImageBorderColor()
TabImageRenderer
getImageBorderColor in interface TabImageRendererTabImageRenderer.getImageBorderColor()public java.awt.Image getActiveTabImage()
public java.awt.Image getInactiveTabImage()
public nextapp.echo2.app.ImageReference getLeadInImage()
public nextapp.echo2.app.ImageReference getLeadOutImage()
public void setActiveTabImage(java.awt.Image image)
image - - the java.awt.Image to be used as a background for
active tabspublic void setInactiveTabImage(java.awt.Image image)
image - - the java.awt.Image to be used as a background for
inactive tabspublic void setLeadInImage(nextapp.echo2.app.ImageReference reference)
reference - the ImageReference to be used for the lead in imagepublic void setLeadOutImage(nextapp.echo2.app.ImageReference reference)
reference - the ImageReference to be used for the lead out imagepublic nextapp.echo2.app.Insets getInsets()
public void setInsets(nextapp.echo2.app.Insets insets)
insets - public void setBorderColor(nextapp.echo2.app.Color color)
color - - the border color that may be around any of the tab imagespublic void setBorderWidth(int i)
i - - the border width that may be around any of the tab imagespublic void prime(TabbedPane tp)
This method is best used if you created the DefaultTabImageRenderer with the getInstance() methods.
tp - the TabbedPane to be primed with valuespublic static DefaultTabImageRenderer getInstance()
public static DefaultTabImageRenderer getInstance(int tabPlacement)
tabPlacement - - can be EchoConstants.TOP or EchoConstants.BOTTOM
public static DefaultTabImageRenderer getInstance(nextapp.echo2.app.Color activeTabColor,
nextapp.echo2.app.Color inactiveTabColor,
nextapp.echo2.app.Color borderColor,
int tabPlacement)
activeTabColor - - the desired active tab colorinactiveTabColor - - the desired inactive tab colorborderColor - - the desired border colortabPlacement - - can be EchoConstants.TOP or EchoConstants.BOTTOM
|
EchoPoint 2.1.0rc4 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||