infovis.visualization.render
Class WrappingVisualLabel

java.lang.Object
  extended by infovis.visualization.render.AbstractItemRenderer
      extended by infovis.visualization.render.AbstractVisualColumn
          extended by infovis.visualization.render.VisualLabel
              extended by infovis.visualization.render.DefaultVisualLabel
                  extended by infovis.visualization.render.WrappingVisualLabel
All Implemented Interfaces:
ColumnFilter, ItemRenderer, Orientable, VisualColumnDescriptor, Cloneable, SwingConstants

public class WrappingVisualLabel
extends DefaultVisualLabel

Class WrappingVisualLabel

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

Field Summary
 
Fields inherited from class infovis.visualization.render.DefaultVisualLabel
DEFAULT_LABEL_COLUMN_NAMES
 
Fields inherited from class infovis.visualization.render.VisualLabel
VISUAL
 
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
WrappingVisualLabel()
           
WrappingVisualLabel(boolean showingLabel)
           
WrappingVisualLabel(boolean showingLabel, Color defaultColor)
           
WrappingVisualLabel(Color defaultColor)
           
WrappingVisualLabel(ItemRenderer child, boolean showingLabel)
           
WrappingVisualLabel(ItemRenderer child, boolean showingLabel, Color defaultColor)
           
 
Method Summary
static ArrayList computeLines(Graphics2D g, String text, float width)
           
static Rectangle2D.Float computeLinesBounds(ArrayList lines)
           
 void paint(Graphics2D graphics, int row, Shape s)
          
 void paintLines(Graphics2D graphics, ArrayList lines, Rectangle2D.Float b, Rectangle2D bounds)
           
 
Methods inherited from class infovis.visualization.render.DefaultVisualLabel
findDefaultLabelColumn, findDefaultLabelColumn, getHeight, getJustification, getLabelClipper, getOrientation, getWidth, isClipped, isOutlined, isShowingLabel, setClipped, setJustification, setLabelClipper, setOrientation, setOutlined, setShowingLabel
 
Methods inherited from class infovis.visualization.render.VisualLabel
get, get, getColumn, getDefaultColor, getFont, getLabelAt, getLabelAt, setColumn, setDefaultColor, setFont
 
Methods inherited from class infovis.visualization.render.AbstractVisualColumn
contrastColor, contrastColor, filter, getFilter, invalidate, isInvalidate, setFilter, setInvalidate
 
Methods inherited from class infovis.visualization.render.AbstractItemRenderer
addRenderer, compile, compileGroup, findNamed, findNamed, getName, getRenderer, getRendererCount, getVisualization, indexOf, insertAfterNamed, insertBeforeNamed, insertRenderer, install, instantiate, invalidate, isPrototype, pick, removeNamed, removeRenderer, repaint, replaceNamed, replaceNamed, setRenderer, uninstall
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface infovis.visualization.VisualColumnDescriptor
getName
 

Constructor Detail

WrappingVisualLabel

public WrappingVisualLabel()

WrappingVisualLabel

public WrappingVisualLabel(boolean showingLabel,
                           Color defaultColor)

WrappingVisualLabel

public WrappingVisualLabel(boolean showingLabel)

WrappingVisualLabel

public WrappingVisualLabel(Color defaultColor)

WrappingVisualLabel

public WrappingVisualLabel(ItemRenderer child,
                           boolean showingLabel,
                           Color defaultColor)

WrappingVisualLabel

public WrappingVisualLabel(ItemRenderer child,
                           boolean showingLabel)
Method Detail

computeLines

public static ArrayList computeLines(Graphics2D g,
                                     String text,
                                     float width)

computeLinesBounds

public static Rectangle2D.Float computeLinesBounds(ArrayList lines)

paint

public void paint(Graphics2D graphics,
                  int row,
                  Shape s)
Description copied from class: DefaultVisualLabel

Specified by:
paint in interface ItemRenderer
Overrides:
paint in class DefaultVisualLabel

paintLines

public void paintLines(Graphics2D graphics,
                       ArrayList lines,
                       Rectangle2D.Float b,
                       Rectangle2D bounds)


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