infovis.visualization.magicLens
Class DefaultExcentricLabels

java.lang.Object
  extended by infovis.visualization.magicLens.DefaultMagicLens
      extended by infovis.visualization.magicLens.DefaultExcentricLabels
All Implemented Interfaces:
MagicLens, ExcentricLabels, Comparator

public class DefaultExcentricLabels
extends DefaultMagicLens
implements ExcentricLabels, Comparator

Display excentric labels around items in a labeledComponent.

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

Field Summary
 
Fields inherited from interface infovis.visualization.MagicLens
PROPERTY_ENABLED, PROPERTY_LENS_POSITION_X, PROPERTY_LENS_POSITION_Y, PROPERTY_LENS_RADIUS
 
Constructor Summary
DefaultExcentricLabels()
          Constructor for DefaultExcentricLabels.
 
Method Summary
 int compare(Object o1, Object o2)
          For sorting points vertically.
 Color getBackgroundColor()
          Returns the backgroundColor.
 Fisheye getFisheye()
           
 LabeledComponent.LabeledItem getItem(int index)
           
 int getMaxLabels()
          Returns the maxLabels.
 boolean isDrawBounds()
           
 boolean isOpaque()
          Returns the opaque.
 boolean isVisible()
          Returns the visible.
 void paint(Graphics2D graphics, Rectangle2D bounds)
           
 void setBackgroundColor(Color backgroundColor)
          Sets the backgroundColor.
 void setDrawBounds(boolean b)
           
 void setEnabled(boolean set)
          Sets the enabled state of the magic lens.
 void setFisheye(Fisheye fisheye)
           
 void setFocusRadius(int focusSize)
          Sets the focusRadius.
 void setLens(float x, float y)
          Sets for focus position
 void setMaxLabels(int maxLabels)
          Sets the maxLabels.
 void setOpaque(boolean opaque)
          Sets the opaque.
 void setVisible(boolean visible)
          Sets the visible.
 void setVisualization(LabeledComponent labeledComponent)
           
 
Methods inherited from class infovis.visualization.magicLens.DefaultMagicLens
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBounds, getLensRadius, getLensX, getLensY, isEnabled, removePropertyChangeListener, removePropertyChangeListener, setLensRadius, setLensX, setLensY
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface infovis.visualization.MagicLens
addPropertyChangeListener, addPropertyChangeListener, getBounds, getLensRadius, getLensX, getLensY, isEnabled, removePropertyChangeListener, removePropertyChangeListener, setLensRadius, setLensX, setLensY
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

DefaultExcentricLabels

public DefaultExcentricLabels()
Constructor for DefaultExcentricLabels.

Method Detail

setVisualization

public void setVisualization(LabeledComponent labeledComponent)
Specified by:
setVisualization in interface ExcentricLabels

getItem

public LabeledComponent.LabeledItem getItem(int index)

paint

public void paint(Graphics2D graphics,
                  Rectangle2D bounds)
Specified by:
paint in interface ExcentricLabels

isVisible

public boolean isVisible()
Returns the visible.

Specified by:
isVisible in interface ExcentricLabels
Returns:
boolean

setVisible

public void setVisible(boolean visible)
Sets the visible.

Specified by:
setVisible in interface ExcentricLabels
Parameters:
visible - The visible to set

setEnabled

public void setEnabled(boolean set)
Description copied from interface: MagicLens
Sets the enabled state of the magic lens.

Specified by:
setEnabled in interface MagicLens
Overrides:
setEnabled in class DefaultMagicLens
Parameters:
set - the enabled state to set

compare

public int compare(Object o1,
                   Object o2)
For sorting points vertically.

Specified by:
compare in interface Comparator
See Also:
Comparator.compare(Object, Object)

setLens

public void setLens(float x,
                    float y)
Description copied from interface: MagicLens
Sets for focus position

Specified by:
setLens in interface MagicLens
Overrides:
setLens in class DefaultMagicLens
Parameters:
x - X coordinate of the position
y - X coordinate of the position

getMaxLabels

public int getMaxLabels()
Returns the maxLabels.

Specified by:
getMaxLabels in interface ExcentricLabels
Returns:
int

setMaxLabels

public void setMaxLabels(int maxLabels)
Sets the maxLabels.

Specified by:
setMaxLabels in interface ExcentricLabels
Parameters:
maxLabels - The maxLabels to set

setFocusRadius

public void setFocusRadius(int focusSize)
Sets the focusRadius.

Parameters:
focusSize - The focusRadius to set

getBackgroundColor

public Color getBackgroundColor()
Returns the backgroundColor.

Returns:
Color

isOpaque

public boolean isOpaque()
Returns the opaque.

Specified by:
isOpaque in interface ExcentricLabels
Returns:
boolean

setBackgroundColor

public void setBackgroundColor(Color backgroundColor)
Sets the backgroundColor.

Parameters:
backgroundColor - The backgroundColor to set

setOpaque

public void setOpaque(boolean opaque)
Sets the opaque.

Specified by:
setOpaque in interface ExcentricLabels
Parameters:
opaque - The opaque to set

getFisheye

public Fisheye getFisheye()

setFisheye

public void setFisheye(Fisheye fisheye)

isDrawBounds

public boolean isDrawBounds()

setDrawBounds

public void setDrawBounds(boolean b)


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