edu.princeton.wordnet.browser
Class Style

java.lang.Object
  extended by edu.princeton.wordnet.browser.Style

public class Style
extends java.lang.Object

Name-value styles

Author:
Bernard Bou

Field Summary
 javax.swing.ImageIcon theIcon
          Icon
 java.lang.String theName
          Name
 javax.swing.text.SimpleAttributeSet theNameStyle
          Name style
 javax.swing.text.SimpleAttributeSet theValueStyle
          Value style
 
Constructor Summary
Style(java.lang.String thisName)
          Constructor
 
Method Summary
 void set(java.lang.String thisNameStyleString, java.lang.String thisValueStyleString, java.lang.String thisIcon)
          Set from strings
 void set(Style thisStyle)
          Set from buddy style
private  void setIcon(java.lang.String thisIcon)
          Set icon from strings
private  void setText(java.lang.String s, boolean isName)
          Set name or value style from strings
 java.lang.String toString()
           
static java.lang.String toString(javax.swing.text.SimpleAttributeSet as)
          Converts the attribute set to a String.
 java.lang.String valuesToString()
          Values to string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

theNameStyle

public javax.swing.text.SimpleAttributeSet theNameStyle
Name style


theValueStyle

public javax.swing.text.SimpleAttributeSet theValueStyle
Value style


theIcon

public javax.swing.ImageIcon theIcon
Icon


theName

public java.lang.String theName
Name

Constructor Detail

Style

public Style(java.lang.String thisName)
Constructor

Parameters:
thisName - name
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

valuesToString

public java.lang.String valuesToString()
Values to string

Returns:
string

toString

public static java.lang.String toString(javax.swing.text.SimpleAttributeSet as)
Converts the attribute set to a String.

Returns:
the string

set

public void set(Style thisStyle)
Set from buddy style


set

public void set(java.lang.String thisNameStyleString,
                java.lang.String thisValueStyleString,
                java.lang.String thisIcon)
Set from strings

Throws:
java.net.MalformedURLException

setText

private void setText(java.lang.String s,
                     boolean isName)
Set name or value style from strings


setIcon

private void setIcon(java.lang.String thisIcon)
Set icon from strings

Throws:
java.net.MalformedURLException