|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infovis.visualization.VisualizationProxy infovis.visualization.VisualizationLayers
public class VisualizationLayers
Class VisualizationLayers
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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int RULER_LAYER
public static final int MAIN_LAYER
public static final int MAGIC_LENS_LAYER
public static final int DRAG_LAYER
Constructor Detail |
---|
public VisualizationLayers(Visualization visualization)
Method Detail |
---|
public int size()
public void add(Visualization vis)
public void add(Visualization vis, int layer)
public void add(Visualization vis, int l, int pos)
public void remove(int index)
public int insertIndexForLayer(int layer, int pos)
public int indexOf(Visualization visualization)
public int getLayer(Visualization vis)
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 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 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 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 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 setParent(JComponent parent)
VisualizationProxy
setParent
in interface Visualization
setParent
in class VisualizationProxy
parent
- owning VisualizationPanel.public void setVisualization(Visualization vis)
VisualizationProxy
setVisualization
in class VisualizationProxy
vis
- the visualization
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |