Class LabelValues.PositionValuePair

java.lang.Object
inra.ijpb.label.LabelValues.PositionValuePair
Enclosing class:
LabelValues

public static class LabelValues.PositionValuePair
extends java.lang.Object
Inner class for storing a value associated to a 2D position.
  • Constructor Summary

    Constructors
    Constructor Description
    PositionValuePair​(java.awt.Point position, double value)
    Creates a new PositionValuePair instance based on a position and a value.
  • Method Summary

    Modifier and Type Method Description
    java.awt.Point getPosition()
    Returns the position of the pixel.
    double getValue()
    Returns the value of the pixel.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PositionValuePair

      public PositionValuePair​(java.awt.Point position, double value)
      Creates a new PositionValuePair instance based on a position and a value.
      Parameters:
      position - the position of the pixel
      value - the value of the pixel
  • Method Details

    • getPosition

      public java.awt.Point getPosition()
      Returns the position of the pixel.
      Returns:
      the position of the pixel.
    • getValue

      public double getValue()
      Returns the value of the pixel.
      Returns:
      the value of the pixel.