Interface IResizableContentPart<V extends javafx.scene.Node>

Type Parameters:
V - The visual node used by this IResizableContentPart.
All Superinterfaces:
IActivatable, IAdaptable, IAdaptable.Bound<IViewer>, IContentPart<V>, IDisposable, IVisualPart<V>
All Known Subinterfaces:
IBendableContentPart<V>

public interface IResizableContentPart<V extends javafx.scene.Node> extends IContentPart<V>
An IContentPart that supports content related resize.
  • Method Details

    • getContentSize

      Dimension getContentSize()
      Returns the current size according to this part's content.
      Returns:
      The current size according to this part's content.
    • getVisualSize

      default Dimension getVisualSize()
      Returns the current size according to this IResizableContentPart 's visual.
      Returns:
      The current size according to this IResizableContentPart 's visual.
    • setContentSize

      void setContentSize(Dimension totalSize)
      Resizes the content element as specified by the given Dimension.
      Parameters:
      totalSize - The new size.
    • setVisualSize

      default void setVisualSize(Dimension totalSize)
      Resizes the visual of this IResizableContentPart to the given size.
      Parameters:
      totalSize - The new size for this IResizableContentPart's visual.