|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfovis.visualization.VisualizationProxy
public class VisualizationProxy
Proxy of a Visualization.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface infovis.visualization.magicLens.LabeledComponent |
|---|
LabeledComponent.LabeledItem |
| Field Summary |
|---|
| 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 |
| Constructor Summary | |
|---|---|
VisualizationProxy(Visualization visualization)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds a PropertyChangeListener to the listener list. |
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Add a PropertyChangeListener for a specific property. |
LabeledComponent.LabeledItem |
createLabelItem(int row)
Returns the LabeledComponent.LabeledItem for a specified row. |
void |
dispose()
Releases all the resources used by the visualization. |
Visualization |
findVisualization(Class cls)
Returns the visualization of a specified class from a stack of visualizations or null. |
void |
fireVisualColumnDescriptorChanged(String name)
Fires property change notifications for the specified Visual Column Descriptor. |
Rectangle2D |
getBounds()
Returns the last bounds allocated to this visualization. |
JComponent |
getComponent()
Returns the JComponent managing this LabeledCompent |
FilterColumn |
getFilter()
Returns the FilterColumn managing the dynamic queries
of the visualization. |
VisualizationInteractor |
getInteractor()
Returns the VisualizationInteractor associated with
this Visualization or null if no
interaction is managed. |
ItemRenderer |
getItemRenderer()
Returns the root ItemRenderer responsible for
rendering the items of this visualization. |
short |
getOrientation()
Returns the orientation manages by this interface. |
JComponent |
getParent()
Returns the owning VisualizationPanel. |
Permutation |
getPermutation()
Returns the current permutation. |
Dimension |
getPreferredSize()
Returns the preferred dimension of the Visualization or null if the Visualization can adapt to any dimension. |
int |
getRowAtIndex(int index)
Returns the row at a specified permuted index. |
int |
getRowCount()
Returns the numnber of rows visualized, not counting the ones deeply filtered. |
int |
getRowIndex(int row)
Returns the index at a specified permuted row. |
Table |
getRulerTable()
Returns a table of Rulers. |
BooleanColumn |
getSelection()
Returns the current BooleanColumn managing the selection
of this Visualization. |
Shape |
getShapeAt(int row)
Returns the shape of stored for a specified row or null if none is store. |
Table |
getTable()
Returns the Table. |
Column |
getVisualColumn(String name)
Returns the column associated with a specified visual dimension or null. |
VisualColumnDescriptor |
getVisualColumnDescriptor(String name)
Returns the VisualColumnDescriptor associated
with a specified visual dimension. |
Iterator |
getVisualColumnIterator()
Returns an Iterator on the names of all the
visual columns defined by this visualization. |
Visualization |
getVisualization()
Returns the visualization. |
Visualization |
getVisualization(int index)
Returns a dependent Visualization used by this Visualization in its stack. |
void |
invalidate()
Invalidates the contents of the Visualization. |
void |
invalidate(Column c)
Invalidates the contents of the Visualization if the column has requested so. |
boolean |
isFiltered(int row)
Returns true if the row is filtered. |
RowIterator |
iterator()
Returns a RowIterator over the visualized items in
direct order, taking the permutation into account. |
void |
paint(Graphics2D graphics,
Rectangle2D bounds)
Method for painting the visualization. |
IntArrayList |
pickAll(Rectangle2D hitBox,
Rectangle2D bounds,
IntArrayList pick)
Pick all the items under a rectangle. |
Set |
pickAll(Rectangle2D hitBox,
Rectangle2D bounds,
Set pick)
Returns a list of LabeledItems under a specified Rectangle. |
int |
pickTop(double x,
double y,
Rectangle2D bounds)
Pick the top item. |
int |
pickTop(Rectangle2D hitBox,
Rectangle2D bounds)
Pick the top item. |
void |
print(Graphics2D graphics,
Rectangle2D bounds)
Method for printing the visualization. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Remove a PropertyChangeListener from the listener list. |
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Remove a PropertyChangeListener for a specific property. |
void |
repaint()
Trigger a repaint on the visualization pane. |
RowIterator |
reverseIterator()
Returns a RowIterator over the visualized items in
reverse order, taking the permutation into
account. |
void |
setInteractor(VisualizationInteractor inter)
Sets the VisualizationInteractor associated with
this Visualization or null if no
interaction is desired. |
void |
setItemRenderer(ItemRenderer ir)
Sets the root ItemRenderer responsible for
rendering the items of this visualization. |
void |
setOrientation(short orientation)
Sets the orientation of this interface. |
void |
setParent(JComponent parent)
Sets the owning VisualizationPanel. |
void |
setPermutation(Permutation perm)
Sets the permutation using a Permutation. |
void |
setShapeAt(int row,
Shape s)
Associate a shape with a specified row. |
boolean |
setVisualColumn(String name,
Column column)
Associate a column to a visual dimension. |
void |
setVisualization(Visualization vis)
Sets the visualization. |
void |
validateShapes(Rectangle2D bounds)
Recomputes the shapes associated with the rows if the visualization has changed or the bounds have changed. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VisualizationProxy(Visualization visualization)
visualization - the visualization| Method Detail |
|---|
public Visualization getVisualization()
public void setVisualization(Visualization vis)
vis - the visualizationpublic Visualization findVisualization(Class cls)
findVisualization in interface Visualizationcls - the specified class
public Visualization getVisualization(int index)
getVisualization in interface Visualizationindex - the index of the dependent visualization
public void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener in interface Visualizationl - The PropertyChangeListener to be added
public void addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
addPropertyChangeListener in interface VisualizationpropertyName - The name of the property to listen on.listener - The PropertyChangeListener to be addedpublic LabeledComponent.LabeledItem createLabelItem(int row)
LabeledComponent.LabeledItem for a specified row.
createLabelItem in interface Visualizationrow - the row
LabeledComponent.LabeledItem for a specified row.public void dispose()
dispose in interface Visualizationpublic Rectangle2D getBounds()
getBounds in interface Visualizationpublic JComponent getComponent()
getComponent in interface LabeledComponentpublic FilterColumn getFilter()
FilterColumn managing the dynamic queries
of the visualization.
This is a facade method since the filter visual column can
be obtained by
VisualFilter.get(vis).getFilterColumn().
getFilter in interface VisualizationFilterColumn of the visualization.public VisualizationInteractor getInteractor()
VisualizationInteractor associated with
this Visualization or null if no
interaction is managed.
getInteractor in interface VisualizationVisualizationInteractor associated with
this Visualization or null if no
interaction is managed.public ItemRenderer getItemRenderer()
ItemRenderer responsible for
rendering the items of this visualization.
getItemRenderer in interface VisualizationItemRenderer responsible for
rendering the items managed by this visualization.public short getOrientation()
getOrientation in interface Orientablepublic JComponent getParent()
getParent in interface Visualizationpublic Permutation getPermutation()
getPermutation in interface Visualizationpublic Dimension getPreferredSize()
null if the Visualization can adapt to any dimension.
getPreferredSize in interface Visualizationnull if the Visualization can adapt to any dimension.public int getRowAtIndex(int index)
getRowAtIndex in interface Visualizationindex - the index.
public int getRowCount()
getRowCount in interface Visualizationpublic int getRowIndex(int row)
getRowIndex in interface Visualizationrow - the row.
public BooleanColumn getSelection()
BooleanColumn managing the selection
of this Visualization.
This is a facade method since the selection visual column can
be obtained by
VisualSelection.get(vis).getSelectionColumn().
getSelection in interface VisualizationBooleanColumn managing the selection
of this Visualizationpublic Shape getShapeAt(int row)
getShapeAt in interface Visualizationrow - the row.
public Table getTable()
getTable in interface Visualizationpublic Column getVisualColumn(String name)
null.
getVisualColumn in interface Visualizationname - the name of the visual dimension
null.public Iterator getVisualColumnIterator()
Iterator on the names of all the
visual columns defined by this visualization.
getVisualColumnIterator in interface VisualizationIterator on the names of all the
visual columns defined by this visualization.public VisualColumnDescriptor getVisualColumnDescriptor(String name)
VisualColumnDescriptor associated
with a specified visual dimension.
getVisualColumnDescriptor in interface Visualizationname - the name of the visual dimension
VisualColumnDescriptor associated
with a specified visual dimension.public void fireVisualColumnDescriptorChanged(String name)
"VC_DESCRIPTOR_"+name or
Visualization.VC_DESCRIPTOR_PROPERTY_PREFIX+name
fireVisualColumnDescriptorChanged in interface Visualizationname - the VisualColumnDescriptor namepublic void invalidate()
invalidate in interface Visualizationpublic void invalidate(Column c)
invalidate in interface Visualizationc - the Column triggering the invalidate/repaint.public boolean isFiltered(int row)
true if the row is filtered.
This is a facade method since the filter visual column can
be obtained by
VisualFilter.get(vis).getFilterColumn().isFiltered(row).
isFiltered in interface Visualizationrow - the row.
true if the row is filtered.public RowIterator iterator()
RowIterator over the visualized items in
direct order, taking the permutation into account.
iterator in interface VisualizationRowIterator over the visualized items in
direct orderpublic RowIterator reverseIterator()
RowIterator over the visualized items in
reverse order, taking the permutation into
account.
reverseIterator in interface VisualizationRowIterator over the visualized items in
reverse orderpublic void validateShapes(Rectangle2D bounds)
validateShapes in interface Visualizationbounds - the bounding box of the visualization.
public void paint(Graphics2D graphics,
Rectangle2D bounds)
paint in interface Visualizationgraphics - the graphics.bounds - the bounding box of the visualization.
public void print(Graphics2D graphics,
Rectangle2D bounds)
print in interface Visualizationgraphics - the graphics.bounds - the bounding box of the visualization.
public IntArrayList pickAll(Rectangle2D hitBox,
Rectangle2D bounds,
IntArrayList pick)
pickAll in interface VisualizationhitBox - the bounds where the top item is searched.bounds - the total bounds where the visualization is displayed.pick - an IntArrayList that will contain each row of items
intersecting the hitBox.
public Set pickAll(Rectangle2D hitBox,
Rectangle2D bounds,
Set pick)
pickAll in interface LabeledComponenthitBox - the rectangle that the items should intersectbounds - the bounds of the visualizationpick - an Set to use or null if a new one has be be allocated.
public int pickTop(double x,
double y,
Rectangle2D bounds)
pickTop in interface Visualizationx - the X coordinate.y - the Y coordinate.bounds - the bounding box of the visualization.
public int pickTop(Rectangle2D hitBox,
Rectangle2D bounds)
pickTop in interface VisualizationhitBox - the bounds where the top item is searched.bounds - the total bounds where the visualization is displayed.
public void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener in interface Visualizationl - The PropertyChangeListener to be removed
public void removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
removePropertyChangeListener in interface VisualizationpropertyName - The name of the property that was listened on.listener - The PropertyChangeListener to be removedpublic void repaint()
repaint in interface Visualizationpublic void setPermutation(Permutation perm)
Permutation.
setPermutation in interface Visualizationperm - The permutationpublic void setInteractor(VisualizationInteractor inter)
VisualizationInteractor associated with
this Visualization or null if no
interaction is desired.
setInteractor in interface Visualizationinter - the VisualizationInteractor to set.public void setItemRenderer(ItemRenderer ir)
ItemRenderer responsible for
rendering the items of this visualization.
If the specified ItemRenderer is not instanciated,
it will be instantiated by this method.
setItemRenderer in interface Visualizationir - the root ItemRenderer responsible for
rendering the items of this visualization.public void setOrientation(short orientation)
setOrientation in interface Orientableorientation - the orientation.public void setParent(JComponent parent)
setParent in interface Visualizationparent - owning VisualizationPanel.
public void setShapeAt(int row,
Shape s)
setShapeAt in interface Visualizationrow - the row.s - the shape.
public boolean setVisualColumn(String name,
Column column)
vis.setVisualColumn("color", dateColumn)
setVisualColumn in interface Visualizationname - The name of the visual dimensioncolumn - the column associated with the visual dimension
or null.
true is the visualization has been changed.public Table getRulerTable()
getRulerTable in interface Visualizationnull if the visualization doesn't support rulers.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||