fr.inria.zvtm.svg
Class Context

java.lang.Object
  extended by fr.inria.zvtm.svg.Context

public class Context
extends Object

Context information that is propagated while walking the SVG DOM tree.


Method Summary
 Context duplicate()
           
 float getAlphaTransparencyValue()
          Get alpha transparency value.
 String getClosestAncestorGroupClass()
           
 String getClosestAncestorGroupID()
           
 Color getFillColor()
          Get fill (interior) color.
 Color getStrokeColor()
          Get stroke (border) color.
 String getTitle()
          Get Title associated with this part of the SVG document tree.
 String getURL()
          Get URL associated with this part of the SVG document tree.
 String getURLTitle()
          Get the URL's title associated with this part of the SVG document tree.
 boolean hasFillColorInformation()
          Has fill information been declared.
 boolean hasStrokeColorInformation()
          Has stroke color information been declared.
 boolean hasTransparencyInformation()
          Has transparency information been declared.
 void setClosestAncestorGroupClass(String s)
           
 void setClosestAncestorGroupID(String s)
           
 void setTitle(String s)
          Set a Title for this part of the SVG document tree.
 void setURL(String s)
          Set a URL for this part of the SVG document tree.
 void setURLTitle(String s)
          Set a URL's title for this part of the SVG document tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasTransparencyInformation

public boolean hasTransparencyInformation()
Has transparency information been declared. The value does not matter.


getFillColor

public Color getFillColor()
Get fill (interior) color.


hasFillColorInformation

public boolean hasFillColorInformation()
Has fill information been declared.


getStrokeColor

public Color getStrokeColor()
Get stroke (border) color.


hasStrokeColorInformation

public boolean hasStrokeColorInformation()
Has stroke color information been declared.


getAlphaTransparencyValue

public float getAlphaTransparencyValue()
Get alpha transparency value.

Returns:
alpha value in [0,1f]. 1.0 if opaque, 0 is fully transparent.

setURL

public void setURL(String s)
Set a URL for this part of the SVG document tree.


getURL

public String getURL()
Get URL associated with this part of the SVG document tree.

Returns:
null if none specified.

setURLTitle

public void setURLTitle(String s)
Set a URL's title for this part of the SVG document tree.


getURLTitle

public String getURLTitle()
Get the URL's title associated with this part of the SVG document tree.

Returns:
null if none specified.

setTitle

public void setTitle(String s)
Set a Title for this part of the SVG document tree.


getTitle

public String getTitle()
Get Title associated with this part of the SVG document tree.

Returns:
null if none specified.

setClosestAncestorGroupID

public void setClosestAncestorGroupID(String s)

getClosestAncestorGroupID

public String getClosestAncestorGroupID()
Returns:
null if none

setClosestAncestorGroupClass

public void setClosestAncestorGroupClass(String s)

getClosestAncestorGroupClass

public String getClosestAncestorGroupClass()
Returns:
null if none

duplicate

public Context duplicate()


Copyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2011 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.