infovis.visualization
Class VisualizationLayers

java.lang.Object
  extended by infovis.visualization.VisualizationProxy
      extended by infovis.visualization.VisualizationLayers
All Implemented Interfaces:
Visualization, LabeledComponent, Orientable, SwingConstants

public class VisualizationLayers
extends VisualizationProxy

Class VisualizationLayers

Version:
$Revision: 1.1 $
Author:
Jean-Daniel Fekete

Nested Class Summary
 
Nested classes/interfaces inherited from interface infovis.visualization.magicLens.LabeledComponent
LabeledComponent.LabeledItem
 
Field Summary
static int DRAG_LAYER
           
static int MAGIC_LENS_LAYER
           
static int MAIN_LAYER
           
static int RULER_LAYER
           
 
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
VisualizationLayers(Visualization visualization)
           
 
Method Summary
 void add(Visualization vis)
           
 void add(Visualization vis, int layer)
           
 void add(Visualization vis, int l, int pos)
           
 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.
 int getLayer(Visualization vis)
           
 Visualization getVisualization(int index)
          Returns a dependent Visualization used by this Visualization in its stack.
 int indexOf(Visualization visualization)
           
 int insertIndexForLayer(int layer, int pos)
           
 void invalidate()
          Invalidates the contents of the Visualization.
 void paint(Graphics2D graphics, Rectangle2D bounds)
          Method for painting the visualization.
 Set pickAll(Rectangle2D hitBox, Rectangle2D bounds, Set pick)
          Returns a list of LabeledItems under a specified Rectangle.
 void print(Graphics2D graphics, Rectangle2D bounds)
          Method for printing the visualization.
 void remove(int index)
           
 void setParent(JComponent parent)
          Sets the owning VisualizationPanel.
 void setVisualization(Visualization vis)
          Sets the visualization.
 int size()
           
 
Methods inherited from class infovis.visualization.VisualizationProxy
addPropertyChangeListener, addPropertyChangeListener, createLabelItem, fireVisualColumnDescriptorChanged, getBounds, getComponent, getFilter, getInteractor, getItemRenderer, getOrientation, getParent, getPermutation, getPreferredSize, getRowAtIndex, getRowCount, getRowIndex, getRulerTable, getSelection, getShapeAt, getTable, getVisualColumn, getVisualColumnDescriptor, getVisualColumnIterator, getVisualization, invalidate, isFiltered, iterator, pickAll, pickTop, pickTop, removePropertyChangeListener, removePropertyChangeListener, repaint, reverseIterator, setInteractor, setItemRenderer, setOrientation, setPermutation, setShapeAt, setVisualColumn, validateShapes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RULER_LAYER

public static final int RULER_LAYER
See Also:
Constant Field Values

MAIN_LAYER

public static final int MAIN_LAYER
See Also:
Constant Field Values

MAGIC_LENS_LAYER

public static final int MAGIC_LENS_LAYER
See Also:
Constant Field Values

DRAG_LAYER

public static final int DRAG_LAYER
See Also:
Constant Field Values
Constructor Detail

VisualizationLayers

public VisualizationLayers(Visualization visualization)
Method Detail

size

public int size()

add

public void add(Visualization vis)

add

public void add(Visualization vis,
                int layer)

add

public void add(Visualization vis,
                int l,
                int pos)

remove

public void remove(int index)

insertIndexForLayer

public int insertIndexForLayer(int layer,
                               int pos)

indexOf

public int indexOf(Visualization visualization)

getLayer

public int getLayer(Visualization vis)

dispose

public void dispose()
Description copied from class: VisualizationProxy
Releases all the resources used by the visualization.

Specified by:
dispose in interface Visualization
Overrides:
dispose in class VisualizationProxy

findVisualization

public Visualization findVisualization(Class cls)
Description copied from class: VisualizationProxy
Returns the visualization of a specified class from a stack of visualizations or null.

Specified by:
findVisualization in interface Visualization
Overrides:
findVisualization in class VisualizationProxy
Parameters:
cls - the specified class
Returns:
the visualization of a specified class from a stack of visualizations or null.

getVisualization

public Visualization getVisualization(int index)
Description copied from class: VisualizationProxy
Returns a dependent Visualization used by this Visualization in its stack.

Specified by:
getVisualization in interface Visualization
Overrides:
getVisualization in class VisualizationProxy
Parameters:
index - the index of the dependent visualization
Returns:
a dependent Visualization used by this Visualization in its stack or NIL if none exist at this index.

invalidate

public void invalidate()
Description copied from class: VisualizationProxy
Invalidates the contents of the Visualization.

Specified by:
invalidate in interface Visualization
Overrides:
invalidate in class VisualizationProxy

paint

public void paint(Graphics2D graphics,
                  Rectangle2D bounds)
Description copied from class: VisualizationProxy
Method for painting the visualization.

Specified by:
paint in interface Visualization
Overrides:
paint in class VisualizationProxy
Parameters:
graphics - the graphics.
bounds - the bounding box of the visualization.

pickAll

public Set pickAll(Rectangle2D hitBox,
                   Rectangle2D bounds,
                   Set pick)
Description copied from class: VisualizationProxy
Returns a list of LabeledItems under a specified Rectangle.

Specified by:
pickAll in interface LabeledComponent
Overrides:
pickAll in class VisualizationProxy
Parameters:
hitBox - the rectangle that the items should intersect
bounds - the bounds of the visualization
pick - an Set to use or null if a new one has be be allocated.
Returns:
the Set of LabeledItems under the specified Rectangle.

print

public void print(Graphics2D graphics,
                  Rectangle2D bounds)
Description copied from class: VisualizationProxy
Method for printing the visualization.

Specified by:
print in interface Visualization
Overrides:
print in class VisualizationProxy
Parameters:
graphics - the graphics.
bounds - the bounding box of the visualization.

setParent

public void setParent(JComponent parent)
Description copied from class: VisualizationProxy
Sets the owning VisualizationPanel.

Specified by:
setParent in interface Visualization
Overrides:
setParent in class VisualizationProxy
Parameters:
parent - owning VisualizationPanel.

setVisualization

public void setVisualization(Visualization vis)
Description copied from class: VisualizationProxy
Sets the visualization.

Overrides:
setVisualization in class VisualizationProxy
Parameters:
vis - the visualization


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.