org.geotools.styling
Class ChannelSelectionImpl

Object
  extended by ChannelSelectionImpl
All Implemented Interfaces:
ChannelSelection

public class ChannelSelectionImpl
extends Object
implements ChannelSelection

ChannelSelectionImpl

Author:
iant

Constructor Summary
ChannelSelectionImpl()
           
 
Method Summary
 void accept(StyleVisitor visitor)
           
 void accept(StyleVisitor visitor)
           
 Object accept(StyleVisitor visitor, Object data)
          calls the visit method of a StyleVisitor
 boolean equals(Object obj)
           
 SelectedChannelType getGrayChannel()
          Get the gray channel to be used
 SelectedChannelType[] getRGBChannels()
          Retrieves the RGB channel that were selected.
 SelectedChannelType[] getSelectedChannels()
          get the channels to be used
 int hashCode()
           
 void setGrayChannel(SelectedChannelType gray)
          Set the gray channel to be used
 void setGrayChannel(SelectedChannelType gray)
           
 void setRGBChannels(SelectedChannelType[] channels)
          Set the RGB channels to be used
 void setRGBChannels(SelectedChannelType red, SelectedChannelType green, SelectedChannelType blue)
          Set the RGB channels to be used
 void setRGBChannels(SelectedChannelType red, SelectedChannelType green, SelectedChannelType blue)
           
 void setSelectedChannels(SelectedChannelType[] channels)
          set the channels to be used
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelSelectionImpl

public ChannelSelectionImpl()
Method Detail

getGrayChannel

public SelectedChannelType getGrayChannel()
Description copied from interface: ChannelSelection
Get the gray channel to be used

Specified by:
getGrayChannel in interface ChannelSelection
Returns:
the gray channel

getRGBChannels

public SelectedChannelType[] getRGBChannels()
Retrieves the RGB channel that were selected. Note that in case there is no RGB selection the returned SelectedChannelType array will contain null elements.

Specified by:
getRGBChannels in interface ChannelSelection
Returns:
SelectedChannelType array that contains the SelectedChannelType elements for the RGB channels.

getSelectedChannels

public SelectedChannelType[] getSelectedChannels()
Description copied from interface: ChannelSelection
get the channels to be used

Returns:
array of channels

setGrayChannel

public void setGrayChannel(SelectedChannelType gray)
Description copied from interface: ChannelSelection
Set the gray channel to be used

Parameters:
gray - the gray channel

setGrayChannel

public void setGrayChannel(SelectedChannelType gray)

setRGBChannels

public void setRGBChannels(SelectedChannelType[] channels)
Description copied from interface: ChannelSelection
Set the RGB channels to be used

Parameters:
channels - array of channels in RGB order

setRGBChannels

public void setRGBChannels(SelectedChannelType red,
                           SelectedChannelType green,
                           SelectedChannelType blue)
Description copied from interface: ChannelSelection
Set the RGB channels to be used

Parameters:
red - the red channel
green - the green channel
blue - the blue channel

setRGBChannels

public void setRGBChannels(SelectedChannelType red,
                           SelectedChannelType green,
                           SelectedChannelType blue)

setSelectedChannels

public void setSelectedChannels(SelectedChannelType[] channels)
Description copied from interface: ChannelSelection
set the channels to be used

Parameters:
channels - array of channels

accept

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

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

accept

public void accept(StyleVisitor 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.