javax.swing.text.rtf
Class RTFAttributes.NumericAttribute

java.lang.Object
  extended byjavax.swing.text.rtf.RTFAttributes.GenericAttribute
      extended byjavax.swing.text.rtf.RTFAttributes.NumericAttribute
All Implemented Interfaces:
RTFAttribute
Enclosing class:
RTFAttributes

static class RTFAttributes.NumericAttribute
extends RTFAttributes.GenericAttribute
implements RTFAttribute


Field Summary
static int D_CHARACTER
           
static int D_DOCUMENT
           
static int D_META
           
static int D_PARAGRAPH
           
static int D_SECTION
           
(package private)  int domain
           
(package private)  int rtfDefault
           
(package private)  String rtfName
           
(package private)  float scale
           
(package private)  Number swingDefault
           
(package private)  Object swingName
           
 
Constructor Summary
protected RTFAttributes.NumericAttribute(int d, Object s, String r)
           
  RTFAttributes.NumericAttribute(int d, Object s, String r, int ds, int dr)
           
  RTFAttributes.NumericAttribute(int d, Object s, String r, Number ds, int dr, float sc)
           
 
Method Summary
 int domain()
           
static RTFAttributes.NumericAttribute NewTwips(int d, Object s, String r, float ds, int dr)
           
static RTFAttributes.NumericAttribute NewTwips(int d, Object s, String r, int dr)
           
 String rtfName()
           
 boolean set(MutableAttributeSet target)
           
 boolean set(MutableAttributeSet target, int parameter)
           
 boolean setDefault(MutableAttributeSet target)
           
 Object swingName()
           
 boolean write(AttributeSet source, RTFGenerator target, boolean force)
           
 boolean writeValue(Object o_value, RTFGenerator target, boolean force)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rtfDefault

int rtfDefault

swingDefault

Number swingDefault

scale

float scale

D_CHARACTER

public static final int D_CHARACTER
See Also:
Constant Field Values

D_PARAGRAPH

public static final int D_PARAGRAPH
See Also:
Constant Field Values

D_SECTION

public static final int D_SECTION
See Also:
Constant Field Values

D_DOCUMENT

public static final int D_DOCUMENT
See Also:
Constant Field Values

D_META

public static final int D_META
See Also:
Constant Field Values

domain

int domain

swingName

Object swingName

rtfName

String rtfName
Constructor Detail

RTFAttributes.NumericAttribute

protected RTFAttributes.NumericAttribute(int d,
                                         Object s,
                                         String r)

RTFAttributes.NumericAttribute

public RTFAttributes.NumericAttribute(int d,
                                      Object s,
                                      String r,
                                      int ds,
                                      int dr)

RTFAttributes.NumericAttribute

public RTFAttributes.NumericAttribute(int d,
                                      Object s,
                                      String r,
                                      Number ds,
                                      int dr,
                                      float sc)
Method Detail

NewTwips

public static RTFAttributes.NumericAttribute NewTwips(int d,
                                                      Object s,
                                                      String r,
                                                      float ds,
                                                      int dr)

NewTwips

public static RTFAttributes.NumericAttribute NewTwips(int d,
                                                      Object s,
                                                      String r,
                                                      int dr)

set

public boolean set(MutableAttributeSet target)
Specified by:
set in interface RTFAttribute
Specified by:
set in class RTFAttributes.GenericAttribute

set

public boolean set(MutableAttributeSet target,
                   int parameter)
Specified by:
set in interface RTFAttribute
Specified by:
set in class RTFAttributes.GenericAttribute

setDefault

public boolean setDefault(MutableAttributeSet target)
Specified by:
setDefault in interface RTFAttribute
Specified by:
setDefault in class RTFAttributes.GenericAttribute

writeValue

public boolean writeValue(Object o_value,
                          RTFGenerator target,
                          boolean force)
                   throws IOException
Specified by:
writeValue in interface RTFAttribute
Overrides:
writeValue in class RTFAttributes.GenericAttribute
Throws:
IOException

domain

public int domain()

swingName

public Object swingName()

rtfName

public String rtfName()

write

public boolean write(AttributeSet source,
                     RTFGenerator target,
                     boolean force)
              throws IOException
Throws:
IOException