infovis.column.visualization
Class HistogramVisualization
java.lang.Object
infovis.utils.ChangeManager
infovis.column.AbstractColumn
infovis.column.ColumnProxy
infovis.table.TableProxy
infovis.visualization.DefaultVisualization
infovis.column.visualization.ColumnVisualization
infovis.column.visualization.HistogramVisualization
- All Implemented Interfaces:
- IntComparator, Column, Metadata, Constants, Table, RowComparator, Visualization, Layout, LabeledComponent, Orientable, Serializable, EventListener, ChangeListener, TableModelListener, SwingConstants, TableModel
public class HistogramVisualization
- extends ColumnVisualization
Visualization of histogram.
- Version:
- $Revision: 1.1 $
- Author:
- Jean-Daniel Fekete
- See Also:
- Serialized Form
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 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.metadata.Constants |
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE |
Methods inherited from class infovis.visualization.DefaultVisualization |
addPropertyChangeListener, addPropertyChangeListener, computeMinMax, computeMinMaxFiltered, computeShapes, createLabelItem, dispose, findRectAt, findVisualization, firePropertyChange, firePropertyChange, firePropertyChange, fireVisualColumnDescriptorChanged, freeRectAt, getBounds, getComponent, getFilter, getFisheye, getInteractor, getItemRenderer, getItemRenderer, getItemRenderer, getOrientation, getParent, getPermutation, getPreferredSize, getRectAt, getRowAtIndex, getRowCount, getRowIndex, getRulerTable, getSelection, getShapeAt, getShapeBoundsAt, getShapes, getTable, getVisualColumn, getVisualColumnDescriptor, getVisualColumnIterator, getVisualization, getVisualizationBounds, invalidate, invalidate, isFiltered, isInvalidateColumn, isInvalidated, iterator, paint, paintItem, paintItems, paintVisualizations, pickAll, pickAll, pickItem, pickTop, pickTop, print, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, reverseIterator, setFisheye, setInteractor, setItemRenderer, setOrientation, setParent, setPermutation, setShapeAt, setVisualColumn, stateChanged, tableChanged, validateShapes |
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 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 |
HistogramVisualization
public HistogramVisualization(NumberColumn column,
int bins)
- Constructor.
- Parameters:
column
- the column to build a histogram.bins
- number of bins.
HistogramVisualization
public HistogramVisualization(NumberColumn column)
- Constructor.
- Parameters:
column
- the column to build a histogram.
getHistogram
public HistogramColumn getHistogram()
- Returns:
- Returns the histogram.
setColumn
public boolean setColumn(Column column)
- Sets the visualized column.
- Overrides:
setColumn
in class ColumnVisualization
- Parameters:
column
- the column
- Returns:
- true if the visualized column has been changed.
setHistogramColumn
public void setHistogramColumn(NumberColumn column)
- Change the column of the histogram.
- Parameters:
column
- the new column.
setBins
public void setBins(int bins)
- Change the number of bins of the histogram.
- Parameters:
bins
- the new bin number
getBins
public int getBins()
- Returns the number of bins of this histogram.
- Returns:
- the number of bins of this histogram.
getPreferredSize
public Dimension getPreferredSize(Visualization vis)
- Computes and return the preferred size
for this layout and this visualization.
- Specified by:
getPreferredSize
in interface Layout
- Overrides:
getPreferredSize
in class ColumnVisualization
- Parameters:
vis
- the visualization
- Returns:
- the preferred size
for this layout and this visualization.
Copyright © 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.