public class RangeQueryBinding extends DynamicQueryBinding
m_field, m_query, m_tuples
Constructor and Description |
---|
RangeQueryBinding(TupleSet ts,
java.lang.String field)
Create a new RangeQueryBinding over the given set and data field.
|
RangeQueryBinding(TupleSet ts,
java.lang.String field,
boolean forceOrdinal)
Create a new RangeQueryBinding over the given set and data field,
optionally forcing an ordinal treatment of data.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.JComponent |
createComponent()
Create a new horizontal range slider for interacting with the query.
|
JRangeSlider |
createHorizontalRangeSlider()
Create a new horizontal range slider for interacting with the query.
|
JRangeSlider |
createRangeSlider(int orientation,
int direction)
Create a new range slider for interacting with the query, using the
given orientation and direction.
|
javax.swing.JSlider |
createSlider()
Create a new regular (non-range) slider for interacting with the query.
|
JRangeSlider |
createVerticalRangeSlider()
Create a new vertical range slider for interacting with the query.
|
ValuedRangeModel |
getModel()
Return the ValuedRangeModel constructed by this dynamic query binding.
|
NumberRangeModel |
getNumberModel()
Attempts to return the ValuedRangeModel for this binding as a
NumberRangeModel.
|
ObjectRangeModel |
getObjectModel()
Attempts to return the ValuedRangeModel for this binding as an
ObjectRangeModel.
|
void |
initModel() |
getPredicate, setPredicate
public RangeQueryBinding(TupleSet ts, java.lang.String field)
ts
- the TupleSet to queryfield
- the data field (Table column) to querypublic RangeQueryBinding(TupleSet ts, java.lang.String field, boolean forceOrdinal)
ts
- the TupleSet to queryfield
- the data field (Table column) to queryforceOrdinal
- if true, forces all items in the range to be
treated in strictly ordinal fashion. That means that if the data
is numerical, the quantitative nature of the data will be ignored
and only the relative ordering of the numbers will matter. In terms
of mechanism, this entails that a ObjectRangeModel
and not
a NumberRangeModel
will be used to represent the data. If
the argument is false, default inference mechanisms will be used.public void initModel()
public ValuedRangeModel getModel()
public NumberRangeModel getNumberModel()
NumberRangeModel
, a null value is returned.NumberRangeModel
, or null if the range is not numerical.public ObjectRangeModel getObjectModel()
ObjectRangeModel
, a null value is returned.ObjectRangeModel
, or null if the range is numerical.public javax.swing.JComponent createComponent()
createComponent
in class DynamicQueryBinding
JRangeSlider
bound to this dynamic
query.DynamicQueryBinding.createComponent()
public JRangeSlider createHorizontalRangeSlider()
JRangeSlider
bound to this dynamic
query.public JRangeSlider createVerticalRangeSlider()
JRangeSlider
bound to this dynamic
query.public JRangeSlider createRangeSlider(int orientation, int direction)
orientation
- the orientation (horizontal or vertical) of the
slider (see JRangeSlider
)direction
- the direction (direction of data values) of the slider
(see JRangeSlider
)JRangeSlider
bound to this dynamic
query.public javax.swing.JSlider createSlider()
JSlider
bound to this dynamic query.Copyright ? 2013 Regents of the University of California