

Is implemented to return the cached underline property. If true,Īn underline should be drawn through the baseline. Public boolean isUnderline() Determines if the glyphs should be underlined. Overrides: getFont in class GlyphView Returns: the cached font This is implemented to return a cached font. Public Font getFont() Fetches the font that the glyphs should be based upon. Overrides: getForeground in class GlyphView Returns: the cached foreground color Since: 1.3 This is implemented to return a cached foreground color, Public Color getForeground() Fetches the foreground color to use to render the glyphs. Overrides: getBackground in class GlyphView Returns: the cached background color Since: 1.3 This is implemented to return a cached background color, Public Color getBackground() Fetches the background color to use to render the glyphs. FontMetrics are not used for glyph renderingįetches the FontMetrics used for this view. GetFontMetrics FontMetrics getFontMetrics() Deprecated. Protected void setPropertiesFromAttributes() Sets the cached properties from the attributes. Parameters: bg - background color, or null Since: 1.5 See Also: setPropertiesFromAttributes() Value of null indicates no background should be rendered, so that theīackground of the parent View will show through. SetPropertiesFromAttributes and invoke this method. To customize the background color you should override Invoked as part of configuring this View. Protected void setBackground( Color bg) Sets the background color for the view. Subscript, otherwise false See Also: isSubscript() Protected void setSubscript(boolean s) Sets whether or not the view represents a Superscript, otherwise false See Also: isSuperscript() Parameters: s - true if the view represents a Protected void setSuperscript(boolean s) Sets whether or not the view represents a Through it, otherwise false See Also: isStrikeThrough() Parameters: s - true if the view has a strike/line Protected void setStrikeThrough(boolean s) Sets whether or not the view has a strike/line Parameters: u - true if the view is underlined, otherwise
LABELVIEW 6 UPDATE
Only meant if you need to update some additional Note that this setter is protected and is really
Protected void setUnderline(boolean u) Sets whether or not the view is underlined. Parameters: elem - the element Method Detail Public LabelView( Element elem) Constructs a new view wrapped on an element. ObjectĮquals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait ViewĪppend, forwardUpdate, forwardUpdateToView, getAttributes, getChildAllocation, getContainer, getDocument, getElement, getGraphics, getMaximumSpan, getMinimumSpan, getParent, getResizeWeight, getToolTipText, getView, getViewCount, getViewFactory, getViewIndex, getViewIndex, insert, isVisible, modelToView, modelToView, preferenceChanged, remove, removeAll, replace, setParent, setSize, updateChildren, updateLayout, viewToModel GlyphViewīreakView, checkPainter, clone, createFragment, getAlignment, getBreakWeight, getEndOffset, getGlyphPainter, getNextVisualPositionFrom, getPartialSpan, getPreferredSpan, getStartOffset, getTabbedSpan, getTabExpander, getText, insertUpdate, modelToView, paint, removeUpdate, setGlyphPainter, viewToModel Sets whether or not the view is underlined. Sets whether or not the view represents a Sets whether or not the view has a strike/line Sets the cached properties from the attributes. FontMetrics are not used for glyph renderingįetches the foreground color to use to render the glyphs.ĭetermines if the glyphs should have a strikethroughĭetermines if the glyphs should be rendered as superscript.ĭetermines if the glyphs should be rendered as subscript.ĭetermines if the glyphs should be underlined. In a location that this view is responsible for.įetches the background color to use to render the glyphs.įetches the font that the glyphs should be based upon.ĭeprecated. Gives notification from the document that attributes were changed SwingConstantsīOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WESTĬonstructs a new view wrapped on an element. ViewīadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXISįields inherited from interface javax.swing. Nested classes/interfaces inherited from class. That represents a view mapped over an element in the Public class LabelView extends GlyphView implements TabableView SUMMARY: NESTED | FIELD | CONSTR | METHODĬlass LabelView All Implemented Interfaces: Cloneable, SwingConstants, TabableView Direct Known Subclasses: InlineView
