public class SeriesSet extends BIComplexAttributeBase
| Modifier and Type | Field and Description |
|---|---|
static org.apache.myfaces.trinidad.bean.PropertyKey |
ASSIGNED_TO_Y2_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
BAR_SHAPE_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
BORDER_COLOR_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
BORDER_TRANSPARENT_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
COLOR_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
FITLINE_TYPE_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
LINE_DISPLAYED_KEY |
static java.lang.String |
LINE_DISPLAYED_NAME |
static org.apache.myfaces.trinidad.bean.PropertyKey |
LINE_WIDTH_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
MARKER_COLOR_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
MARKER_DISPLAYED_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
MARKER_SHAPE_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
MARKER_TYPE_KEY |
static org.apache.myfaces.trinidad.bean.PropertyKey |
SERIES_MAP_KEY |
static BIFacesBeanImpl.Type |
TYPE |
ID_KEY, m_parent, TRANSIENT_KEY| Constructor and Description |
|---|
SeriesSet() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyProperties(java.util.HashMap map)
Applications do not need to call this method.
|
int |
getBarShape()
Gets the shape of bars in a bar graph.
|
protected org.apache.myfaces.trinidad.bean.FacesBean.Type |
getBeanType() |
int |
getDefaultAssignedToY2()
Retrieves the default axis assignment for series.
|
java.awt.Color |
getDefaultBorderColor()
Retrieves the default border color of the series.
|
java.awt.Color |
getDefaultColor()
Retrieves the default fill color of series.
|
int |
getDefaultFitlineType()
Retrieves the default type of fitline for all series.
|
int |
getDefaultLineWidth()
Retrieves the default width for the data lines of series.
|
java.awt.Color |
getDefaultMarkerColor()
Retrieves the default fill color for the markers of series.
|
int |
getDefaultMarkerShape()
Retrieves the default shape for the data makers of series.
|
int |
getDefaultMarkerType()
Retrieves the default type of markers used for series.
|
Series |
getSeries(int i,
boolean createNew) |
java.util.Map |
getSeriesMap() |
boolean |
isDefaultBorderTransparent()
Indicates whether the borders for the markers of the series are transparent.
|
boolean |
isLineDisplayed()
Indicates whether data lines appear in a line graph.
|
boolean |
isMarkerDisplayed()
Indicates whether data markers appear in a line or area graph.
|
protected void |
resetStyleProperties() |
java.lang.Object |
saveState(javax.faces.context.FacesContext context) |
void |
setBarShape(int shape)
Sets the shape of bars in a bar graph.
|
void |
setBarShape(java.lang.String shape)
Sets the shape of bars in a bar graph.
|
void |
setDefaultAssignedToY2(int assignedToY2)
Specifies the default axis assignment for series.
|
void |
setDefaultAssignedToY2(java.lang.String assignedToY2)
Specifies the default assignment of each series for dual-Y graphs.
|
void |
setDefaultBorderColor(java.awt.Color newColor)
Specifies the default border color of the series.
|
void |
setDefaultBorderTransparent(boolean yesNo)
Specifies whether the borders for the markers of the series are transparent.
|
void |
setDefaultColor(java.awt.Color color)
Specifies the default fill color of series.
|
void |
setDefaultFitlineType(int type)
Specifies the default type of fitline to use for series.
|
void |
setDefaultFitlineType(java.lang.String type)
Specifies the default type of fitline, if any, that is displayed for each series.
|
void |
setDefaultLineWidth(int width)
Specifies the default width for the data lines of series.
|
void |
setDefaultMarkerColor(java.awt.Color color)
Specifies the default fill color for the markers of series.
|
void |
setDefaultMarkerShape(int shape)
Specifies the default shape for the data markers of series.
|
void |
setDefaultMarkerShape(java.lang.String shape)
The default marker shape for each series.
|
void |
setDefaultMarkerType(int type)
Specifies the default marker type for series.
|
void |
setDefaultMarkerType(java.lang.String type)
Specifies the default marker type for each series in this graph.
|
void |
setLineDisplayed(boolean displayed)
Specifies whether data lines appear in a line graph.
|
void |
setMarkerDisplayed(boolean displayed)
Specifies whether data markers appear in a line or area graph.
|
void |
setSeriesMap(java.util.Map map) |
getBooleanProperty, getFacesBean, getId, getParent, getProperty, getPropertyKey, getSetAttributeIndex, isTransient, isUpdated, processSetAttribute, processSetAttributeAndAdd, registerAttachedObjectKey, restoreState, setBooleanProperty, setId, setParent, setProperty, setTransient, setUpdatedpublic static final BIFacesBeanImpl.Type TYPE
public static final org.apache.myfaces.trinidad.bean.PropertyKey COLOR_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey MARKER_COLOR_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey LINE_WIDTH_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey FITLINE_TYPE_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey MARKER_TYPE_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey MARKER_SHAPE_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey ASSIGNED_TO_Y2_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey SERIES_MAP_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey BORDER_COLOR_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey BORDER_TRANSPARENT_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey LINE_DISPLAYED_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey MARKER_DISPLAYED_KEY
public static final org.apache.myfaces.trinidad.bean.PropertyKey BAR_SHAPE_KEY
public static final java.lang.String LINE_DISPLAYED_NAME
public void setDefaultAssignedToY2(int assignedToY2)
assignedToY2 - A constant that represents the default axis
assignment.
Valid constants are listed in the See Also section.BaseGraphComponent.DY2_TRUE,
BaseGraphComponent.DY2_FALSE,
BaseGraphComponent.DY2_AUTO_ASSIGNpublic void setDefaultAssignedToY2(java.lang.String assignedToY2)
assignedToY2 - A constant that represents the default axis
assignment.
Valid constants are:
public int getDefaultAssignedToY2()
BaseGraphComponent.DY2_TRUE,
BaseGraphComponent.DY2_FALSE,
BaseGraphComponent.DY2_AUTO_ASSIGNpublic void setDefaultColor(java.awt.Color color)
color - The default fill color for the markers of series.
If color is null, then the graph assigns
its own default colors to series, repeating colors
as necessary.#setColorpublic java.awt.Color getDefaultColor()
color is null, then the graph assigns
its own default colors to series, repeating colors
as necessary.#getColorpublic java.awt.Color getDefaultBorderColor()
public void setDefaultBorderColor(java.awt.Color newColor)
newColor - The default border color of the series. If this
is null, the border color is made transparent.public boolean isDefaultBorderTransparent()
true if the borders are transparent,
false if the borders are visible.public void setDefaultBorderTransparent(boolean yesNo)
yesNo - true to make the borders transparent,
false to make the borders visible.public void setDefaultMarkerColor(java.awt.Color color)
color - The default fill color for the markers of series.
If color is null, then the graph assigns
its own default colors to series, repeating colors
as necessary.#setColorpublic java.awt.Color getDefaultMarkerColor()
color is null, then the graph assigns
its own default colors to series, repeating colors
as necessary.#getColorpublic void setDefaultFitlineType(int type)
type - A constant that represents the default type of fitline for
series. Valid constants are listed in the See Also section.BaseGraphComponent.FT_EXPONENTIAL,
BaseGraphComponent.FT_LOGARITHMIC,
BaseGraphComponent.FT_LINEAR,
BaseGraphComponent.FT_NONEpublic void setDefaultFitlineType(java.lang.String type)
type - A constant that represents the default type of fitline for
series. Valid constants are listed:
public int getDefaultFitlineType()
BaseGraphComponent.FT_EXPONENTIAL,
BaseGraphComponent.FT_LOGARITHMIC,
BaseGraphComponent.FT_LINEAR,
BaseGraphComponent.FT_NONEpublic void setDefaultLineWidth(int width)
The value that you set in this method takes effect only when the
DepthRadius attribute of the graph is set to zero.
lineWidth - The default width for the data lines of series.Graph#setDepthRadiuspublic int getDefaultLineWidth()
public void setDefaultMarkerShape(int shape)
markerShape - A constant that represents the default shape for the
data markers of series.
Valid constants are listed in the See Also section.
If marker shape is
automatic, then the graph assigns its default
shapes, repeating shapes if necessary.BaseGraphComponent.MS_CIRCLE,
BaseGraphComponent.MS_DIAMOND,
BaseGraphComponent.MS_NONE,
BaseGraphComponent.MS_PLUS,
BaseGraphComponent.MS_SQUARE,
BaseGraphComponent.MS_TRIANGLE_DOWN,
BaseGraphComponent.MS_TRIANGLE_UP,
BaseGraphComponent.MS_AUTOMATICpublic void setDefaultMarkerShape(java.lang.String shape)
shape - A constant that represents the default shape for the
data markers of series.
Valid constants are listed in the See Also section.
If marker shape is
automatic, then the graph assigns its default
shapes, repeating shapes if necessary.
public int getDefaultMarkerShape()
BaseGraphComponent.MS_CIRCLE,
BaseGraphComponent.MS_DIAMOND,
BaseGraphComponent.MS_NONE,
BaseGraphComponent.MS_PLUS,
BaseGraphComponent.MS_SQUARE,
BaseGraphComponent.MS_TRIANGLE_DOWN,
BaseGraphComponent.MS_TRIANGLE_UP,
BaseGraphComponent.MS_AUTOMATICpublic void setDefaultMarkerType(int type)
markerType - The default type of markers used for series.BaseGraphComponent.MT_AREA,
BaseGraphComponent.MT_BAR,
BaseGraphComponent.MT_DEFAULT,
BaseGraphComponent.MT_LINEpublic void setDefaultMarkerType(java.lang.String type)
type - The default type of markers used for series.
public int getDefaultMarkerType()
BaseGraphComponent.MT_AREA,
BaseGraphComponent.MT_BAR,
BaseGraphComponent.MT_DEFAULT,
BaseGraphComponent.MT_LINEpublic void applyProperties(java.util.HashMap map)
applyProperties in class BIComplexAttributeBasemap - hashMap that contains property value pairs.protected void resetStyleProperties()
public Series getSeries(int i, boolean createNew)
public void setSeriesMap(java.util.Map map)
public java.util.Map getSeriesMap()
public void setMarkerDisplayed(boolean displayed)
true, then you should also
make sure that the MarkerShape property for each
series in the graph is not set to BaseGraphComponent.MS_NONE.
If you set this property to false, then you should be
sure to set the LineDisplayed property to
true.
displayed - true to display data markers,
false to hide data markers.setLineDisplayed(boolean),
Series.setMarkerShape(int),
BaseGraphComponent.MS_NONEpublic boolean isMarkerDisplayed()
true if the data markers are displayed,
false if the data markers are not displayed.public void setLineDisplayed(boolean displayed)
false, then the graph
sets the MarkerDisplayed property to true.displayed - true to display lines,
false not to display them.setMarkerDisplayed(boolean)public boolean isLineDisplayed()
true if a line graph displays lines,
false if the line graph does not display lines.setMarkerDisplayed(boolean)public int getBarShape()
GraphConstants.BAR_SHAPE_RECTANGLE,
GraphConstants.BAR_SHAPE_CYLINDER,
GraphConstants.BAR_SHAPE_TRIANGLE,
GraphConstants.BAR_SHAPE_DIAMONDpublic void setBarShape(int shape)
shape - the shape of bars in a bar graphGraphConstants.BAR_SHAPE_RECTANGLE,
GraphConstants.BAR_SHAPE_CYLINDER,
GraphConstants.BAR_SHAPE_TRIANGLE,
GraphConstants.BAR_SHAPE_DIAMONDpublic void setBarShape(java.lang.String shape)
shape - Shape of bars in a bar graph. Valid values are the following:
Note: Animation is only supported for bar graphs with barShape = "RECTANGLE".
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class BIComplexAttributeBaseprotected org.apache.myfaces.trinidad.bean.FacesBean.Type getBeanType()
getBeanType in class BIComplexAttributeBase