Package org.geotools.styling
Class ShadedReliefImpl
Object
ShadedReliefImpl
- All Implemented Interfaces:
ShadedRelief
Default implementation of ShadedRelief.
- Author:
- iant
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(StyleVisitor visitor) accept
(TraversingStyleVisitor visitor, Object data) calls the visit method of a StyleVisitorboolean
The ReliefFactor gives the amount of exaggeration to use for the height of the ?int
hashCode()
boolean
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 Details
-
ShadedReliefImpl
public ShadedReliefImpl() -
ShadedReliefImpl
-
-
Method Details
-
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
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
Description copied from interface:ShadedRelief
calls the visit method of a StyleVisitor- Specified by:
accept
in interfaceShadedRelief
- Parameters:
visitor
- the style visitor
-
accept
- Specified by:
accept
in interfaceShadedRelief
-
hashCode
public int hashCode() -
equals
-