ilog.views.svg
Class SVGHREFProperty

java.lang.Object
  extended by ilog.views.IlvNamedProperty
      extended by ilog.views.svg.SVGHREFProperty
All Implemented Interfaces:
IlvPersistentObject, Serializable

public class SVGHREFProperty
extends IlvNamedProperty

This IlvNamedProperty subclass allows access to details of the Xlink hyperreference associated with an IlvGraphic.

See Also:
SVGHREFObjectInteractor, Serialized Form

Field Summary
static String NEW
          When the SVGHREFProperty uses this method, the contents of the link destination will be put in a new instance of IlvManager.
static String REPLACE
          When the SVGHREFProperty uses this method, the contents of the link destination will replace the current contents of the IlvManager.
 
Constructor Summary
SVGHREFProperty(IlvInputStream stream)
          IlvInputStream constructor.
SVGHREFProperty(SVGHREFProperty source)
          Copy constructor.
SVGHREFProperty(URL ref, String method)
          Builds an instance of SVGHREFProperty.
 
Method Summary
 IlvNamedProperty copy()
          Returns a copy of the SVGHREFProperty.
 URL getHREFAttribute()
          Returns the value of the xlink:href attribute.
 String getShowAttribute()
          Returns the value of the xlink:show attribute.
 boolean isPersistent()
          Returns true.
 void write(IlvOutputStream stream)
          Writes the SVGHREFProperty to a stream.
 
Methods inherited from class ilog.views.IlvNamedProperty
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPLACE

public static final String REPLACE
When the SVGHREFProperty uses this method, the contents of the link destination will replace the current contents of the IlvManager.

Since:
JViews 5.0
See Also:
getShowAttribute(), Constant Field Values

NEW

public static final String NEW
When the SVGHREFProperty uses this method, the contents of the link destination will be put in a new instance of IlvManager.

Since:
JViews 5.0
See Also:
getShowAttribute(), Constant Field Values
Constructor Detail

SVGHREFProperty

public SVGHREFProperty(URL ref,
                       String method)
Builds an instance of SVGHREFProperty.

Parameters:
ref - The URL that the link should follow.
method - The method that should be used to follow the link (that is, REPLACE or NEW).
Since:
JViews 5.0

SVGHREFProperty

public SVGHREFProperty(SVGHREFProperty source)
Copy constructor.

See Also:
IlvNamedProperty.IlvNamedProperty(IlvNamedProperty)

SVGHREFProperty

public SVGHREFProperty(IlvInputStream stream)
                throws IOException,
                       IlvReadFileException
IlvInputStream constructor.

Throws:
IOException
IlvReadFileException
See Also:
IlvNamedProperty.IlvNamedProperty(IlvInputStream)
Method Detail

copy

public IlvNamedProperty copy()
Returns a copy of the SVGHREFProperty.

Specified by:
copy in class IlvNamedProperty

isPersistent

public boolean isPersistent()
Returns true.

Specified by:
isPersistent in class IlvNamedProperty
See Also:
IlvNamedProperty.isPersistent()

getShowAttribute

public String getShowAttribute()
Returns the value of the xlink:show attribute. This is the method that should be used to follow the link.

See Also:
REPLACE, NEW

getHREFAttribute

public URL getHREFAttribute()
Returns the value of the xlink:href attribute. This is the URL that the link should follow.


write

public void write(IlvOutputStream stream)
           throws IOException
Writes the SVGHREFProperty to a stream.

Specified by:
write in interface IlvPersistentObject
Overrides:
write in class IlvNamedProperty
Parameters:
stream - The output stream.
Throws:
IOException - standard IO error.
See Also:
IlvNamedProperty.write(ilog.views.io.IlvOutputStream)


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.