Interface RgbColor

All Known Subinterfaces:
RgbPixel
All Known Implementing Classes:
RgbColorImpl, RgbPixelImpl

public interface RgbColor
The Interface RgbPixel.
  • Method Details

    • getAlpha

      int getAlpha()
      Gets the alpha portion.
      Returns:
      the alpha portion
    • getRed

      int getRed()
      Gets the red portion.
      Returns:
      the red portion
    • getGreen

      int getGreen()
      Gets the green portion.
      Returns:
      the green portion
    • getBlue

      int getBlue()
      Gets the blue portion.
      Returns:
      the blue portion
    • toRgbValue

      int toRgbValue()
      To rgb value.
      Returns:
      the int
    • toColor

      default Color toColor()
      Returns the Color representation of this RGB pixel.
      Returns:
      The according AWT's Color of this RgbColor.
    • setAlphaPortion

      void setAlphaPortion(int aAlphaPortion)
      Sets the alpha portion.
      Parameters:
      aAlphaPortion - the new alpha portion
    • setRedPortion

      void setRedPortion(int aRedPortion)
      Sets the red portion.
      Parameters:
      aRedPortion - the new red portion
    • setGreenPortion

      void setGreenPortion(int aGreenPortion)
      Sets the green portion.
      Parameters:
      aGreenPortion - the new green portion
    • setBluePortion

      void setBluePortion(int aBluePortion)
      Sets the blue portion.
      Parameters:
      aBluePortion - the new blue portion
    • setRgbValue

      void setRgbValue(int aRgbValue)
      Sets the rgb value.
      Parameters:
      aRgbValue - the new rgb value
    • withAlphaPortion

      default RgbColor withAlphaPortion(int aAlphaPortion)
      With alpha portion.
      Parameters:
      aAlphaPortion - the alpha portion
      Returns:
      the rgb pixel
    • withRedPortion

      default RgbColor withRedPortion(int aRedPortion)
      With red portion.
      Parameters:
      aRedPortion - the red portion
      Returns:
      the rgb pixel
    • withGreenPortion

      default RgbColor withGreenPortion(int aGreenPortion)
      With green portion.
      Parameters:
      aGreenPortion - the green portion
      Returns:
      the rgb pixel
    • withBluePortion

      default RgbColor withBluePortion(int aBluePortion)
      With blue portion.
      Parameters:
      aBluePortion - the blue portion
      Returns:
      the rgb pixel
    • withRgbValue

      default RgbColor withRgbValue(int aRgbValue)
      With rgb value.
      Parameters:
      aRgbValue - the rgb value
      Returns:
      the rgb pixel