Skip to content

Commit

Permalink
chore(flamegraph): Remove deprecated (for removal)
Browse files Browse the repository at this point in the history
  • Loading branch information
bric3 committed Jul 13, 2022
1 parent 1a53b3a commit cbb161d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 151 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -308,95 +308,6 @@ public void setSelectedFrameConsumer(BiConsumer<FrameBox<T>, MouseEvent> consume
canvas.setSelectedFrameConsumer(Objects.requireNonNull(consumer));
}


/**
* Sets a listener that will be called when the mouse hovers a frame, or when it stops hovering.
*
* @param hoverListener the listener ({@code null} permitted).
*/
public void setHoveringListener(HoveringListener<T> hoverListener) {
listener.setHoveringListener(hoverListener);
}

/**
* Actually set the {@link FlamegraphView} with typed data and configure how to use it.
* <p>
* It takes a list of {@link FrameBox} objects that wraps the actual data,
* which is referred to as <em>node</em>.
* </p>
* <p>
* In particular this function defines the behavior to access the typed data:
* <ul>
* <li>Possible string candidates to display in frames, those are
* selected based on the available space</li>
* <li>The root node text to display, if something specific is relevant,
* like the type of events, their number, etc.</li>
* <li>The frame background color, this function can be replaced by
* {@link #setColorFunction(Function)}, note that the foreground color
* is chosen automatically</li>
* <li>The tooltip text from the current node</li>
* </ul>
*
* @param frames The {@code FrameBox} list to display.
* @param frameTextsProvider function to display label in frames.
* @param frameColorFunction the frame to background color function.
* @param tooltipTextFunction the frame tooltip text function.
*/
@Deprecated(forRemoval = true)
public void setData(
List<FrameBox<T>> frames,
FrameTextsProvider<T> frameTextsProvider,
Function<T, Color> frameColorFunction,
Function<FrameBox<T>, String> tooltipTextFunction
) {
setConfigurationAndData(
frames,
frameTextsProvider,
frame -> frameColorFunction.apply(frame.actualNode),
tooltipTextFunction
);
}

/**
* Actually set the {@link FlamegraphView} with typed data and configure how to use it.
* <p>
* It takes a list of {@link FrameBox} objects that wraps the actual data,
* which is referred to as <em>node</em>.
* </p>
* <p>
* In particular this function defines the behavior to access the typed data:
* <ul>
* <li>Possible string candidates to display in frames, those are
* selected based on the available space</li>
* <li>The root node text to display, if something specific is relevant,
* like the type of events, their number, etc.</li>
* <li>The frame background color, this function can be replaced by
* {@link #setColorFunction(Function)}, note that the foreground color
* is chosen automatically</li>
* <li>The tooltip text from the current node</li>
* </ul>
* @param frames The {@code FrameBox} list to display.
*
* @param frameTextsProvider function to display label in frames.
* @param frameColorFunction the frame to background color function.
* @param tooltipTextFunction the frame tooltip text function.
*/
@Deprecated(forRemoval = true)
public void setConfigurationAndData(
List<FrameBox<T>> frames,
FrameTextsProvider<T> frameTextsProvider,
Function<FrameBox<T>, Color> frameColorFunction,
Function<FrameBox<T>, String> tooltipTextFunction
) {
setConfigurationAndData(
frames,
frameTextsProvider,
FrameColorProvider.defaultColorProvider(frameColorFunction),
FrameFontProvider.defaultFontProvider(),
tooltipTextFunction
);
}

/**
* Actually set the {@link FlamegraphView} with typed data and configure how to use it.
* <p>
Expand Down

This file was deleted.

0 comments on commit cbb161d

Please sign in to comment.