public class ViewLabel
extends javax.swing.text.LabelView
Modifier and Type | Field and Description |
---|---|
protected static int |
fontHeight
Maximum font height for display labels.
|
Constructor and Description |
---|
ViewLabel(javax.swing.text.Element el) |
Modifier and Type | Method and Description |
---|---|
javax.swing.text.View |
breakView(int axis,
int p0,
float pos,
float len) |
float |
getMinimumSpan(int axis) |
float |
getPreferredSpan(int axis) |
void |
paint(java.awt.Graphics g,
java.awt.Shape a) |
void |
preferenceChanged(javax.swing.text.View child,
boolean width,
boolean height) |
void |
resetBreakSpots() |
changedUpdate, getBackground, getFont, getFontMetrics, getForeground, isStrikeThrough, isSubscript, isSuperscript, isUnderline, setBackground, setPropertiesFromAttributes, setStrikeThrough, setSubscript, setSuperscript, setUnderline
checkPainter, clone, createFragment, getAlignment, getBreakWeight, getEndOffset, getGlyphPainter, getNextVisualPositionFrom, getPartialSpan, getStartOffset, getTabbedSpan, getTabExpander, getText, insertUpdate, modelToView, removeUpdate, setGlyphPainter, viewToModel
append, forwardUpdate, forwardUpdateToView, getAttributes, getChildAllocation, getContainer, getDocument, getElement, getGraphics, getMaximumSpan, getParent, getResizeWeight, getToolTipText, getView, getViewCount, getViewFactory, getViewIndex, getViewIndex, insert, isVisible, modelToView, modelToView, remove, removeAll, replace, setParent, setSize, updateChildren, updateLayout, viewToModel
public void paint(java.awt.Graphics g, java.awt.Shape a)
paint
in class javax.swing.text.GlyphView
public float getPreferredSpan(int axis)
getPreferredSpan
in class javax.swing.text.GlyphView
public float getMinimumSpan(int axis)
getMinimumSpan
in class javax.swing.text.GlyphView
public javax.swing.text.View breakView(int axis, int p0, float pos, float len)
breakView
in class javax.swing.text.GlyphView
public void resetBreakSpots()
public void preferenceChanged(javax.swing.text.View child, boolean width, boolean height)
preferenceChanged
in class javax.swing.text.View