public abstract class DataFilterImpl extends java.lang.Object implements DataFilter
Modifier and Type | Field and Description |
---|---|
static int |
BUBBLE_LABELS_TYPE |
static int |
BUBBLE_TYPE |
protected int |
d_totalMeasures |
static int |
FUNNEL_TYPE |
protected static int |
GROUP_SIZE_FIVE |
protected static int |
GROUP_SIZE_FOUR |
protected static int |
GROUP_SIZE_THREE |
protected static int |
GROUP_SIZE_TWO |
static int |
HL_TYPE |
static int |
HLC_TYPE |
static int |
HLCV_TYPE |
static int |
HLV_TYPE |
protected int[] |
m_currentArray |
protected int |
m_currentGroupSize |
protected int |
m_dataModelType |
protected int[] |
m_filteredParetoIndex |
protected boolean |
m_filterOn |
protected int |
m_graphCategory |
protected int |
m_graphType |
protected boolean |
m_isDirtyFlag |
protected static java.lang.String |
m_lessTotalMeasures |
protected int[][] |
m_measuresArrays |
protected static java.lang.String |
m_method_setMeasures2 |
protected static java.lang.String |
m_method_setMeasures3 |
protected static java.lang.String |
m_nonFilterArray |
protected boolean |
m_oneGrpLabel |
protected int[] |
m_paretoIndex |
protected boolean |
m_seriesAreRows |
protected boolean |
m_sortingOn |
protected int |
m_totalMeasures |
protected static java.lang.String |
m_unequalLength |
static int |
NON_FILTER_TYPE |
static int |
OC_TYPE |
static int |
OCV_TYPE |
static int |
OHLC_TYPE |
static int |
OHLCV_TYPE |
static int |
SCATTER_LABELS_TYPE |
static int |
SCATTER_TYPE |
static int |
TOTAL_CATEGORIES |
Constructor and Description |
---|
DataFilterImpl() |
Modifier and Type | Method and Description |
---|---|
int |
getColumns()
Retrieves the total number of columns in the data.
|
protected abstract DataAccess |
getDataAccess() |
int |
getDataAccessColumn(int filteredColumn)
Retrieves the dataAccess column if filtered column is given.
|
int |
getDataAccessRow(int filteredRow)
Retrieves the dataAccess row if filtered row is given.
|
protected abstract ErrorHandler |
getErrorHandler() |
int |
getFilteredColumn(int dataAccessColumn)
Retrieves the filtered column if dataAccess column is given.
|
int |
getFilteredRow(int dataAccessRow)
Retrieves the filtered row if dataAccess row is given.
|
static int |
getGraphCategory(int graphType) |
protected int |
getGroupSize(int graphCategory) |
int[][] |
getMArray() |
int[] |
getMeasures()
Retrieves the array of measure indexes to use from the DataSource for the
current Graph type.
|
int[] |
getMeasures(int graphType)
Retrieves the array of measure indexes to use from the DataSource for the
specified Graph type.
|
int |
getRows()
Retrieves the total number of rows in the data.
|
int |
getTotalMeasures()
Returns the total number of measures in the DataSource that was set using
setMeasures() method.
|
abstract java.lang.Object |
getValue(int row,
int col) |
boolean |
isDirty()
Indicates whether the graph needs to be repainted.
|
protected boolean |
isExcelOrDeskTop() |
protected abstract void |
needRec() |
void |
refresh()
The application can call this method to refresh the arrays of measure indexes
that are previously set.
|
protected void |
setDataModelType(int model) |
void |
setDataRowShownAsASeries(boolean seriesAreRows)
Deprecated.
@deprecated There is no replacement method for this.
Application developers are responsible to create the relevant data set.
|
void |
setDirty(boolean isDirty)
Specifies whether the graph needs to be repainted.
|
void |
setGraphType(int graphType) |
void |
setMArray(int[][] array) |
void |
setMeasures(int[] measures,
int totalMeasures)
Specifies the array of measure indexes to use from the DataSource and the total
number of measures available in the DataSource for the current Graph type.
|
void |
setMeasures(int graphType,
int[] measures,
int totalMeasures)
Specifies the array of measure indexes to use from the DataSource for the
given Graph type and the total number of measures in the DataSource.
|
void |
setMeasuresForCategory(int graphCategory,
int[] measures,
int totalMeasures) |
void |
setTotalMeasures(int total) |
void |
sortIfDirty()
Sorts Pareto data if dirty
|
protected int m_graphType
protected int m_dataModelType
protected boolean m_seriesAreRows
protected boolean m_isDirtyFlag
protected boolean m_filterOn
protected boolean m_sortingOn
protected boolean m_oneGrpLabel
protected int[][] m_measuresArrays
protected int m_totalMeasures
protected int[] m_currentArray
protected int[] m_paretoIndex
protected int[] m_filteredParetoIndex
protected int m_graphCategory
protected int m_currentGroupSize
public static final int NON_FILTER_TYPE
public static final int SCATTER_TYPE
public static final int SCATTER_LABELS_TYPE
public static final int BUBBLE_TYPE
public static final int BUBBLE_LABELS_TYPE
public static final int OHLCV_TYPE
public static final int OHLC_TYPE
public static final int HLV_TYPE
public static final int OCV_TYPE
public static final int OC_TYPE
public static final int HL_TYPE
public static final int HLC_TYPE
public static final int HLCV_TYPE
public static final int FUNNEL_TYPE
public static final int TOTAL_CATEGORIES
protected static final int GROUP_SIZE_TWO
protected static final int GROUP_SIZE_THREE
protected static final int GROUP_SIZE_FOUR
protected static final int GROUP_SIZE_FIVE
protected int d_totalMeasures
protected static final java.lang.String m_method_setMeasures2
protected static final java.lang.String m_method_setMeasures3
protected static final java.lang.String m_unequalLength
protected static final java.lang.String m_nonFilterArray
protected static final java.lang.String m_lessTotalMeasures
public void setGraphType(int graphType)
@Deprecated public void setDataRowShownAsASeries(boolean seriesAreRows)
public int[] getMeasures()
getMeasures
in interface DataFilter
public int[] getMeasures(int graphType)
getMeasures
in interface DataFilter
graphType
- the GraphType for which the array is needed.public void setMeasures(int[] measures, int totalMeasures)
setMeasures
in interface DataFilter
measures
- the array of measure indexestotalMeasures
- the total number measures in the dataSourcepublic void setMeasures(int graphType, int[] measures, int totalMeasures)
setMeasures
in interface DataFilter
graphType
- the graph type for which the array of measure indexes should be usedmeasures
- the array of measure indexestotalMeasures
- the total number measures in the dataSourcepublic void setMeasuresForCategory(int graphCategory, int[] measures, int totalMeasures)
public void refresh()
refresh
in interface DataFilter
public int getColumns()
Graph.isDataRowShownAsASeries
method returns.Graph.isDataRowShownAsASeries()
,
DataAccess
public int getRows()
Graph.isDataRowShownAsASeries
method returns.Graph.isDataRowShownAsASeries()
,
DataAccess
public boolean isDirty()
true
if the data needs to be repainted,
false
if the data has not changed since the graph
was painted.public void sortIfDirty()
public void setDirty(boolean isDirty)
false
as the isDirty
parameter.
Then, when a change occurs, this method is called, with
true
as the isDirty
parameter.isDirty
- true
if the a change has occurred that
requires the graph to be repainted,
false
if the graph has just been repainted.public int getDataAccessColumn(int filteredColumn)
getDataAccessColumn
in interface DataFilter
filteredColumn
- the filtered columnpublic int getDataAccessRow(int filteredRow)
getDataAccessRow
in interface DataFilter
filteredRow
- the filtered rowpublic int getFilteredColumn(int dataAccessColumn)
getFilteredColumn
in interface DataFilter
dataAccessColumn
- the column in the DataAccesspublic int getFilteredRow(int dataAccessRow)
getFilteredRow
in interface DataFilter
dataAccessRow
- the row in the DataAccesspublic int getTotalMeasures()
getTotalMeasures
in interface DataFilter
public void setTotalMeasures(int total)
public int[][] getMArray()
public void setMArray(int[][] array)
protected void setDataModelType(int model)
public abstract java.lang.Object getValue(int row, int col)
protected abstract void needRec()
protected abstract DataAccess getDataAccess()
protected abstract ErrorHandler getErrorHandler()
protected int getGroupSize(int graphCategory)
public static int getGraphCategory(int graphType)
protected boolean isExcelOrDeskTop()