|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfovis.utils.ChangeManager
infovis.column.AbstractColumn
infovis.column.ColumnProxy
infovis.table.TableProxy
infovis.visualization.DefaultVisualization
infovis.table.visualization.ScatterPlotVisualization
public class ScatterPlotVisualization
Scatter plot visualization.
Visualize a table with a scatter plot representation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface infovis.visualization.magicLens.LabeledComponent |
|---|
LabeledComponent.LabeledItem |
| Field Summary | |
|---|---|
static String |
PROPERTY_X_AXIS_MODEL
Name of the property for x axis model change notification |
static String |
PROPERTY_Y_AXIS_MODEL
Name of the property for y axis model change notification |
static String |
VISUAL_X_AXIS
|
static String |
VISUAL_Y_AXIS
|
| Fields inherited from class infovis.column.AbstractColumn |
|---|
MODIFIED_ALL, MODIFIED_NONE |
| Fields inherited from interface infovis.Visualization |
|---|
PROPERTY_INTERACTOR, PROPERTY_ITEM_RENDERER, PROPERTY_LAYOUT, PROPERTY_ORIENTATION, PROPERTY_PARENT, PROPERTY_PERMUTATION, PROPERTY_RULERS, VC_DESCRIPTOR_PROPERTY_PREFIX, VISUAL_ALPHA, VISUAL_COLOR, VISUAL_FILTER, VISUAL_HOVER, VISUAL_LABEL, VISUAL_SELECTION, VISUAL_SHAPE, VISUAL_SIZE |
| Fields inherited from interface infovis.visualization.Orientable |
|---|
DIRECTION, NAME, ORIENTATION_CENTER, ORIENTATION_EAST, ORIENTATION_INVALID, ORIENTATION_NORTH, ORIENTATION_SOUTH, ORIENTATION_WEST, SQRT2 |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface infovis.Table |
|---|
FILTER_COLUMN, INTERNAL_PREFIX, NIL, SELECTION_COLUMN |
| Fields inherited from interface infovis.metadata.Constants |
|---|
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE |
| Constructor Summary | |
|---|---|
ScatterPlotVisualization(Table table)
Creates a new ScatterPlotVisualization object. |
|
ScatterPlotVisualization(Table table,
Column xAxis,
Column yAxis)
Creates a new ScatterPlotVisualization object. |
|
ScatterPlotVisualization(Table table,
String xAxis,
String yAxis)
Creates a new ScatterPlotVisualization object. |
|
| Method Summary | |
|---|---|
void |
computeShapes(Rectangle2D bounds,
Visualization vis)
Computes the layout. |
Layout |
getLayout()
Returns the layout object managed by this visualization or null if the visualization computes the layout by itself. |
int |
getMargin()
Returns the margin. |
String |
getName()
Returns the column name. |
static NumberColumn |
getNumberColumn(Table t,
int index)
Returns the nth Column skipping internal columns. |
NumberColumn |
getNumberColumnFor(Column column)
|
Dimension |
getPreferredSize(Visualization vis)
Computes and return the preferred size for this layout and this visualization. |
Column |
getXAxisColumn()
Returns the xAxisColumn. |
DoubleBoundedRangeModel |
getXAxisModel()
Returns the xAxisModel. |
Column |
getYAxisColumn()
Returns the yAxisColumn. |
DoubleBoundedRangeModel |
getYAxisModel()
Returns the yAxisModel. |
void |
invalidate(Visualization vis)
Invalidate the cached state of the layout. |
void |
setMargin(int margin)
Sets the margin. |
boolean |
setXAxisColumn(Column xAxis)
|
boolean |
setXAxisModel(NumberColumnBoundedRangeModel xAxisModel)
Sets the xAxisModel. |
boolean |
setYAxisColumn(Column yAxis)
Sets the yAxisColumn. |
boolean |
setYAxisModel(NumberColumnBoundedRangeModel yAxisModel)
Sets the yAxisModel. |
void |
stateChanged(ChangeEvent e)
|
| Methods inherited from class infovis.table.TableProxy |
|---|
addColumn, addTableModelListener, clear, getColumn, getColumnAt, getColumnClass, getColumnCount, getColumnName, getLastRow, getValueAt, indexOf, indexOf, isCellEditable, isRowValid, removeColumn, removeTableModelListener, setColumnAt, setValueAt |
| Methods inherited from class infovis.column.ColumnProxy |
|---|
addValue, addValueOrNull, capacity, compare, ensureCapacity, getClientProperty, getFormat, getMaxIndex, getMetadata, getMinIndex, getValueAt, getValueClass, hasUndefinedValue, isEmpty, isInternal, isValueUndefined, setFormat, setName, setSize, setValueAt, setValueOrNullAt, setValueUndefined, size |
| Methods inherited from class infovis.column.AbstractColumn |
|---|
addChangeListener, compareValues, computeValueMap, computeValueMap, equalObj, equals, getLastModifiedRow, toString |
| Methods inherited from class infovis.utils.ChangeManager |
|---|
disableNotify, enableNotify, getModCount, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface infovis.Column |
|---|
addChangeListener, addValue, addValueOrNull, capacity, disableNotify, enableNotify, ensureCapacity, getFormat, getMaxIndex, getMinIndex, getValueAt, getValueClass, hasUndefinedValue, isEmpty, isInternal, isValueUndefined, removeChangeListener, setFormat, setName, setSize, setValueAt, setValueOrNullAt, setValueUndefined, size |
| Methods inherited from interface infovis.Metadata |
|---|
getClientProperty, getMetadata |
| Methods inherited from interface cern.colt.function.IntComparator |
|---|
compare, equals |
| Field Detail |
|---|
public static final String PROPERTY_X_AXIS_MODEL
public static final String PROPERTY_Y_AXIS_MODEL
public static final String VISUAL_X_AXIS
public static final String VISUAL_Y_AXIS
| Constructor Detail |
|---|
public ScatterPlotVisualization(Table table,
Column xAxis,
Column yAxis)
table - the table.xAxis - the Column for the X AxisyAxis - the Column for the Y Axis
public ScatterPlotVisualization(Table table,
String xAxis,
String yAxis)
table - the table.xAxis - the name of the Column for the X AxisyAxis - the name of the Column for the Y Axispublic ScatterPlotVisualization(Table table)
NumberColumn s
as axes.
table - the table.| Method Detail |
|---|
public Layout getLayout()
DefaultVisualization
getLayout in class DefaultVisualizationpublic String getName()
ColumnProxy
getName in interface ColumngetName in interface LayoutgetName in class ColumnProxypublic void invalidate(Visualization vis)
Call this method from the visualization when it gets invalidated.
invalidate in interface Layoutvis - the visualization.
public static NumberColumn getNumberColumn(Table t,
int index)
Column skipping internal columns.
t - the Table.index - the index of the column, skipping over internal column,
NumberColumn skipping internal columns.public NumberColumn getNumberColumnFor(Column column)
public void computeShapes(Rectangle2D bounds,
Visualization vis)
Layout
computeShapes in interface Layoutbounds - the allocated bounds of the
visualization.vis - the visualization.public Dimension getPreferredSize(Visualization vis)
Layout
getPreferredSize in interface Layoutvis - the visualization
public Column getXAxisColumn()
public Column getYAxisColumn()
public boolean setXAxisColumn(Column xAxis)
public boolean setYAxisColumn(Column yAxis)
yAxis - The yAxisColumn to set
true if the column has been set.public int getMargin()
public void setMargin(int margin)
margin - The margin to setpublic DoubleBoundedRangeModel getXAxisModel()
public DoubleBoundedRangeModel getYAxisModel()
public boolean setXAxisModel(NumberColumnBoundedRangeModel xAxisModel)
xAxisModel - The xAxisModel to set
true if the column has been set.public boolean setYAxisModel(NumberColumnBoundedRangeModel yAxisModel)
yAxisModel - The yAxisModel to set
true if the column has been set.public void stateChanged(ChangeEvent e)
DefaultVisualization
stateChanged in interface ChangeListenerstateChanged in class DefaultVisualizationDefaultVisualization.stateChanged(ChangeEvent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||