|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.graphics.components.DataModel
public abstract class DataModel
The DataModel class contains general chart data preferences.
It is a base to be sub-classed by the specific chart data model classes (such as BarChartDataModel), and therefore will contain only properties common to all chart types.
ModelBase
,
BarChartDataModel
,
PieChartDataModel
,
ScatterPlotDataModel
Constructor Summary | |
---|---|
DataModel()
|
Method Summary | |
---|---|
void |
apply(DataModel theOtherModel)
Utility method to convey properties contained in "theOtherModel" to this object. |
boolean |
equals(java.lang.Object obj)
Determines whether another object is equal to this DataModel . |
java.util.Locale |
getLocale()
Returns the locale utilised during the formatting of data values. |
com.sas.rpf.Context |
getRulesContext()
|
int |
getSortStrategy()
|
int |
hashCode()
Computes the hash code for this DataModel . |
void |
setLocale(java.util.Locale newLocale)
Sets the locale utilised during the formatting of data values. |
void |
setRulesContext(com.sas.rpf.Context newRulesContext)
|
void |
setSortStrategy(int newSortStrategy)
|
Methods inherited from class com.sas.graphics.components.ModelBase |
---|
addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, setContainedModel |
Constructor Detail |
---|
public DataModel()
Method Detail |
---|
public com.sas.rpf.Context getRulesContext()
public void setRulesContext(com.sas.rpf.Context newRulesContext)
public void setLocale(java.util.Locale newLocale)
com.sas.storage.iquery.BusinessQueryToTableModelAdapter
(implements java.util.TableModel
)
and (2) com.sas.storage.olap.OLAPDataSetInterface
supports a locale property that can be associated with the data. If either of these
models are assigned and their locale property is non-null then their locale property will trump (i.e. override) this property. This property is primarily
a stop-gap measure to ensure that users always retain the option of specifying a data format specific locale.
Why is a data format locale even necessary?
Certain SAS currency formats obtain there currency symbol based upon the specified locale (Ex. "NLMNY"). If the data is representing Japanese Yen then
you certainly don't want a client's locale of US to trigger the format to represent the data as if it were dollars. This property allows the locale
applied to te data format to vary independently from the component's locale. So that any warning, error or informational messages displayed by the graph
component can appear utilising the client's locale while simultaneously the locale applied during the data formatting can retain its context which is
primarily necessary when currency formats are specified.
newLocale
- the data format localegetLocale()
public java.util.Locale getLocale()
setLocale
.
setLocale(java.util.Locale)
public void setSortStrategy(int newSortStrategy)
public int getSortStrategy()
public void apply(DataModel theOtherModel)
public boolean equals(java.lang.Object obj)
DataModel
.
The result is true
if and only if the
argument is not null
and is
a DataModel
object that has
the same property values as this object.
equals
in class ModelBase
obj
- the object to test for equality with this DataModel
true
if the objects are the same; false
otherwise.public int hashCode()
DataModel
.
hashCode
in class ModelBase
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |