|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.graphics.components.GraphStyle
public class GraphStyle
GraphStyle class contains graph specific style attributes and properties. A graph style defines the fonts to use, color scheme to apply, if outlines will be drawn around data elements (bars, pie slices, markers, etc.), chart frame is enabled, axes line width, opacity of data elements and chart walls, legend placement and if shadows are drawn on the text elements, etc. Also, a background image can be specified.
GraphStyle graphStyle = new GraphStyle(STYLE_EDUCATION); ColorScheme cs = new ColorScheme(ColorScheme.SCHEME_TERRA); graphStyle.applyColorScheme(cs);To apply a graph style to a chart, use the chart's applyGraphStyle() method:
barChartModel.applyGraphStyle(graphStyle);To change the font on this graph style's Title1:
TextStyle ts = graphStyle.getTitle1TextStyle(); ts.setFont(FontManager.getFont("Trebuchet MS", Font.BOLD, 28)); ts.apply(ts);
The graph style is made up of many other style components, ie. TextStyle, LineStyle, MarkerStyle. These encapsulate the attributes for many of the graph style elements.
Since we never want to allow these sub-styles to be set to NULL because the graph depends upon them not being so, you perform an apply in order to change the settings.
Sharing attributes between GraphStyles and Graphs is not encouraged since each Graph type handles the GraphStyle attributes differently.
TextStyle
,
TickStyle
,
ShadowStyle
,
MarkerStyle
,
StrokeLineStyle
,
FillStyle
,
ColorScheme
Field Summary | |
---|---|
static java.lang.String |
RB_KEY
|
static ConstantCollection |
STYLE
STYLE enables a set of static actions associated with the public STYLE_ constants. |
static int |
STYLE_ANALYSIS
|
static int |
STYLE_ASTRONOMY
|
static int |
STYLE_BANKER
|
static int |
STYLE_BLOCKPRINT
|
static int |
STYLE_CONVENTION
|
static int |
STYLE_CURVE
|
static int |
STYLE_EDUCATION
|
static int |
STYLE_ELECTRONICS
|
static int |
STYLE_GANTTCHART
|
static int |
STYLE_GEARS
|
static int |
STYLE_MAGNIFY
|
static int |
STYLE_MONEY
|
static int |
STYLE_MONOCHROME
|
static int |
STYLE_OLAP
|
static int |
STYLE_RSVP
|
static int |
STYLE_SCIENCE
|
static int |
STYLE_SKETCH
|
static int |
STYLE_STATISTICAL
|
static int |
STYLE_TORN
|
static int |
STYLE_WATERCOLOR
|
Constructor Summary | |
---|---|
GraphStyle()
|
|
GraphStyle(int newGraphStyleName)
Constructor that creates a new GraphStyle object with the specific attributes for the named style passed in. |
Method Summary | |
---|---|
void |
applyColorScheme(ColorScheme cs)
Apply a color scheme on this Graph Style. |
void |
applyTextShadowStyle(ShadowStyle newShadowStyle)
Sets the shadow on the graph style's text elements. |
ColorScheme |
asColorScheme()
Returns a set of colors that will be used when rendering a graph. |
ShadowStyle |
asTextShadowStyle()
Extracts the applied shadow on the graph style's text elements, if it is consistent (that is if they all still match). |
protected void |
firePropertyChange(java.lang.String propertyName,
ModelBase oldProperty,
ModelBase newProperty)
Support for reporting bound contained-Model property changes. |
protected void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldProperty,
java.lang.Object newProperty)
Support for reporting bound property changes. |
int |
getAppliedColorSchemeName()
|
StrokeLineStyle |
getAxisLineStyle()
Returns axis line display attributes. |
FillStyle |
getBackgroundFillStyle()
Return the background fill attributes. |
java.awt.Color |
getColumnAxisBackgroundColor()
Deprecated. use getColumnAxisValueCellBackgroundColor() |
java.awt.Color |
getColumnAxisValueCellBackgroundColor()
Returns the color for the Column matrix axis value cell's background color. |
int |
getColumnRowAxisValueShadingPolicy()
|
DataElementStyles |
getDataElementStyles()
Returns the Styles used for data elements. |
TextStyle |
getDataLabelTextStyle()
Returns the display attributes used for data label text. |
java.awt.Color |
getDataTipBackgroundColor()
Returns the interior color of the DatatTip's window. |
TextStyle |
getDataTipTextStyle()
Returns the display attributes used for data tip text. |
FillStyle |
getFloorFillStyle()
Returns the FillStyle attributes used for the chart floor. |
TextStyle |
getFootnote1TextStyle()
Return the TextStyle used for the first footnote. |
TextStyle |
getFootnote2TextStyle()
Return the TextStyle used for the second footnote. |
LineStyle |
getFrameLineStyle()
Gets the frame line style Note: null may be returned. |
StrokeLineStyle |
getGridLineStyle()
Returns grid line display attributes. |
TextStyle |
getLabelTextStyle()
Returns the text attributes used on axis labels and legend label. |
FillStyle |
getLegendBackgroundFillStyle()
Returns the FillStyle attributes used on legend background. |
ShadowStyle |
getLegendShadowStyle()
Returns the ShadowStyle attributes used on legends. |
TickStyle |
getMajorTickStyle()
Returns the axes' major tick mark display attributes. |
TickStyle |
getMinorTickStyle()
Returns the axes' minor tick mark display attributes. |
int |
getName()
Returns the value of the predefined graph style name. |
java.awt.Color |
getRowAxisBackgroundColor()
Deprecated. use getRowAxisValueCellBackgroundColor() |
java.awt.Color |
getRowAxisValueCellBackgroundColor()
Returns the color for the Row matrix axis value cell's background color. |
java.awt.Color |
getSelectionAccentColor()
Returns the secondary color used to indicate selection. |
java.awt.Color |
getSelectionColor()
Returns the primary color used to indicate selection. |
TextStyle |
getTitle1TextStyle()
Return the TextStyle used for the first title. |
TextStyle |
getTitle2TextStyle()
Return the TextStyle used for the second title. |
TextStyle |
getTitle3TextStyle()
Return the TextStyle used for the third title. |
TextStyle |
getTitle4TextStyle()
Return the TextStyle used for the fourth title. |
TextStyle |
getValueTextStyle()
Returns the text attributes used for axis values text. |
FillStyle |
getWallFillStyle()
Returns the FillStyle attributes used for the axis walls. |
FillStyle |
getWeekendBandFillStyle()
Returns the FillStyle attributes used for the weekend bands. |
boolean |
isModified()
Returns whether or not the style has been modified from its initial defined state. |
void |
setAxisLineStyle(StrokeLineStyle newLineStyle)
Set axis line display attributes. |
void |
setBackgroundFillStyle(FillStyle newFillStyle)
Set the background fill attributes. |
void |
setColumnAxisBackgroundColor(java.awt.Color newColor)
Deprecated. use setColumnAxisValueCellBackgroundColor(java.awt.Color) |
void |
setColumnAxisValueCellBackgroundColor(java.awt.Color newColor)
Set the color for the Column matrix axis value cell's background color. |
void |
setColumnRowAxisValueShadingPolicy(int newShadingPolicy)
|
void |
setDataLabelTextStyle(TextStyle newTextStyle)
Set the display attributes used for data label text (such as the BarChart's bar labels, the PieChart's slice labels or the ScatterChart's marker labels). |
void |
setDataTipBackgroundColor(java.awt.Color newColor)
Sets the interior color of the DatatTip's window. |
void |
setDataTipTextStyle(TextStyle newTextStyle)
Set the display attributes used for data tip text. |
void |
setFloorFillStyle(FillStyle newFillStyle)
Set the FillStyle attributes used for the chart floor. |
void |
setFootnote1TextStyle(TextStyle newTextStyle)
Set the TextStyle used for the first footnote. |
void |
setFootnote2TextStyle(TextStyle newTextStyle)
Set the TextStyle used for the second footnote. |
void |
setFrameLineStyle(LineStyle newFrameLineStyle)
Sets the frame line style Note: this property can be null . |
void |
setGridLineStyle(StrokeLineStyle newLineStyle)
Set the grid line display attributes. |
void |
setLabelTextStyle(TextStyle newTextStyle)
Set the text attributes used on axis labels and legend label. |
void |
setLegendBackgroundFillStyle(FillStyle newFillStyle)
Set the FillStyle attributes used on legend background. |
void |
setLegendShadowStyle(ShadowStyle newShadowStyle)
Set the ShadowStyle attributes used on legends. |
void |
setMajorTickStyle(TickStyle newTickStyle)
Set axes' major tick mark display attributes. |
void |
setMinorTickStyle(TickStyle newTickStyle)
Set axes' minor tick mark display attributes. |
void |
setRowAxisBackgroundColor(java.awt.Color newColor)
Deprecated. use setRowAxisValueCellBackgroundColor(java.awt.Color) |
void |
setRowAxisValueCellBackgroundColor(java.awt.Color newColor)
Set the color for the Row matrix axis value cell's background color. |
void |
setSelectionAccentColor(java.awt.Color neweSelectionAccentColor)
Sets the secondary color used to indicate selection. |
void |
setSelectionColor(java.awt.Color newSelectionColor)
Sets the primary color used to indicate selection. |
void |
setTitle1TextStyle(TextStyle newTextStyle)
Set the TextStyle used for the first title. |
void |
setTitle2TextStyle(TextStyle newTextStyle)
Set the TextStyle used for the second title. |
void |
setTitle3TextStyle(TextStyle newTextStyle)
Set the TextStyle used for the third title. |
void |
setTitle4TextStyle(TextStyle newTextStyle)
Set the TextStyle used for the fourth title. |
void |
setValueTextStyle(TextStyle newTextStyle)
Set the text attributes used for axis values text. |
void |
setWallFillStyle(FillStyle newFillStyle)
Set the FillStyle attributes used for the axis walls. |
void |
setWeekendBandFillStyle(FillStyle newFillStyle)
Set the FillStyle attributes used for weekend bands. |
java.lang.String |
toString()
|
Methods inherited from class com.sas.graphics.components.ModelBase |
---|
addPropertyChangeListener, equals, firePropertyChange, firePropertyChange, firePropertyChange, hashCode, removePropertyChangeListener, setContainedModel |
Field Detail |
---|
public static final java.lang.String RB_KEY
public static final int STYLE_ANALYSIS
public static final int STYLE_ASTRONOMY
public static final int STYLE_BANKER
public static final int STYLE_BLOCKPRINT
public static final int STYLE_CONVENTION
public static final int STYLE_CURVE
public static final int STYLE_EDUCATION
public static final int STYLE_ELECTRONICS
public static final int STYLE_GEARS
public static final int STYLE_MAGNIFY
public static final int STYLE_MONEY
public static final int STYLE_MONOCHROME
public static final int STYLE_RSVP
public static final int STYLE_SCIENCE
public static final int STYLE_SKETCH
public static final int STYLE_STATISTICAL
public static final int STYLE_TORN
public static final int STYLE_WATERCOLOR
public static final int STYLE_OLAP
public static final int STYLE_GANTTCHART
public static final ConstantCollection STYLE
Constructor Detail |
---|
public GraphStyle()
public GraphStyle(int newGraphStyleName)
If the parameter is not recognised as one of the valid predefined graph style names, Convention graph style is created.
Valid parameters are:
newGraphStyleName
- a valid named style which you wish to be created.Method Detail |
---|
protected void firePropertyChange(java.lang.String propertyName, java.lang.Object oldProperty, java.lang.Object newProperty)
ModelBase
firePropertyChange
in class ModelBase
propertyName
- the property being changedoldProperty
- the value being changed fromnewProperty
- the value being changed topublic java.lang.String toString()
toString
in class java.lang.Object
protected void firePropertyChange(java.lang.String propertyName, ModelBase oldProperty, ModelBase newProperty)
ModelBase
firePropertyChange
in class ModelBase
propertyName
- the property being changedoldProperty
- the value being changed fromnewProperty
- the value being changed topublic int getName()
public boolean isModified()
public void setTitle1TextStyle(TextStyle newTextStyle) throws java.lang.IllegalArgumentException
newTextStyle
- the 1st title's display attributes
java.lang.IllegalArgumentException
- if newTextStyle is null.getTitle1TextStyle()
,
TextStyle.apply(com.sas.graphics.components.TextStyle)
public TextStyle getTitle1TextStyle()
setTitle1TextStyle(com.sas.graphics.components.TextStyle)
,
TextStyle.apply(com.sas.graphics.components.TextStyle)
public void setTitle2TextStyle(TextStyle newTextStyle) throws java.lang.IllegalArgumentException
newTextStyle
- the 2nd title's display attributes
java.lang.IllegalArgumentException
- if newTextStyle is null.getTitle2TextStyle()
,
TextStyle.apply(com.sas.graphics.components.TextStyle)
public TextStyle getTitle2TextStyle()
setTitle2TextStyle(com.sas.graphics.components.TextStyle)
,
TextStyle.apply(com.sas.graphics.components.TextStyle)
public void setTitle3TextStyle(TextStyle newTextStyle) throws java.lang.IllegalArgumentException
newTextStyle
- the 3rd title's display attributes
java.lang.IllegalArgumentException
- if newTextStyle is null.getTitle3TextStyle()
,
TextStyle.apply(com.sas.graphics.components.TextStyle)
public TextStyle getTitle3TextStyle()
setTitle3TextStyle(com.sas.graphics.components.TextStyle)
,
TextStyle.apply(com.sas.graphics.components.TextStyle)
public void setTitle4TextStyle(TextStyle newTextStyle) throws java.lang.IllegalArgumentException
newTextStyle
- the 4th title's display attributes
java.lang.IllegalArgumentException
- if newTextStyle is null.getTitle4TextStyle()
,
TextStyle.apply(com.sas.graphics.components.TextStyle)
public TextStyle getTitle4TextStyle()
setTitle4TextStyle(com.sas.graphics.components.TextStyle)
,
TextStyle.apply(com.sas.graphics.components.TextStyle)
public void setFootnote1TextStyle(TextStyle newTextStyle) throws java.lang.IllegalArgumentException
newTextStyle
- the 1st footnote's display attributes
java.lang.IllegalArgumentException
- if newTextStyle is null.getFootnote1TextStyle()
,
TextStyle.apply(com.sas.graphics.components.TextStyle)
public TextStyle getFootnote1TextStyle()
setFootnote1TextStyle(com.sas.graphics.components.TextStyle)
,
TextStyle.apply(com.sas.graphics.components.TextStyle)
public void setFootnote2TextStyle(TextStyle newTextStyle) throws java.lang.IllegalArgumentException
newTextStyle
- the 2nd footnote's display attributes
java.lang.IllegalArgumentException
- if newTextStyle is null.getFootnote2TextStyle()
,
TextStyle.apply(com.sas.graphics.components.TextStyle)
public TextStyle getFootnote2TextStyle()
setFootnote2TextStyle(com.sas.graphics.components.TextStyle)
,
TextStyle.apply(com.sas.graphics.components.TextStyle)
public void setBackgroundFillStyle(FillStyle newFillStyle) throws java.lang.IllegalArgumentException
newFillStyle
- the background display attributes
java.lang.IllegalArgumentException
- if newFillStyle is null.getBackgroundFillStyle()
,
FillStyle.apply(com.sas.graphics.components.FillStyle)
public FillStyle getBackgroundFillStyle()
FillStyle.apply(com.sas.graphics.components.FillStyle)
public void setWallFillStyle(FillStyle newFillStyle) throws java.lang.IllegalArgumentException
newFillStyle
- the axis wall display attributes
java.lang.IllegalArgumentException
- if newFillStyle is null.getWallFillStyle()
,
FillStyle.apply(com.sas.graphics.components.FillStyle)
public FillStyle getWallFillStyle()
null
may be returned.
Only applies to charts that have axes.
public void setWeekendBandFillStyle(FillStyle newFillStyle) throws java.lang.IllegalArgumentException
newFillStyle
- the weekend band display attributes
java.lang.IllegalArgumentException
- if newFillStyle is null.getWeekendBandFillStyle()
,
FillStyle.apply(com.sas.graphics.components.FillStyle)
public FillStyle getWeekendBandFillStyle()
null
may be returned.
Only applies to charts that have date axes.
setWeekendBandFillStyle(FillStyle)
public void setFloorFillStyle(FillStyle newFillStyle) throws java.lang.IllegalArgumentException
newFillStyle
- the axis floor display attributes
java.lang.IllegalArgumentException
- if newFillStyle is null.getFloorFillStyle()
,
FillStyle.apply(com.sas.graphics.components.FillStyle)
public FillStyle getFloorFillStyle()
setFloorFillStyle(com.sas.graphics.components.FillStyle)
,
FillStyle.apply(com.sas.graphics.components.FillStyle)
public void setLegendBackgroundFillStyle(FillStyle newFillStyle)
null
.
The asGraphStyle
method on the Graph
class
will return a GraphStyle
. If the legendBackgroundFillStyle properties
vary between the Graph's legends then the state is considered ambiguous.
null
is used to signify this ambiguity.
Note: The legend background does not support gradient fills.
newFillStyle
- the legend background display attributesgetLegendBackgroundFillStyle()
,
FillStyle.apply(com.sas.graphics.components.FillStyle)
public FillStyle getLegendBackgroundFillStyle()
null
may be returned.
Note: The legend background does not support gradient fills.
setLegendBackgroundFillStyle(com.sas.graphics.components.FillStyle)
,
FillStyle.apply(com.sas.graphics.components.FillStyle)
public void setLegendShadowStyle(ShadowStyle newShadowStyle)
null
.
The asGraphStyle
method on the Graph
class
will return a GraphStyle
. If the legendShadowStyle properties
vary between the Graph's legends (where applicable) then the state is considered ambiguious.
null
is used to signify this ambiguity.
newShadowStyle
- the legend background display attributesgetLegendShadowStyle()
,
ShadowStyle.apply(com.sas.graphics.components.ShadowStyle)
public ShadowStyle getLegendShadowStyle()
null
may be returned.
setLegendShadowStyle(com.sas.graphics.components.ShadowStyle)
,
ShadowStyle.apply(com.sas.graphics.components.ShadowStyle)
public void setLabelTextStyle(TextStyle newTextStyle)
null
.
The asGraphStyle
method on the Graph
class
will return a GraphStyle
. If the labelTextStyle properties
vary between the Graph's labels then the state is considered ambiguous.
null
is used to signify this ambiguity.
newTextStyle
- the axis label display attributesgetLabelTextStyle()
,
TextStyle.apply(com.sas.graphics.components.TextStyle)
public TextStyle getLabelTextStyle()
null
may be returned.
setLabelTextStyle(com.sas.graphics.components.TextStyle)
,
TextStyle.apply(com.sas.graphics.components.TextStyle)
public void setValueTextStyle(TextStyle newTextStyle)
null
.
The asGraphStyle
method on the Graph
class
will return a GraphStyle
. If the valueTextStyle properties
vary between the Graph's values then the state is considered ambiguous.
null
is used to signify this ambiguity.
newTextStyle
- the axis value display attributesgetValueTextStyle()
,
TextStyle.apply(com.sas.graphics.components.TextStyle)
public TextStyle getValueTextStyle()
null
may be returned.
setValueTextStyle(com.sas.graphics.components.TextStyle)
,
TextStyle.apply(com.sas.graphics.components.TextStyle)
public void setDataLabelTextStyle(TextStyle newTextStyle)
null
.
The asGraphStyle
method on the Graph
class
will return a GraphStyle
. If the TextStyle properties
vary between the Graph's data labels then the state is considered ambiguous.
null
is used to signify this ambiguity.
newTextStyle
- the data label text display attributesgetDataLabelTextStyle()
,
TextStyle.apply(com.sas.graphics.components.TextStyle)
public TextStyle getDataLabelTextStyle()
null
may be returned.
setDataLabelTextStyle(com.sas.graphics.components.TextStyle)
,
TextStyle.apply(com.sas.graphics.components.TextStyle)
public void setDataTipTextStyle(TextStyle newTextStyle)
newTextStyle
- the data tip text display attributesgetDataTipTextStyle()
,
TextStyle.apply(com.sas.graphics.components.TextStyle)
public TextStyle getDataTipTextStyle()
null
may be returned.
setDataTipTextStyle(com.sas.graphics.components.TextStyle)
,
TextStyle.apply(com.sas.graphics.components.TextStyle)
public void setDataTipBackgroundColor(java.awt.Color newColor)
newColor
- the color of the DatatTip's window interiorgetDataTipBackgroundColor()
public java.awt.Color getDataTipBackgroundColor()
setDataTipBackgroundColor(java.awt.Color)
public void setRowAxisValueCellBackgroundColor(java.awt.Color newColor)
newColor
- the row matrix axis value cell background colorgetRowAxisValueCellBackgroundColor()
public java.awt.Color getRowAxisValueCellBackgroundColor()
setRowAxisValueCellBackgroundColor(java.awt.Color)
public void setColumnAxisValueCellBackgroundColor(java.awt.Color newColor)
newColor
- the column matrix axis value cell background colorgetColumnAxisValueCellBackgroundColor()
public java.awt.Color getColumnAxisValueCellBackgroundColor()
setColumnAxisValueCellBackgroundColor(java.awt.Color)
public void setAxisLineStyle(StrokeLineStyle newLineStyle)
null
.
The asGraphStyle
method on the Graph
class
will return a GraphStyle
. If the axisLineStyle properties
vary between the Graph's axes then the state is considered ambiguous.
null
is used to signify this ambiguity.
newLineStyle
- the axis line display attributesgetAxisLineStyle()
,
LineStyle.apply(com.sas.graphics.components.LineStyle)
public StrokeLineStyle getAxisLineStyle()
null
may be returned.
setAxisLineStyle(com.sas.graphics.components.StrokeLineStyle)
,
StrokeLineStyle.apply(com.sas.graphics.components.StrokeLineStyle)
public void setGridLineStyle(StrokeLineStyle newLineStyle)
null
.
The asGraphStyle
method on the Graph
class
will return a GraphStyle
. If the gridLineStyle properties
vary between the Graph's axes then the state is considered ambiguous.
null
is used to signify this ambiguity.
newLineStyle
- the grid line display attributesgetGridLineStyle()
,
StrokeLineStyle.apply(com.sas.graphics.components.StrokeLineStyle)
public StrokeLineStyle getGridLineStyle()
null
may be returned.
setGridLineStyle(com.sas.graphics.components.StrokeLineStyle)
,
StrokeLineStyle.apply(com.sas.graphics.components.StrokeLineStyle)
public void setMajorTickStyle(TickStyle newTickStyle)
null
.
The asGraphStyle
method on the Graph
class
will return a GraphStyle
. If the majorTickStyle properties
vary between the Graph's axes then the state is considered ambiguous.
null
is used to signify this ambiguity.
newTickStyle
- the axes' major tick mark display attributesgetMajorTickStyle()
,
TickStyle.apply(com.sas.graphics.components.TickStyle)
public TickStyle getMajorTickStyle()
null
may be returned.
setMajorTickStyle(com.sas.graphics.components.TickStyle)
,
TickStyle.apply(com.sas.graphics.components.TickStyle)
public void setMinorTickStyle(TickStyle newTickStyle)
null
.
The asGraphStyle
method on the Graph
class
will return a GraphStyle
. If the minorTickStyle properties
vary between the Graph's axes then the state is considered ambiguous.
null
is used to signify this ambiguity.
newTickStyle
- the axes' minor tick mark display attributesgetMinorTickStyle()
,
TickStyle.apply(com.sas.graphics.components.TickStyle)
public TickStyle getMinorTickStyle()
null
may be returned.
setMinorTickStyle(com.sas.graphics.components.TickStyle)
,
TickStyle.apply(com.sas.graphics.components.TickStyle)
public DataElementStyles getDataElementStyles()
DataElementStyles.apply(com.sas.graphics.components.DataElementStyles)
public void setSelectionColor(java.awt.Color newSelectionColor) throws java.lang.IllegalArgumentException
In the case of selected text the selectionColor is applied as the text's background color.
The default value is java.awt.SystemColor.textHighlight.
Graph.applyGraphStyle(GraphStyle) must be called before this property setting will appear in a Graph.
newSelectionColor
- the primary color used to indicate selection.
java.lang.IllegalArgumentException
getSelectionColor()
public java.awt.Color getSelectionColor()
setSelectionColor(java.awt.Color)
public void setSelectionAccentColor(java.awt.Color neweSelectionAccentColor) throws java.lang.IllegalArgumentException
In the case of selected text the selectionAccentColor is applied as the text's foreground color.
The default value is java.awt.SystemColor.textHighlightText.
Graph.applyGraphStyle(ColorScheme) must be called before this property setting will appear in a Graph.
neweSelectionAccentColor
- the secondary color used to indicate selection.
java.lang.IllegalArgumentException
getSelectionAccentColor()
public java.awt.Color getSelectionAccentColor()
setSelectionAccentColor(java.awt.Color)
public void setFrameLineStyle(LineStyle newFrameLineStyle)
null
.
The asGraphStyle
method on the Graph
class
will return a GraphStyle
. If the frameLineStyle properties
vary between the Graph's matrix axes, legend and frame then the state
is considered ambiguous. null
is used to signify this ambiguity.
newFrameLineStyle
- the frame line style properties for graph and legendgetFrameLineStyle()
public LineStyle getFrameLineStyle()
null
may be returned.
setFrameLineStyle(com.sas.graphics.components.LineStyle)
public void setRowAxisBackgroundColor(java.awt.Color newColor)
public java.awt.Color getRowAxisBackgroundColor()
public void setColumnAxisBackgroundColor(java.awt.Color newColor)
public java.awt.Color getColumnAxisBackgroundColor()
public void setColumnRowAxisValueShadingPolicy(int newShadingPolicy)
public int getColumnRowAxisValueShadingPolicy()
public void applyTextShadowStyle(ShadowStyle newShadowStyle)
newShadowStyle
- the shadow attribute for the text elementspublic ShadowStyle asTextShadowStyle()
public void applyColorScheme(ColorScheme cs)
Note: Any color transparency set on an individual color object is multiplied by the transparency found specified in the graph style for the colors found in the legend background, background, wall, floor and data elements.
public int getAppliedColorSchemeName()
public ColorScheme asColorScheme()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |