Package org.omegat.gui.editor
Class ViewLabel
- java.lang.Object
-
- javax.swing.text.View
-
- javax.swing.text.GlyphView
-
- javax.swing.text.LabelView
-
- org.omegat.gui.editor.ViewLabel
-
- All Implemented Interfaces:
java.lang.Cloneable,javax.swing.SwingConstants,javax.swing.text.TabableView
public class ViewLabel extends javax.swing.text.LabelViewCustom implementation of view.
-
-
Constructor Summary
Constructors Constructor Description ViewLabel(javax.swing.text.Element el)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.text.ViewbreakView(int axis, int p0, float pos, float len)floatgetMinimumSpan(int axis)floatgetPreferredSpan(int axis)voidpaint(java.awt.Graphics g, java.awt.Shape a)voidpreferenceChanged(javax.swing.text.View child, boolean width, boolean height)voidresetBreakSpots()-
Methods inherited from class javax.swing.text.LabelView
changedUpdate, getBackground, getFont, getForeground, isStrikeThrough, isSubscript, isSuperscript, isUnderline
-
Methods inherited from class javax.swing.text.GlyphView
createFragment, getAlignment, getBreakWeight, getEndOffset, getGlyphPainter, getNextVisualPositionFrom, getPartialSpan, getStartOffset, getTabbedSpan, getTabExpander, getText, insertUpdate, modelToView, removeUpdate, setGlyphPainter, viewToModel
-
Methods inherited from class javax.swing.text.View
append, getAttributes, getChildAllocation, getContainer, getDocument, getElement, getGraphics, getMaximumSpan, getParent, getResizeWeight, getToolTipText, getView, getViewCount, getViewFactory, getViewIndex, getViewIndex, insert, isVisible, modelToView, modelToView, remove, removeAll, replace, setParent, setSize, viewToModel
-
-
-
-
Method Detail
-
paint
public void paint(java.awt.Graphics g, java.awt.Shape a)- Overrides:
paintin classjavax.swing.text.GlyphView
-
getPreferredSpan
public float getPreferredSpan(int axis)
- Overrides:
getPreferredSpanin classjavax.swing.text.GlyphView
-
getMinimumSpan
public float getMinimumSpan(int axis)
- Overrides:
getMinimumSpanin classjavax.swing.text.GlyphView
-
breakView
public javax.swing.text.View breakView(int axis, int p0, float pos, float len)- Overrides:
breakViewin classjavax.swing.text.GlyphView
-
resetBreakSpots
public void resetBreakSpots()
-
preferenceChanged
public void preferenceChanged(javax.swing.text.View child, boolean width, boolean height)- Overrides:
preferenceChangedin classjavax.swing.text.View
-
-