Class RectangleSegmentHandlePart

    • Field Detail

      • DEFAULT_WIDTH

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

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

      • RectangleSegmentHandlePart

        public RectangleSegmentHandlePart()
    • Method Detail

      • 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.