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 voidaccept(StyleVisitor visitor)Objectaccept(TraversingStyleVisitor visitor, Object data)calls the visit method of a StyleVisitorbooleanequals(Object obj)ExpressiongetReliefFactor()The ReliefFactor gives the amount of exaggeration to use for the height of the ?inthashCode()booleanisBrightnessOnly()indicates if brightnessOnly is true or false.voidsetBrightnessOnly(boolean flag)turns brightnessOnly on or off depending on value of flag.voidsetReliefFactor(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:
getReliefFactorin 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:
isBrightnessOnlyin interfaceShadedRelief- Returns:
- boolean brightnessOn.
-
setBrightnessOnly
public void setBrightnessOnly(boolean flag)
turns brightnessOnly on or off depending on value of flag.- Specified by:
setBrightnessOnlyin 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:
setReliefFactorin interfaceShadedRelief- Parameters:
reliefFactor- an expression which evaluates to a double.
-
accept
public Object accept(TraversingStyleVisitor visitor, Object data)
Description copied from interface:ShadedReliefcalls the visit method of a StyleVisitor- Specified by:
acceptin interfaceShadedRelief- Parameters:
visitor- the style visitor
-
accept
public void accept(StyleVisitor visitor)
- Specified by:
acceptin interfaceShadedRelief
-
-