|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infovis.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 Visualization
setParent
in class VisualizationProxy
parent
- owning VisualizationPanel.public JComponent getParent()
VisualizationProxy
getParent
in interface Visualization
getParent
in class VisualizationProxy
public void paint(Graphics2D graphics, Rectangle2D bounds)
VisualizationProxy
paint
in interface Visualization
paint
in class VisualizationProxy
graphics
- the graphics.bounds
- the bounding box of the visualization.public void addPropertyChangeListener(PropertyChangeListener l)
VisualizationProxy
addPropertyChangeListener
in interface Visualization
addPropertyChangeListener
in class VisualizationProxy
l
- The PropertyChangeListener to be addedpublic void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
VisualizationProxy
addPropertyChangeListener
in interface Visualization
addPropertyChangeListener
in class VisualizationProxy
propertyName
- The name of the property to listen on.listener
- The PropertyChangeListener to be addedpublic LabeledComponent.LabeledItem createLabelItem(int row)
VisualizationProxy
LabeledComponent.LabeledItem
for a specified row.
createLabelItem
in interface Visualization
createLabelItem
in class VisualizationProxy
row
- the row
LabeledComponent.LabeledItem
for a specified row.public void dispose()
VisualizationProxy
dispose
in interface Visualization
dispose
in class VisualizationProxy
public Visualization findVisualization(Class cls)
VisualizationProxy
findVisualization
in interface Visualization
findVisualization
in class VisualizationProxy
cls
- the specified class
public void fireVisualColumnDescriptorChanged(String name)
VisualizationProxy
"VC_DESCRIPTOR_"+name
or
Visualization.VC_DESCRIPTOR_PROPERTY_PREFIX+name
fireVisualColumnDescriptorChanged
in interface Visualization
fireVisualColumnDescriptorChanged
in class VisualizationProxy
name
- the VisualColumnDescriptor
namepublic FilterColumn getFilter()
VisualizationProxy
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 Visualization
getFilter
in class VisualizationProxy
FilterColumn
of the visualization.public ItemRenderer getItemRenderer()
VisualizationProxy
ItemRenderer
responsible for
rendering the items of this visualization.
getItemRenderer
in interface Visualization
getItemRenderer
in class VisualizationProxy
ItemRenderer
responsible for
rendering the items managed by this visualization.public Permutation getPermutation()
VisualizationProxy
getPermutation
in interface Visualization
getPermutation
in class VisualizationProxy
public int getRowAtIndex(int index)
VisualizationProxy
getRowAtIndex
in interface Visualization
getRowAtIndex
in class VisualizationProxy
index
- the index.
public int getRowIndex(int row)
VisualizationProxy
getRowIndex
in interface Visualization
getRowIndex
in class VisualizationProxy
row
- the row.
public BooleanColumn getSelection()
VisualizationProxy
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 Visualization
getSelection
in class VisualizationProxy
BooleanColumn
managing the selection
of this Visualization
public Shape getShapeAt(int row)
VisualizationProxy
getShapeAt
in interface Visualization
getShapeAt
in class VisualizationProxy
row
- the row.
public Column getVisualColumn(String name)
VisualizationProxy
null
.
getVisualColumn
in interface Visualization
getVisualColumn
in class VisualizationProxy
name
- the name of the visual dimension
null
.public VisualColumnDescriptor getVisualColumnDescriptor(String name)
VisualizationProxy
VisualColumnDescriptor
associated
with a specified visual dimension.
getVisualColumnDescriptor
in interface Visualization
getVisualColumnDescriptor
in class VisualizationProxy
name
- the name of the visual dimension
VisualColumnDescriptor
associated
with a specified visual dimension.public Iterator getVisualColumnIterator()
VisualizationProxy
Iterator
on the names of all the
visual columns defined by this visualization.
getVisualColumnIterator
in interface Visualization
getVisualColumnIterator
in class VisualizationProxy
Iterator
on the names of all the
visual columns defined by this visualization.public Visualization getVisualization(int index)
VisualizationProxy
getVisualization
in interface Visualization
getVisualization
in class VisualizationProxy
index
- the index of the dependent visualization
public void invalidate()
VisualizationProxy
invalidate
in interface Visualization
invalidate
in class VisualizationProxy
public void invalidate(Column c)
VisualizationProxy
invalidate
in interface Visualization
invalidate
in class VisualizationProxy
c
- the Column triggering the invalidate/repaint.public boolean isFiltered(int row)
VisualizationProxy
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 Visualization
isFiltered
in class VisualizationProxy
row
- the row.
true
if the row is filtered.public RowIterator iterator()
VisualizationProxy
RowIterator
over the visualized items in
direct order, taking the permutation into account.
iterator
in interface Visualization
iterator
in class VisualizationProxy
RowIterator
over the visualized items in
direct orderpublic IntArrayList pickAll(Rectangle2D hitBox, Rectangle2D bounds, IntArrayList pick)
VisualizationProxy
pickAll
in interface Visualization
pickAll
in class VisualizationProxy
hitBox
- 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 Visualization
pickTop
in class VisualizationProxy
x
- 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 Visualization
pickTop
in class VisualizationProxy
hitBox
- 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 Visualization
print
in class VisualizationProxy
graphics
- the graphics.bounds
- the bounding box of the visualization.public void removePropertyChangeListener(PropertyChangeListener l)
VisualizationProxy
removePropertyChangeListener
in interface Visualization
removePropertyChangeListener
in class VisualizationProxy
l
- The PropertyChangeListener to be removedpublic void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
VisualizationProxy
removePropertyChangeListener
in interface Visualization
removePropertyChangeListener
in class VisualizationProxy
propertyName
- The name of the property that was listened on.listener
- The PropertyChangeListener to be removedpublic void setItemRenderer(ItemRenderer ir)
VisualizationProxy
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 Visualization
setItemRenderer
in class VisualizationProxy
ir
- 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 Visualization
setShapeAt
in class VisualizationProxy
row
- the row.s
- the shape.public boolean setVisualColumn(String name, Column column)
VisualizationProxy
vis.setVisualColumn("color", dateColumn)
setVisualColumn
in interface Visualization
setVisualColumn
in class VisualizationProxy
name
- 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 LabeledComponent
getComponent
in class VisualizationProxy
public Set pickAll(Rectangle2D hitBox, Rectangle2D bounds, Set pick)
VisualizationProxy
pickAll
in interface LabeledComponent
pickAll
in class VisualizationProxy
hitBox
- 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 Orientable
getOrientation
in class VisualizationProxy
public void setOrientation(short orientation)
VisualizationProxy
setOrientation
in interface Orientable
setOrientation
in class VisualizationProxy
orientation
- the orientation.public ExcentricLabels getExcentric()
public static ExcentricLabelVisualization find(Visualization vis)
public void setInteractor(VisualizationInteractor inter)
VisualizationProxy
VisualizationInteractor
associated with
this Visualization
or null
if no
interaction is desired.
setInteractor
in interface Visualization
setInteractor
in class VisualizationProxy
inter
- the VisualizationInteractor
to set.public VisualizationInteractor getInteractor()
VisualizationProxy
VisualizationInteractor
associated with
this Visualization
or null
if no
interaction is managed.
getInteractor
in interface Visualization
getInteractor
in class VisualizationProxy
VisualizationInteractor
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 |