|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfovis.visualization.VisualizationProxy
infovis.visualization.magicLens.ExcentricLabelVisualization
public class ExcentricLabelVisualization
Visualization wrapping a DefaultExcentricLabel.
| 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 | |
|---|---|
ExcentricLabelVisualization(Visualization visualization)
|
|
ExcentricLabelVisualization(Visualization visualization,
ExcentricLabels el)
|
|
| 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. |
static ExcentricLabelVisualization |
find(Visualization vis)
|
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. |
JComponent |
getComponent()
Returns the JComponent managing this LabeledCompent |
ExcentricLabels |
getExcentric()
Returns the excentric. |
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. |
int |
getRowAtIndex(int index)
Returns the row at a specified permuted index. |
int |
getRowIndex(int row)
Returns the index at a specified permuted row. |
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. |
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(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 |
isEnabled()
|
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 |
setEnabled(boolean enabled)
|
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(RowComparator comparator)
|
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. |
| Methods inherited from class infovis.visualization.VisualizationProxy |
|---|
getBounds, getPreferredSize, getRowCount, getRulerTable, getTable, getVisualization, repaint, reverseIterator, setPermutation, setVisualization, validateShapes |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExcentricLabelVisualization(Visualization visualization,
ExcentricLabels el)
public ExcentricLabelVisualization(Visualization visualization)
| Method Detail |
|---|
public void setParent(JComponent parent)
VisualizationProxy
setParent in interface VisualizationsetParent in class VisualizationProxyparent - owning VisualizationPanel.public JComponent getParent()
VisualizationProxy
getParent in interface VisualizationgetParent in class VisualizationProxy
public void paint(Graphics2D graphics,
Rectangle2D bounds)
VisualizationProxy
paint in interface Visualizationpaint in class VisualizationProxygraphics - the graphics.bounds - the bounding box of the visualization.public void addPropertyChangeListener(PropertyChangeListener l)
VisualizationProxy
addPropertyChangeListener in interface VisualizationaddPropertyChangeListener in class VisualizationProxyl - The PropertyChangeListener to be added
public void addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
VisualizationProxy
addPropertyChangeListener in interface VisualizationaddPropertyChangeListener in class VisualizationProxypropertyName - The name of the property to listen on.listener - The PropertyChangeListener to be addedpublic LabeledComponent.LabeledItem createLabelItem(int row)
VisualizationProxyLabeledComponent.LabeledItem for a specified row.
createLabelItem in interface VisualizationcreateLabelItem in class VisualizationProxyrow - the row
LabeledComponent.LabeledItem for a specified row.public void dispose()
VisualizationProxy
dispose in interface Visualizationdispose in class VisualizationProxypublic Visualization findVisualization(Class cls)
VisualizationProxy
findVisualization in interface VisualizationfindVisualization in class VisualizationProxycls - the specified class
public void fireVisualColumnDescriptorChanged(String name)
VisualizationProxy"VC_DESCRIPTOR_"+name or
Visualization.VC_DESCRIPTOR_PROPERTY_PREFIX+name
fireVisualColumnDescriptorChanged in interface VisualizationfireVisualColumnDescriptorChanged in class VisualizationProxyname - the VisualColumnDescriptor namepublic FilterColumn getFilter()
VisualizationProxyFilterColumn 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 VisualizationgetFilter in class VisualizationProxyFilterColumn of the visualization.public ItemRenderer getItemRenderer()
VisualizationProxyItemRenderer responsible for
rendering the items of this visualization.
getItemRenderer in interface VisualizationgetItemRenderer in class VisualizationProxyItemRenderer responsible for
rendering the items managed by this visualization.public Permutation getPermutation()
VisualizationProxy
getPermutation in interface VisualizationgetPermutation in class VisualizationProxypublic int getRowAtIndex(int index)
VisualizationProxy
getRowAtIndex in interface VisualizationgetRowAtIndex in class VisualizationProxyindex - the index.
public int getRowIndex(int row)
VisualizationProxy
getRowIndex in interface VisualizationgetRowIndex in class VisualizationProxyrow - the row.
public BooleanColumn getSelection()
VisualizationProxyBooleanColumn 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 VisualizationgetSelection in class VisualizationProxyBooleanColumn managing the selection
of this Visualizationpublic Shape getShapeAt(int row)
VisualizationProxy
getShapeAt in interface VisualizationgetShapeAt in class VisualizationProxyrow - the row.
public Column getVisualColumn(String name)
VisualizationProxynull.
getVisualColumn in interface VisualizationgetVisualColumn in class VisualizationProxyname - the name of the visual dimension
null.public VisualColumnDescriptor getVisualColumnDescriptor(String name)
VisualizationProxyVisualColumnDescriptor associated
with a specified visual dimension.
getVisualColumnDescriptor in interface VisualizationgetVisualColumnDescriptor in class VisualizationProxyname - the name of the visual dimension
VisualColumnDescriptor associated
with a specified visual dimension.public Iterator getVisualColumnIterator()
VisualizationProxyIterator on the names of all the
visual columns defined by this visualization.
getVisualColumnIterator in interface VisualizationgetVisualColumnIterator in class VisualizationProxyIterator on the names of all the
visual columns defined by this visualization.public Visualization getVisualization(int index)
VisualizationProxy
getVisualization in interface VisualizationgetVisualization in class VisualizationProxyindex - the index of the dependent visualization
public void invalidate()
VisualizationProxy
invalidate in interface Visualizationinvalidate in class VisualizationProxypublic void invalidate(Column c)
VisualizationProxy
invalidate in interface Visualizationinvalidate in class VisualizationProxyc - the Column triggering the invalidate/repaint.public boolean isFiltered(int row)
VisualizationProxytrue 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 VisualizationisFiltered in class VisualizationProxyrow - the row.
true if the row is filtered.public RowIterator iterator()
VisualizationProxyRowIterator over the visualized items in
direct order, taking the permutation into account.
iterator in interface Visualizationiterator in class VisualizationProxyRowIterator over the visualized items in
direct order
public IntArrayList pickAll(Rectangle2D hitBox,
Rectangle2D bounds,
IntArrayList pick)
VisualizationProxy
pickAll in interface VisualizationpickAll in class VisualizationProxyhitBox - 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 int pickTop(double x,
double y,
Rectangle2D bounds)
VisualizationProxy
pickTop in interface VisualizationpickTop in class VisualizationProxyx - the X coordinate.y - the Y coordinate.bounds - the bounding box of the visualization.
public int pickTop(Rectangle2D hitBox,
Rectangle2D bounds)
VisualizationProxy
pickTop in interface VisualizationpickTop in class VisualizationProxyhitBox - the bounds where the top item is searched.bounds - the total bounds where the visualization is displayed.
public void print(Graphics2D graphics,
Rectangle2D bounds)
VisualizationProxy
print in interface Visualizationprint in class VisualizationProxygraphics - the graphics.bounds - the bounding box of the visualization.public void removePropertyChangeListener(PropertyChangeListener l)
VisualizationProxy
removePropertyChangeListener in interface VisualizationremovePropertyChangeListener in class VisualizationProxyl - The PropertyChangeListener to be removed
public void removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
VisualizationProxy
removePropertyChangeListener in interface VisualizationremovePropertyChangeListener in class VisualizationProxypropertyName - The name of the property that was listened on.listener - The PropertyChangeListener to be removedpublic void setItemRenderer(ItemRenderer ir)
VisualizationProxyItemRenderer 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 VisualizationsetItemRenderer in class VisualizationProxyir - the root ItemRenderer responsible for
rendering the items of this visualization.public void setPermutation(RowComparator comparator)
public void setShapeAt(int row,
Shape s)
VisualizationProxy
setShapeAt in interface VisualizationsetShapeAt in class VisualizationProxyrow - the row.s - the shape.
public boolean setVisualColumn(String name,
Column column)
VisualizationProxyvis.setVisualColumn("color", dateColumn)
setVisualColumn in interface VisualizationsetVisualColumn in class VisualizationProxyname - The name of the visual dimensioncolumn - the column associated with the visual dimension
or null.
true is the visualization has been changed.public JComponent getComponent()
VisualizationProxy
getComponent in interface LabeledComponentgetComponent in class VisualizationProxy
public Set pickAll(Rectangle2D hitBox,
Rectangle2D bounds,
Set pick)
VisualizationProxy
pickAll in interface LabeledComponentpickAll in class VisualizationProxyhitBox - 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 short getOrientation()
VisualizationProxy
getOrientation in interface OrientablegetOrientation in class VisualizationProxypublic void setOrientation(short orientation)
VisualizationProxy
setOrientation in interface OrientablesetOrientation in class VisualizationProxyorientation - the orientation.public ExcentricLabels getExcentric()
public static ExcentricLabelVisualization find(Visualization vis)
public void setInteractor(VisualizationInteractor inter)
VisualizationProxyVisualizationInteractor associated with
this Visualization or null if no
interaction is desired.
setInteractor in interface VisualizationsetInteractor in class VisualizationProxyinter - the VisualizationInteractor to set.public VisualizationInteractor getInteractor()
VisualizationProxyVisualizationInteractor associated with
this Visualization or null if no
interaction is managed.
getInteractor in interface VisualizationgetInteractor in class VisualizationProxyVisualizationInteractor associated with
this Visualization or null if no
interaction is managed.public boolean isEnabled()
public void setEnabled(boolean enabled)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||