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:
Cloneable,SwingConstants,TabableView
Custom implementation of view.
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.text.GlyphView
GlyphView.GlyphPainter -
Field Summary
Fields inherited from class javax.swing.text.View
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXISFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbreakView(int axis, int p0, float pos, float len) floatgetMinimumSpan(int axis) floatgetPreferredSpan(int axis) voidvoidpreferenceChanged(View child, boolean width, boolean height) voidMethods inherited from class javax.swing.text.LabelView
changedUpdate, getBackground, getFont, getForeground, isStrikeThrough, isSubscript, isSuperscript, isUnderlineMethods inherited from class javax.swing.text.GlyphView
createFragment, getAlignment, getBreakWeight, getEndOffset, getGlyphPainter, getNextVisualPositionFrom, getPartialSpan, getStartOffset, getTabbedSpan, getTabExpander, getText, insertUpdate, modelToView, removeUpdate, setGlyphPainter, viewToModelMethods 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, viewToModelMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.text.TabableView
getPartialSpan, getTabbedSpan
-
Constructor Details
-
ViewLabel
-
-
Method Details
-
paint
-
getPreferredSpan
public float getPreferredSpan(int axis) - Overrides:
getPreferredSpanin classGlyphView
-
getMinimumSpan
public float getMinimumSpan(int axis) - Overrides:
getMinimumSpanin classGlyphView
-
breakView
-
resetBreakSpots
public void resetBreakSpots() -
preferenceChanged
- Overrides:
preferenceChangedin classView
-