Package org.geotools.styling
Class ShadedReliefImpl
- Object
-
- ShadedReliefImpl
-
- All Implemented Interfaces:
ShadedRelief
public class ShadedReliefImpl extends Object implements ShadedRelief
Default implementation of ShadedRelief.- Author:
- iant
-
-
Constructor Summary
Constructors Constructor Description ShadedReliefImpl()
ShadedReliefImpl(FilterFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(StyleVisitor visitor)
Object
accept(TraversingStyleVisitor visitor, Object data)
calls the visit method of a StyleVisitorboolean
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 ?
-
-
-
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 interfaceShadedRelief
- 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 interfaceShadedRelief
- Returns:
- boolean brightnessOn.
-
setBrightnessOnly
public void setBrightnessOnly(boolean flag)
turns brightnessOnly on or off depending on value of flag.- Specified by:
setBrightnessOnly
in interfaceShadedRelief
- 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.- Specified by:
setReliefFactor
in interfaceShadedRelief
- Parameters:
reliefFactor
- an expression which evaluates to a double.
-
accept
public Object accept(TraversingStyleVisitor visitor, Object data)
Description copied from interface:ShadedRelief
calls the visit method of a StyleVisitor- Specified by:
accept
in interfaceShadedRelief
- Parameters:
visitor
- the style visitor
-
accept
public void accept(StyleVisitor visitor)
- Specified by:
accept
in interfaceShadedRelief
-
-