Class RectangleSegmentHandlePart

All Implemented Interfaces:
Comparable<AbstractSegmentHandlePart<? extends javafx.scene.Node>>, IActivatable, IAdaptable, IAdaptable.Bound<IViewer>, IDisposable, IHandlePart<javafx.scene.shape.Rectangle>, IVisualPart<javafx.scene.shape.Rectangle>

public class RectangleSegmentHandlePart extends AbstractSegmentHandlePart<javafx.scene.shape.Rectangle>
An AbstractSegmentHandlePart with a rectangular Rectangle visual.
  • Field Details

    • DEFAULT_WIDTH

      protected static final double DEFAULT_WIDTH
      The default width for this part's visualization.
      See Also:
    • DEFAULT_LENGTH

      protected static final double DEFAULT_LENGTH
      The default length for this part's visualization.
      See Also:
  • Constructor Details

    • RectangleSegmentHandlePart

      public RectangleSegmentHandlePart()
  • Method Details

    • doCreateVisual

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

      public void doRefreshVisual(javafx.scene.shape.Rectangle visual)
      Description copied from class: AbstractVisualPart
      Refreshes this part's visualization based on this part's content.
      Overrides:
      doRefreshVisual in class AbstractSegmentHandlePart<javafx.scene.shape.Rectangle>
      Parameters:
      visual - This part's visual.
    • updateColor

      protected void updateColor()
      Updates the color of this part's visualization. If this handle part represents a way or end point of an Connection, it's color will be set to indicate whether the handle is connected to another part or not.
    • updateLocation

      protected void updateLocation(javafx.scene.shape.Rectangle visual)
      Description copied from class: AbstractSegmentHandlePart
      Computes the location for this part and relocates its visual to that location. The visual is made invisible if this part has an invalid index (out of bounds), i.e. when no location can be computed.
      Overrides:
      updateLocation in class AbstractSegmentHandlePart<javafx.scene.shape.Rectangle>
      Parameters:
      visual - This part's visual for convenience.