Skip to content

Commit

Permalink
Update javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Jamet committed Feb 1, 2019
1 parent 97ed68c commit a49b142
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import com.kunzisoft.androidclearchroma.colormode.Channel;

/**
* Channel view to show each color channel
* Channel view to show a color channel
* @author JJamet, Pavel Sikun
*/
public class ChannelView extends RelativeLayout {
Expand Down Expand Up @@ -88,14 +88,27 @@ private void setProgress(TextView view, int progress) {
: String.valueOf(progress));
}

/**
* Attach a change listener to the channel view
* @param listener Listener to attach
*/
public void registerListener(OnProgressChangedListener listener) {
this.listener = listener;
}

/**
* Set a new channel to the view, the IndicatorMode.DECIMAL is used
* @param channel Channel to assign
*/
public void setChannel(Channel channel) {
setChannel(channel, IndicatorMode.DECIMAL);
}

/**
* Set a new channel to the view with a specific IndicatorMode
* @param channel Channel to assign
* @param indicatorMode Indicator to use
*/
public void setChannel(Channel channel, IndicatorMode indicatorMode) {
this.channel = channel;
this.indicatorMode = indicatorMode;
Expand Down

0 comments on commit a49b142

Please sign in to comment.