com.mizar.metadata.mapviewer
Class ColorStyle

java.lang.Object
  extended by com.mizar.metadata.mapviewer.Style
      extended by com.mizar.metadata.mapviewer.ColorStyle

public class ColorStyle
extends Style

TODO: there should be an abstract class behind this and MarkerStyle (and the other styles we are likely to create


Field Summary
 
Fields inherited from class com.mizar.metadata.mapviewer.Style
COLOR, fillColor, MARKER, name, strokeColor, type
 
Constructor Summary
ColorStyle()
           
ColorStyle(java.lang.String name, java.lang.String strokeColor, java.lang.String fillColor, int strokeOpacity, int fillOpacity)
          This
 
Method Summary
 void add(oracle.lbs.mapclient.MapViewer mv)
           
 int getFillOpacity()
           
 int getStrokeOpacity()
           
 void setFillOpacity(int fillOpacity)
           
 void setStrokeOpacity(int strokeOpacity)
           
 
Methods inherited from class com.mizar.metadata.mapviewer.Style
getFillColor, getName, getStrokeColor, getType, setFillColor, setName, setStrokeColor, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorStyle

public ColorStyle()

ColorStyle

public ColorStyle(java.lang.String name,
                  java.lang.String strokeColor,
                  java.lang.String fillColor,
                  int strokeOpacity,
                  int fillOpacity)
This

Parameters:
name - the name of the new style
strokeColor - the color used for stroking or draing edges. Must be a valid Java color name such as "red", "blue", or RGB hex-string such as "#ff0000".
fillColor - the color used for filling geometries. Must be a valid Java color name such as "red", "blue", or RGB hex-string such as "#ff0000".
strokeOpacity - he opacity value for the stroking color; Must within the range of 0-255, 0 meaning completely transparent, 255 completely opaque.
fillOpacity - he opacity value for the filling color; Must within the range of 0-255, 0 meaning completely transparent, 255 completely opaque.
See Also:
FacesMapViewer.addColorStyle
Method Detail

add

public void add(oracle.lbs.mapclient.MapViewer mv)
         throws java.lang.Exception
Parameters:
mv - the MapViewer instance is used to addColorStyle. Note if the style already exists it will be silently replaced.
Throws:
java.lang.Exception
See Also:
MapViewer.addColorStyle

setStrokeOpacity

public void setStrokeOpacity(int strokeOpacity)

getStrokeOpacity

public int getStrokeOpacity()

setFillOpacity

public void setFillOpacity(int fillOpacity)

getFillOpacity

public int getFillOpacity()