y.io
Class LinkInfo

java.lang.Object
  |
  +--y.io.LinkInfo

public class LinkInfo
extends Object

A simple String-based attribute model for hyperlinks.


Field Summary
static String CIRCLE
           
static String HTML_ACCESSKEY
           
static String HTML_COORDINATES
           
static String HTML_REFERENCE
           
static String HTML_SHAPE
           
static String HTML_TABINDEX
           
static String HTML_TOOLTIP
           
static String POLYGON
           
static String RECT
           
static String XLINK_REFERENCE
           
 
Constructor Summary
LinkInfo()
          Constructs an empty LinkInfo.
 
Method Summary
 Iterator attributes()
          Returns an iterator over the set of attribute names in this LinkInfo.
 void clear()
          Removes all attributes from this LinkInfo.
 String getAttribute(String name)
          Returns the value of attribute name.
 boolean hasAttribute(String name)
          Returns true if the attribute name has been set.
 boolean hasAttributes()
          Returns true if any attributes have been set.
 void setAttribute(String name, String value)
          Sets the attribute name with value value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XLINK_REFERENCE

public static final String XLINK_REFERENCE
See Also:
Constant Field Values

HTML_ACCESSKEY

public static final String HTML_ACCESSKEY
See Also:
Constant Field Values

HTML_COORDINATES

public static final String HTML_COORDINATES
See Also:
Constant Field Values

HTML_REFERENCE

public static final String HTML_REFERENCE
See Also:
Constant Field Values

HTML_SHAPE

public static final String HTML_SHAPE
See Also:
Constant Field Values

HTML_TABINDEX

public static final String HTML_TABINDEX
See Also:
Constant Field Values

HTML_TOOLTIP

public static final String HTML_TOOLTIP
See Also:
Constant Field Values

RECT

public static final String RECT
See Also:
Constant Field Values

CIRCLE

public static final String CIRCLE
See Also:
Constant Field Values

POLYGON

public static final String POLYGON
See Also:
Constant Field Values
Constructor Detail

LinkInfo

public LinkInfo()
Constructs an empty LinkInfo.

Method Detail

getAttribute

public String getAttribute(String name)
Returns the value of attribute name.

Parameters:
name -
Returns:
the value of name; or null if name has not been set

hasAttributes

public boolean hasAttributes()
Returns true if any attributes have been set.

Returns:
true if any attributes have been set; false otherwise

hasAttribute

public boolean hasAttribute(String name)
Returns true if the attribute name has been set.

Parameters:
name -
Returns:
true if the attribute name has been set; false otherwise

setAttribute

public void setAttribute(String name,
                         String value)
Sets the attribute name with value value.

Parameters:
name -
value -

attributes

public Iterator attributes()
Returns an iterator over the set of attribute names in this LinkInfo.

Returns:
an iterator over the set of attribute names in this LinkInfo.

clear

public void clear()
Removes all attributes from this LinkInfo.


© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003