sferyx.administration.renderers
Class CustomBRView
java.lang.Object
javax.swing.text.View
javax.swing.text.GlyphView
javax.swing.text.LabelView
javax.swing.text.html.InlineView
sferyx.administration.renderers.CustomBRView
- All Implemented Interfaces:
- java.lang.Cloneable, javax.swing.SwingConstants, javax.swing.text.TabableView
public class CustomBRView
- extends javax.swing.text.html.InlineView
Nested classes/interfaces inherited from class javax.swing.text.GlyphView |
javax.swing.text.GlyphView.GlyphPainter |
Fields inherited from class javax.swing.text.View |
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS |
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 |
CustomBRView(javax.swing.text.Element elem)
Creates a new view that represents a <BR> element. |
Methods inherited from class javax.swing.text.html.InlineView |
changedUpdate, getAttributes, getStyleSheet, insertUpdate, removeUpdate, setPropertiesFromAttributes |
Methods inherited from class javax.swing.text.LabelView |
getBackground, getFont, getFontMetrics, getForeground, isStrikeThrough, isSubscript, isSuperscript, isUnderline, setBackground, setStrikeThrough, setSubscript, setSuperscript, setUnderline |
Methods inherited from class javax.swing.text.GlyphView |
checkPainter, clone, getAlignment, getEndOffset, getGlyphPainter, getNextVisualPositionFrom, getStartOffset, getTabExpander, getText, modelToView, setGlyphPainter, viewToModel |
Methods inherited from class javax.swing.text.View |
append, forwardUpdate, forwardUpdateToView, getChildAllocation, getContainer, getDocument, getElement, getGraphics, getParent, getResizeWeight, getToolTipText, getView, getViewCount, getViewFactory, getViewIndex, getViewIndex, insert, isVisible, modelToView, modelToView, preferenceChanged, remove, removeAll, replace, setParent, setSize, updateChildren, updateLayout, viewToModel |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomBRView
public CustomBRView(javax.swing.text.Element elem)
- Creates a new view that represents a <BR> element.
- Parameters:
elem
- the element to create a view for
paint
public void paint(java.awt.Graphics g,
java.awt.Shape a)
- Overrides:
paint
in class javax.swing.text.GlyphView
getPreferredSpan
public float getPreferredSpan(int axis)
- Overrides:
getPreferredSpan
in class javax.swing.text.GlyphView
getMaximumSpan
public float getMaximumSpan(int axis)
- Overrides:
getMaximumSpan
in class javax.swing.text.View
getMinimumSpan
public float getMinimumSpan(int axis)
- Overrides:
getMinimumSpan
in class javax.swing.text.View
createFragment
public javax.swing.text.View createFragment(int p0,
int p1)
- Overrides:
createFragment
in class javax.swing.text.GlyphView
breakView
public javax.swing.text.View breakView(int axis,
int p0,
float pos,
float len)
- Overrides:
breakView
in class javax.swing.text.html.InlineView
getBreakWeight
public int getBreakWeight(int axis,
float pos,
float len)
- Forces a line break.
- Overrides:
getBreakWeight
in class javax.swing.text.html.InlineView
- Returns:
- View.ForcedBreakWeight
getPartialSpan
public float getPartialSpan(int p0,
int p1)
- Specified by:
getPartialSpan
in interface javax.swing.text.TabableView
- Overrides:
getPartialSpan
in class javax.swing.text.GlyphView
getTabbedSpan
public float getTabbedSpan(float x,
javax.swing.text.TabExpander e)
- Specified by:
getTabbedSpan
in interface javax.swing.text.TabableView
- Overrides:
getTabbedSpan
in class javax.swing.text.GlyphView