infovis.visualization.render
Class WrappingVisualLabel
java.lang.Object
infovis.visualization.render.AbstractItemRenderer
infovis.visualization.render.AbstractVisualColumn
infovis.visualization.render.VisualLabel
infovis.visualization.render.DefaultVisualLabel
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
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 |
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.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 |
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)
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.