Interface IClipboardTextPropertyOwner<T>

Type Parameters:
T - visual set data elements type
All Known Implementing Classes:
AbstractPolylineVisualSet, GanttPiecewisePolylineVisualSet, GanttPolylineVisualSet, LineBarVisualSet, LineVisualSet, PiecewisePolylineVisualSet, 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
    • setIncludeWhenCopyingToClipboard

      IClipboardTextPropertyOwner<T> setIncludeWhenCopyingToClipboard(Supplier<Boolean> includeWhenCopyingToClipboard)
      Sets the supplier of the property includeWhenCopyingToClipboard. If true, this VisualSet is included when chart's data is copying to clipboard.
      Parameters:
      includeWhenCopyingToClipboard - new supplier of property includeWhenCopyingToClipboard
      Returns:
      reference to this object
    • isIncludeWhenCopyingToClipboard

      boolean isIncludeWhenCopyingToClipboard()
      Returns the value of the property includeWhenCopyingToClipboard. this VisualSet is included when chart's data is copying to clipboard.
      Returns:
      the value of the property includeWhenCopyingToClipboard