Interface IClipboardTextPropertyOwner<T>

Type Parameters:
T - visual set data elements type
All Known Implementing Classes:
AbstractGridLineVisualSet, AbstractPolylineVisualSet, GanttPolylineVisualSet, HorizontalGridLineVisualSet, LineBarVisualSet, LineVisualSet, PointsVisualSet, PolylineVisualSet, RangeRegionVisualSet, RegionVisualSet, VerticalGridLineVisualSet

public interface IClipboardTextPropertyOwner<T>
Interface of 'copy to clipboard' property owner elements. Provides a set of methods corresponding to it.
Author:
Aleksey Kirillov
  • Method Details

    • setClipboardText

      IClipboardTextPropertyOwner<T> setClipboardText(Function<T,String> clipboardTextExtractor)
      Sets the conversion method from values of each plot data element into text that will be copied to clipboard.
      Parameters:
      clipboardTextExtractor - an extractor that converts the value of each plot data element into text that will be copied to the clipboard
      Returns:
      reference to this object
    • getClipboardText

      String getClipboardText(T object)
      Returns the text that will be copied to clipboard for the given object.
      Parameters:
      object - object for which the clipboard text is being checked
      Returns:
      the text that will be copied to clipboard for the given object