public class IlpBackgroundsRenderer
extends ilog.cpl.graph.css.renderer.IlpBackgroundsRenderer
IlpEquipmentView
.
This class is a CSS stylable bean that can be configured via CSS. One can not only configure the background(s) to be used, but also define a background color or simply an image that is to used fill the background by repeating this image over and over again.
For more details on how to do adjust this configuration see this section of the User's Manual: Graphic Components > Equipment Component > Configuring the Equipment Component > Configuring a Equipment Component through a CSS File > The Backgrounds Rule
More complex background types can be take advantage of the XML format for backgrounds. For more details see this section of the User's Manual: Graphic Components > Equipment Component > Equipment Component Services > Background Support > Advanced > XML Background Format
IlpEquipmentView
,
IlpBackgroundCSSConfiguration
,
IlpBackgroundSupport
Constructor and Description |
---|
IlpBackgroundsRenderer() |
Modifier and Type | Method and Description |
---|---|
Color |
getBackgroundColor()
Returns the background of the view.
|
String |
getBackgroundPattern()
Returns the location of the background pattern of the view.
|
IlpBackgroundSupport |
getBackgroundSupport()
Returns the background support object currently in use.
|
void |
setBackgroundColor(Color bg)
Changes the background of the view.
|
void |
setBackgroundPattern(String patternLocation)
Changes the background pattern of the view.
|
attach, getView, noteContainerAdded, noteContainerUpdated
public IlpBackgroundSupport getBackgroundSupport()
getBackgroundSupport
in class ilog.cpl.graph.css.renderer.IlpBackgroundsRenderer
public Color getBackgroundColor()
Note that there is no point in changing the background of the view if the view is transparent or if the view has a defined background pattern.
getBackgroundColor
in class ilog.cpl.graph.css.renderer.IlpBackgroundsRenderer
getBackgroundPattern()
public void setBackgroundColor(Color bg)
Note that changing the background of the view may be useless if the view is transparent or if the view has a background pattern defined.
setBackgroundColor
in class ilog.cpl.graph.css.renderer.IlpBackgroundsRenderer
bg
- The background color.public String getBackgroundPattern()
The background pattern is an image that is used to fill the background of the view.
This method may return null
if the view
has no background pattern.
getBackgroundPattern
in class ilog.cpl.graph.css.renderer.IlpBackgroundsRenderer
public void setBackgroundPattern(String patternLocation)
The background pattern is an image that is used to fill the background of the view.
setBackgroundPattern
in class ilog.cpl.graph.css.renderer.IlpBackgroundsRenderer
patternLocation
- The URL of the image, or null
to remove the pattern.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.