|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infovis.visualization.render.AbstractItemRenderer infovis.visualization.render.AbstractVisualColumn infovis.visualization.render.VisualLabel infovis.visualization.render.DefaultVisualLabel
public class DefaultVisualLabel
Default implementation of VisualLabel.
Field Summary | |
---|---|
static String[] |
DEFAULT_LABEL_COLUMN_NAMES
Column names that can become label names by default. |
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 | |
---|---|
DefaultVisualLabel()
Default constructor. |
|
DefaultVisualLabel(boolean showingLabel)
Constructor. |
|
DefaultVisualLabel(boolean showingLabel,
Color defaultColor)
Constructor. |
|
DefaultVisualLabel(Color defaultColor)
Constructor. |
|
DefaultVisualLabel(ItemRenderer child,
boolean showingLabel)
Constructor. |
|
DefaultVisualLabel(ItemRenderer child,
boolean showingLabel,
Color defaultColor)
Constructor. |
Method Summary | |
---|---|
Column |
findDefaultLabelColumn()
Returns a column that will be a default label or null. |
static Column |
findDefaultLabelColumn(Table t)
Returns a column from a table that will be a default label or null. |
double |
getHeight(String label)
|
float |
getJustification()
Returns the label justification betwenn 0 (left) and 1 (right). |
LabelClipper |
getLabelClipper()
Returns the current LabelClipper. |
short |
getOrientation()
Returns the orientation manages by this interface. |
double |
getWidth(String label)
|
boolean |
isClipped()
Returns true if the label is clipped by the item shape. |
boolean |
isOutlined()
Returns true if the fonts is outlined. |
boolean |
isShowingLabel()
Returns the showingLabel. |
void |
paint(Graphics2D graphics,
int row,
Shape s)
|
void |
setClipped(boolean clipped)
Set to true if the label is clipped by the item shape. |
void |
setJustification(float justification)
Sets the label justification betwenn 0 (left) and 1 (right). |
void |
setLabelClipper(LabelClipper labelClipper)
Sets the current LabelClipper. |
void |
setOrientation(short orientation)
Sets the orientation of this interface. |
void |
setOutlined(boolean outlined)
Set to true if the fonts should be outlined. |
void |
setShowingLabel(boolean showingLabel)
Sets the showingLabel. |
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 |
Field Detail |
---|
public static final String[] DEFAULT_LABEL_COLUMN_NAMES
Constructor Detail |
---|
public DefaultVisualLabel(ItemRenderer child, boolean showingLabel, Color defaultColor)
child
- first children or null.showingLabel
- true if label are showndefaultColor
- default colorpublic DefaultVisualLabel(boolean showingLabel, Color defaultColor)
showingLabel
- true if label are showndefaultColor
- default colorpublic DefaultVisualLabel(Color defaultColor)
defaultColor
- default colorpublic DefaultVisualLabel(boolean showingLabel)
showingLabel
- true if label are shownpublic DefaultVisualLabel()
public DefaultVisualLabel(ItemRenderer child, boolean showingLabel)
child
- first children or null.showingLabel
- true if label are shownMethod Detail |
---|
public Column findDefaultLabelColumn()
public static Column findDefaultLabelColumn(Table t)
t
- the table
public double getWidth(String label)
getWidth
in class VisualLabel
public double getHeight(String label)
getHeight
in class VisualLabel
public void paint(Graphics2D graphics, int row, Shape s)
paint
in interface ItemRenderer
paint
in class VisualLabel
public boolean isShowingLabel()
public void setShowingLabel(boolean showingLabel)
showingLabel
- The showingLabel to setpublic short getOrientation()
getOrientation
in interface Orientable
public void setOrientation(short orientation)
setOrientation
in interface Orientable
orientation
- the orientation.public LabelClipper getLabelClipper()
public void setLabelClipper(LabelClipper labelClipper)
labelClipper
- the LabelClipper or null.public float getJustification()
public void setJustification(float justification)
justification
- the justificationpublic boolean isClipped()
public void setClipped(boolean clipped)
clipped
- the valuepublic boolean isOutlined()
public void setOutlined(boolean outlined)
outlined
- true if the fonts should be outlined.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |