|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object prefuse.data.query.DynamicQueryBinding prefuse.data.query.RangeQueryBinding
public class RangeQueryBinding
DynamicQueryBinding supporting queries based on a range of included data values.
Field Summary |
---|
Fields inherited from class prefuse.data.query.DynamicQueryBinding |
---|
m_field, m_query, m_tuples |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class prefuse.data.query.DynamicQueryBinding |
---|
getPredicate, setPredicate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |