org.geotools.styling
Class ShadedReliefImpl

Object
  extended by ShadedReliefImpl
All Implemented Interfaces:
ShadedRelief

public class ShadedReliefImpl
extends Object
implements ShadedRelief

Default implementation of ShadedRelief.

Author:
iant

Constructor Summary
ShadedReliefImpl()
           
ShadedReliefImpl(FilterFactory factory)
           
 
Method Summary
 void accept(StyleVisitor visitor)
           
 Object accept(StyleVisitor visitor, Object data)
          calls the visit method of a StyleVisitor
 boolean equals(Object obj)
           
 Expression getReliefFactor()
          The ReliefFactor gives the amount of exaggeration to use for the height of the ?
 int hashCode()
           
 boolean isBrightnessOnly()
          indicates if brightnessOnly is true or false.
 void setBrightnessOnly(boolean flag)
          turns brightnessOnly on or off depending on value of flag.
 void setReliefFactor(Expression reliefFactor)
          The ReliefFactor gives the amount of exaggeration to use for the height of the ?
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShadedReliefImpl

public ShadedReliefImpl()

ShadedReliefImpl

public ShadedReliefImpl(FilterFactory factory)
Method Detail

getReliefFactor

public Expression getReliefFactor()
The ReliefFactor gives the amount of exaggeration to use for the height of the ?hills.? A value of around 55 (times) gives reasonable results for Earth-based DEMs. The default value is system-dependent.

Specified by:
getReliefFactor in interface ShadedRelief
Returns:
an expression which evaluates to a double.

isBrightnessOnly

public boolean isBrightnessOnly()
indicates if brightnessOnly is true or false. Default is false.

Specified by:
isBrightnessOnly in interface ShadedRelief
Returns:
boolean brightnessOn.

setBrightnessOnly

public void setBrightnessOnly(boolean flag)
turns brightnessOnly on or off depending on value of flag.

Parameters:
flag - boolean

setReliefFactor

public void setReliefFactor(Expression reliefFactor)
The ReliefFactor gives the amount of exaggeration to use for the height of the ?hills.? A value of around 55 (times) gives reasonable results for Earth-based DEMs. The default value is system-dependent.

Parameters:
reliefFactor - an expression which evaluates to a double.

accept

public Object accept(StyleVisitor visitor,
                     Object data)
Description copied from interface: ShadedRelief
calls the visit method of a StyleVisitor

Specified by:
accept in interface ShadedRelief
Parameters:
visitor - the style visitor

accept

public void accept(StyleVisitor visitor)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 1996-2014 Geotools. All Rights Reserved.