Skip navigation links
oracle.javatools.ui.simplestyle
Class StyledTextAttribute
java.lang.Object
oracle.javatools.ui.simplestyle.StyledTextAttribute
-
public class StyledTextAttribute
- extends java.lang.Object
Class to hold the attributes for a section (run) of same style text.
Constructor Summary |
StyledTextAttribute()
Construct a StyledTextAttribute with the default label style for this look and feel |
StyledTextAttribute(java.awt.Font font, java.awt.Color foreground)
Construct a StyledTextAttribute with the given font and foreground color |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StyledTextAttribute
public StyledTextAttribute()
- Construct a StyledTextAttribute with the default label style for this look and feel
StyledTextAttribute
public StyledTextAttribute(java.awt.Font font,
java.awt.Color foreground)
- Construct a StyledTextAttribute with the given font and foreground color
- Parameters:
font
-
foreground
-
getAttribute
public java.lang.Object getAttribute(StyledTextAttribute.AttributeType type)
addAttribute
public void addAttribute(StyledTextAttribute.AttributeType type,
java.lang.Object value)
toString
public java.lang.String toString()
-
- Overrides:
toString
in class java.lang.Object
Skip navigation links
Copyright © 1997, 2012, Oracle. All rights reserved.