org.geotools.styling
Class ChannelSelectionImpl

java.lang.Object
  extended by org.geotools.styling.ChannelSelectionImpl
All Implemented Interfaces:
org.opengis.style.ChannelSelection

public class ChannelSelectionImpl
extends java.lang.Object
implements ChannelSelection

ChannelSelectionImpl

Author:
iant

Constructor Summary
ChannelSelectionImpl()
           
 
Method Summary
 void accept(StyleVisitor visitor)
           
 void accept(org.opengis.style.StyleVisitor visitor)
           
 java.lang.Object accept(org.opengis.style.StyleVisitor visitor, java.lang.Object data)
           
 boolean equals(java.lang.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(org.opengis.style.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(org.opengis.style.SelectedChannelType red, org.opengis.style.SelectedChannelType green, org.opengis.style.SelectedChannelType blue)
           
 void setSelectedChannels(SelectedChannelType[] channels)
          set the channels to be used
 
Methods inherited from class java.lang.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 org.opengis.style.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 org.opengis.style.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(org.opengis.style.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(org.opengis.style.SelectedChannelType red,
                           org.opengis.style.SelectedChannelType green,
                           org.opengis.style.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 java.lang.Object accept(org.opengis.style.StyleVisitor visitor,
                               java.lang.Object data)
Specified by:
accept in interface org.opengis.style.ChannelSelection

accept

public void accept(StyleVisitor visitor)

accept

public void accept(org.opengis.style.StyleVisitor visitor)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 1996-2010 Geotools. All Rights Reserved.