Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.xerox.VTM.svg
Class SVGStyle  view SVGStyle download SVGStyle.java

java.lang.Object
  extended bycom.xerox.VTM.svg.SVGStyle

public class SVGStyle
extends java.lang.Object

A class to store style information relevant to the VTM


Field Summary
(package private)  java.lang.Float alphaValue
           
(package private)  java.awt.Color fillColor
           
(package private)  java.awt.Color strokeColor
           
 
Constructor Summary
(package private) SVGStyle()
           
(package private) SVGStyle(java.awt.Color c1, java.awt.Color c2)
          fill color, border color
(package private) SVGStyle(java.awt.Color c1, java.awt.Color c2, java.lang.Float a)
          fill color, border color, transparency
 
Method Summary
 float getAlphaTransparencyValue()
          returns the alpha transparency value (1.0 if opaque, 0 is fully transparent)
 java.awt.Color getBorderColor()
          returns the stroke (border) color
 java.awt.Color getFillColor()
          returns the fill (interior) color
 boolean hasTransparencyInformation()
          returns true if there is transparency information (the value does not matter)
 void setAlphaTransparencyValue(java.lang.Float f)
          set the transparency value (between 0 (fully transparent) and 1.0 (opaque))
 void setBorderColor(java.awt.Color c)
          set the stroke (border) color
 void setFillColor(java.awt.Color c)
          set the fill (interior) color
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fillColor

java.awt.Color fillColor

strokeColor

java.awt.Color strokeColor

alphaValue

java.lang.Float alphaValue
Constructor Detail

SVGStyle

SVGStyle()

SVGStyle

SVGStyle(java.awt.Color c1,
         java.awt.Color c2)
fill color, border color


SVGStyle

SVGStyle(java.awt.Color c1,
         java.awt.Color c2,
         java.lang.Float a)
fill color, border color, transparency

Method Detail

hasTransparencyInformation

public boolean hasTransparencyInformation()
returns true if there is transparency information (the value does not matter)


setFillColor

public void setFillColor(java.awt.Color c)
set the fill (interior) color


getFillColor

public java.awt.Color getFillColor()
returns the fill (interior) color


setBorderColor

public void setBorderColor(java.awt.Color c)
set the stroke (border) color


getBorderColor

public java.awt.Color getBorderColor()
returns the stroke (border) color


setAlphaTransparencyValue

public void setAlphaTransparencyValue(java.lang.Float f)
set the transparency value (between 0 (fully transparent) and 1.0 (opaque))


getAlphaTransparencyValue

public float getAlphaTransparencyValue()
returns the alpha transparency value (1.0 if opaque, 0 is fully transparent)