jwo.landserf.process.io
Class FeatureStyle

java.lang.Object
  extended by jwo.landserf.process.io.FeatureStyle

public class FeatureStyle
extends Object

Stores a simple colour representation of a KML style that can be flagged to be associated with any combination of points, lines or areas.

Version:
2.3, 24th September, 2007.
Author:
Jo Wood

Constructor Summary
FeatureStyle(String colour, boolean isPoint, boolean isLine, boolean isPolygon)
          Creates a colour that can be associated with an attribute value.
 
Method Summary
 String getColour()
          Reports the colour to be associated with an object.
 boolean isLine()
          Reports whether the style is to be associated with a line object.
 boolean isPoint()
          Reports whether the style is to be associated with a point object.
 boolean isPolygon()
          Reports whether the style is to be associated with a polygon object.
 void setIsLine(boolean isLine)
          Determines whether or not style is to be associated with lines.
 void setIsPoint(boolean isPoint)
          Determines whether or not style is to be associated with points.
 void setIsPolygon(boolean isPolygon)
          Determines whether or not style is to be associated with polygons.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureStyle

public FeatureStyle(String colour,
                    boolean isPoint,
                    boolean isLine,
                    boolean isPolygon)
Creates a colour that can be associated with an attribute value.

Parameters:
colour - String representing KML colour in the form of 'aabbggrr' in hex.
isPoint - Colour associated with point objects if true.
isLine - Colour associated with line objects if true.
isPolygon - Colour associated with polygon objects if true.
Method Detail

getColour

public String getColour()
Reports the colour to be associated with an object.

Returns:
Text string representing colour in the form of 'aabbggrr' in hex.

isPoint

public boolean isPoint()
Reports whether the style is to be associated with a point object.

Returns:
True if style to be associated with a point object.

isLine

public boolean isLine()
Reports whether the style is to be associated with a line object.

Returns:
True if style to be associated with a line object.

isPolygon

public boolean isPolygon()
Reports whether the style is to be associated with a polygon object.

Returns:
True if style to be associated with a polygon object.

setIsPoint

public void setIsPoint(boolean isPoint)
Determines whether or not style is to be associated with points.

Parameters:
isPoint - Determines if points have this style.

setIsLine

public void setIsLine(boolean isLine)
Determines whether or not style is to be associated with lines.

Parameters:
isLine - Determines if lines have this style.

setIsPolygon

public void setIsPolygon(boolean isPolygon)
Determines whether or not style is to be associated with polygons.

Parameters:
isPolygon - Determines if polygons have this style.


Copyright Jo Wood, 1996-2009, last modified, 17th April, 2009