< prev index next >
src/java.desktop/share/classes/javax/swing/text/LabelView.java
Print this page
@@ -26,11 +26,11 @@
import java.awt.*;
import javax.swing.event.*;
/**
- * A <code>LabelView</code> is a styled chunk of text
+ * A {@code LabelView} is a styled chunk of text
* that represents a view mapped over an element in the
* text model. It caches the character level attributes
* used for rendering.
*
* @author Timothy Prinzing
@@ -117,15 +117,15 @@
subscript = s;
}
/**
* Sets the background color for the view. This method is typically
- * invoked as part of configuring this <code>View</code>. If you need
+ * invoked as part of configuring this {@code View}. If you need
* to customize the background color you should override
- * <code>setPropertiesFromAttributes</code> and invoke this method. A
+ * {@code setPropertiesFromAttributes} and invoke this method. A
* value of null indicates no background should be rendered, so that the
- * background of the parent <code>View</code> will show through.
+ * background of the parent {@code View} will show through.
*
* @param bg background color, or null
* @see #setPropertiesFromAttributes
* @since 1.5
*/
@@ -158,12 +158,12 @@
}
}
}
/**
- * Fetches the <code>FontMetrics</code> used for this view.
- * @return the <code>FontMetrics</code> used for this view
+ * Fetches the {@code FontMetrics} used for this view.
+ * @return the {@code FontMetrics} used for this view
* @deprecated FontMetrics are not used for glyph rendering
* when running in the JDK.
*/
@Deprecated
protected FontMetrics getFontMetrics() {
@@ -174,11 +174,11 @@
}
/**
* Fetches the background color to use to render the glyphs.
* This is implemented to return a cached background color,
- * which defaults to <code>null</code>.
+ * which defaults to {@code null}.
*
* @return the cached background color
* @since 1.3
*/
public Color getBackground() {
@@ -187,11 +187,11 @@
}
/**
* Fetches the foreground color to use to render the glyphs.
* This is implemented to return a cached foreground color,
- * which defaults to <code>null</code>.
+ * which defaults to {@code null}.
*
* @return the cached foreground color
* @since 1.3
*/
public Color getForeground() {
@@ -213,18 +213,18 @@
/**
* Determines if the glyphs should be underlined. If true,
* an underline should be drawn through the baseline. This
* is implemented to return the cached underline property.
*
- * <p>When you request this property, <code>LabelView</code>
+ * <p>When you request this property, {@code LabelView}
* re-syncs its state with the properties of the
- * <code>Element</code>'s <code>AttributeSet</code>.
- * If <code>Element</code>'s <code>AttributeSet</code>
+ * {@code Element}'s {@code AttributeSet}.
+ * If {@code Element}'s {@code AttributeSet}
* does not have this property set, it will revert to false.
*
* @return the value of the cached
- * <code>underline</code> property
+ * {@code underline} property
* @since 1.3
*/
public boolean isUnderline() {
sync();
return underline;
@@ -232,20 +232,20 @@
/**
* Determines if the glyphs should have a strikethrough
* line. If true, a line should be drawn through the center
* of the glyphs. This is implemented to return the
- * cached <code>strikeThrough</code> property.
+ * cached {@code strikeThrough} property.
*
- * <p>When you request this property, <code>LabelView</code>
+ * <p>When you request this property, {@code LabelView}
* re-syncs its state with the properties of the
- * <code>Element</code>'s <code>AttributeSet</code>.
- * If <code>Element</code>'s <code>AttributeSet</code>
+ * {@code Element}'s {@code AttributeSet}.
+ * If {@code Element}'s {@code AttributeSet}
* does not have this property set, it will revert to false.
*
* @return the value of the cached
- * <code>strikeThrough</code> property
+ * {@code strikeThrough} property
* @since 1.3
*/
public boolean isStrikeThrough() {
sync();
return strike;
@@ -253,36 +253,36 @@
/**
* Determines if the glyphs should be rendered as superscript.
* @return the value of the cached subscript property
*
- * <p>When you request this property, <code>LabelView</code>
+ * <p>When you request this property, {@code LabelView}
* re-syncs its state with the properties of the
- * <code>Element</code>'s <code>AttributeSet</code>.
- * If <code>Element</code>'s <code>AttributeSet</code>
+ * {@code Element}'s {@code AttributeSet}.
+ * If {@code Element}'s {@code AttributeSet}
* does not have this property set, it will revert to false.
*
* @return the value of the cached
- * <code>subscript</code> property
+ * {@code subscript} property
* @since 1.3
*/
public boolean isSubscript() {
sync();
return subscript;
}
/**
* Determines if the glyphs should be rendered as subscript.
*
- * <p>When you request this property, <code>LabelView</code>
+ * <p>When you request this property, {@code LabelView}
* re-syncs its state with the properties of the
- * <code>Element</code>'s <code>AttributeSet</code>.
- * If <code>Element</code>'s <code>AttributeSet</code>
+ * {@code Element}'s {@code AttributeSet}.
+ * If {@code Element}'s {@code AttributeSet}
* does not have this property set, it will revert to false.
*
* @return the value of the cached
- * <code>superscript</code> property
+ * {@code superscript} property
* @since 1.3
*/
public boolean isSuperscript() {
sync();
return superscript;
< prev index next >