Class HoverFeedbackPart

All Implemented Interfaces:
IActivatable, IAdaptable, IAdaptable.Bound<IViewer>, IDisposable, IFeedbackPart<GeometryNode<IGeometry>>, IVisualPart<GeometryNode<IGeometry>>

public class HoverFeedbackPart extends AbstractFeedbackPart<GeometryNode<IGeometry>>
The HoverFeedbackPart is an AbstractFeedbackPart that is parameterized by GeometryNode<IGeometry>.
  • Constructor Details

    • HoverFeedbackPart

      public HoverFeedbackPart()
      Default constructor.
  • Method Details

    • doCreateVisual

      protected GeometryNode<IGeometry> doCreateVisual()
      Description copied from class: AbstractVisualPart
      Creates this part's visual.
      Specified by:
      doCreateVisual in class AbstractVisualPart<GeometryNode<IGeometry>>
      Returns:
      This part's visual.
    • doRefreshVisual

      public void doRefreshVisual(GeometryNode<IGeometry> visual)
      Description copied from class: AbstractVisualPart
      Refreshes this part's visualization based on this part's content.
      Specified by:
      doRefreshVisual in class AbstractVisualPart<GeometryNode<IGeometry>>
      Parameters:
      visual - This part's visual.
    • getFeedbackGeometry

      protected IGeometry getFeedbackGeometry()
      Returns the IGeometry that is provided by this part's geometry provider.
      Returns:
      The IGeometry that is provided by this part's geometry provider.
    • getHoverFeedbackEffect

      public javafx.scene.effect.Effect getHoverFeedbackEffect()
      Returns the Effect that is provided by the Provider<Effect> of this part's first anchorage.
      Returns:
      The Effect that is provided by the Provider<Effect> of this part's first anchorage.
    • getHoverStroke

      protected javafx.scene.paint.Color getHoverStroke()
      Returns the Color that is used to stroke hover feedback.
      Returns:
      The Color that is used to stroke hover feedback.
    • setGeometryProvider

      public void setGeometryProvider(Provider<? extends IGeometry> geometryProvider)
      Sets the Provider<IGeometry> of this part to the given value.
      Parameters:
      geometryProvider - The new Provider<IGeometry> for this part.