Class BendpointPart

java.lang.Object
org.eclipse.gef.mvc.fx.parts.AbstractVisualPart<org.eclipse.gef.fx.nodes.GeometryNode<org.eclipse.gef.geometry.planar.Ellipse>>
org.eclipse.gef.mvc.fx.parts.AbstractHandlePart<org.eclipse.gef.fx.nodes.GeometryNode<org.eclipse.gef.geometry.planar.Ellipse>>
org.eclipse.gef.mvc.fx.parts.AbstractSegmentHandlePart<org.eclipse.gef.fx.nodes.GeometryNode<org.eclipse.gef.geometry.planar.Ellipse>>
com.amalgamasimulation.graphicaleditor.parts.BendpointPart
All Implemented Interfaces:
Comparable<org.eclipse.gef.mvc.fx.parts.AbstractSegmentHandlePart<? extends javafx.scene.Node>>, org.eclipse.gef.common.activate.IActivatable, org.eclipse.gef.common.adapt.IAdaptable, org.eclipse.gef.common.adapt.IAdaptable.Bound<org.eclipse.gef.mvc.fx.viewer.IViewer>, org.eclipse.gef.common.dispose.IDisposable, org.eclipse.gef.mvc.fx.parts.IHandlePart<org.eclipse.gef.fx.nodes.GeometryNode<org.eclipse.gef.geometry.planar.Ellipse>>, org.eclipse.gef.mvc.fx.parts.IVisualPart<org.eclipse.gef.fx.nodes.GeometryNode<org.eclipse.gef.geometry.planar.Ellipse>>

public class BendpointPart extends org.eclipse.gef.mvc.fx.parts.AbstractSegmentHandlePart<org.eclipse.gef.fx.nodes.GeometryNode<org.eclipse.gef.geometry.planar.Ellipse>>
  • Property Summary

    Properties inherited from class org.eclipse.gef.mvc.fx.parts.AbstractVisualPart

    active, adaptable, adapters, anchoragesUnmodifiable, anchoredsUnmodifiable, childrenUnmodifiable, parent, refreshVisual

    Properties inherited from interface org.eclipse.gef.common.activate.IActivatable

    active

    Properties inherited from interface org.eclipse.gef.common.adapt.IAdaptable

    adapters

    Properties inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound

    adaptable

    Properties inherited from interface org.eclipse.gef.mvc.fx.parts.IVisualPart

    anchoragesUnmodifiable, anchoredsUnmodifiable, childrenUnmodifiable, parent, refreshVisual
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.gef.common.adapt.IAdaptable

    org.eclipse.gef.common.adapt.IAdaptable.Bound<A extends org.eclipse.gef.common.adapt.IAdaptable>

    Nested classes/interfaces inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound

    org.eclipse.gef.common.adapt.IAdaptable.Bound.Impl<T extends org.eclipse.gef.common.adapt.IAdaptable>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static double
     
    protected static final javafx.scene.paint.Color
     
    protected static final javafx.scene.paint.Color
     
    protected static final javafx.scene.paint.Color
     
    protected static double
     
    protected static double
     

    Fields inherited from interface org.eclipse.gef.common.activate.IActivatable

    ACTIVE_PROPERTY

    Fields inherited from interface org.eclipse.gef.common.adapt.IAdaptable

    ADAPTERS_PROPERTY

    Fields inherited from interface org.eclipse.gef.mvc.fx.parts.IVisualPart

    ANCHORAGES_PROPERTY, ANCHOREDS_PROPERTY, CHILDREN_PROPERTY, PARENT_PROPERTY, REFRESH_VISUAL_PROPERTY
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.eclipse.gef.fx.nodes.GeometryNode<org.eclipse.gef.geometry.planar.Ellipse>
    Creates the visual representation of this selection handle.
    void
    doRefreshVisual(org.eclipse.gef.fx.nodes.GeometryNode<org.eclipse.gef.geometry.planar.Ellipse> visual)
     
    void
    setClickableAreaWidth(double clickableAreaWidth)
    Sets the width of the clickable area.
    void
    Resets the stroke width, radius, and clickable area width to their default values.
    void
    setRadius(double raduis)
    Sets the radius.
    void
    setStrokeWidth(double strokeWidth)
    Sets the stroke width.
    protected void
    Updates the color of this part's visualization.
    protected void
    updateLocation(org.eclipse.gef.fx.nodes.GeometryNode<org.eclipse.gef.geometry.planar.Ellipse> visual)
     

    Methods inherited from class org.eclipse.gef.mvc.fx.parts.AbstractSegmentHandlePart

    compareTo, getBezierSegmentInParent, getConnectedFill, getInsertFill, getMoveFill, getPosition, getSegmentCount, getSegmentIndex, getSegmentParameter, getSegmentsInScene, getStroke, setSegmentIndex, setSegmentParameter, setSegmentsProvider

    Methods inherited from class org.eclipse.gef.mvc.fx.parts.AbstractHandlePart

    doAddChildVisual, doAttachToAnchorageVisual, doDetachFromAnchorageVisual, doRemoveChildVisual

    Methods inherited from class org.eclipse.gef.mvc.fx.parts.AbstractVisualPart

    activate, activateAdapters, activateChildren, activeProperty, adaptableProperty, adaptersProperty, addChild, addChild, addChildren, addChildren, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenUnmodifiableProperty, deactivate, deactivateAdapters, deactivateChildren, detachAnchored, detachFromAnchorage, detachFromAnchorage, determineViewer, dispose, doActivate, doDeactivate, getAdaptable, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getHandlers, getParent, getPolicies, getRoot, getVisual, isActive, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, register, registerAtVisualPartMap, removeChild, removeChildren, reorderChild, setAdaptable, setAdapter, setAdapter, setAdapter, setAdapter, setParent, setRefreshVisual, unregister, unregisterFromVisualPartMap, unsetAdapter

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.gef.common.activate.IActivatable

    activate, activeProperty, deactivate, isActive

    Methods inherited from interface org.eclipse.gef.common.adapt.IAdaptable

    adaptersProperty, getAdapter, getAdapter, getAdapter, getAdapterKey, getAdapters, getAdapters, getAdapters, setAdapter, setAdapter, setAdapter, setAdapter, unsetAdapter

    Methods inherited from interface org.eclipse.gef.common.adapt.IAdaptable.Bound

    adaptableProperty, getAdaptable, setAdaptable

    Methods inherited from interface org.eclipse.gef.common.dispose.IDisposable

    dispose

    Methods inherited from interface org.eclipse.gef.mvc.fx.parts.IVisualPart

    addChild, addChild, addChildren, addChildren, anchoragesUnmodifiableProperty, anchoredsUnmodifiableProperty, attachAnchored, attachToAnchorage, attachToAnchorage, childrenUnmodifiableProperty, detachAnchored, detachFromAnchorage, detachFromAnchorage, getAnchoragesUnmodifiable, getAnchoredsUnmodifiable, getBehaviors, getChildrenUnmodifiable, getHandlers, getParent, getPolicies, getRoot, getViewer, getVisual, isRefreshVisual, parentProperty, refreshVisual, refreshVisualProperty, removeChild, removeChildren, reorderChild, setParent, setRefreshVisual
  • Field Details

    • RADIUS

      protected static double RADIUS
    • STROKE_WIDTH

      protected static double STROKE_WIDTH
    • CLICKABLE_AREA_WIDTH

      protected static double CLICKABLE_AREA_WIDTH
    • defaultStrokeColor

      protected static final javafx.scene.paint.Color defaultStrokeColor
    • defaultWhiteFillColor

      protected static final javafx.scene.paint.Color defaultWhiteFillColor
    • defaultGreyFillColor

      protected static final javafx.scene.paint.Color defaultGreyFillColor
  • Constructor Details

    • BendpointPart

      public BendpointPart()
  • Method Details

    • doCreateVisual

      protected org.eclipse.gef.fx.nodes.GeometryNode<org.eclipse.gef.geometry.planar.Ellipse> doCreateVisual()
      Creates the visual representation of this selection handle.
      Specified by:
      doCreateVisual in class org.eclipse.gef.mvc.fx.parts.AbstractVisualPart<org.eclipse.gef.fx.nodes.GeometryNode<org.eclipse.gef.geometry.planar.Ellipse>>
      Returns:
      Node representing the handle visually
    • doRefreshVisual

      public void doRefreshVisual(org.eclipse.gef.fx.nodes.GeometryNode<org.eclipse.gef.geometry.planar.Ellipse> visual)
      Overrides:
      doRefreshVisual in class org.eclipse.gef.mvc.fx.parts.AbstractSegmentHandlePart<org.eclipse.gef.fx.nodes.GeometryNode<org.eclipse.gef.geometry.planar.Ellipse>>
    • 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.
    • setStrokeWidth

      public void setStrokeWidth(double strokeWidth)
      Sets the stroke width.
      Parameters:
      strokeWidth - the new stroke width value
    • setRadius

      public void setRadius(double raduis)
      Sets the radius.
      Parameters:
      raduis - the new radius value
    • setClickableAreaWidth

      public void setClickableAreaWidth(double clickableAreaWidth)
      Sets the width of the clickable area.
      Parameters:
      clickableAreaWidth - the new clickable area width
    • setDefaultStyle

      public void setDefaultStyle()
      Resets the stroke width, radius, and clickable area width to their default values.
    • updateLocation

      protected void updateLocation(org.eclipse.gef.fx.nodes.GeometryNode<org.eclipse.gef.geometry.planar.Ellipse> visual)
      Overrides:
      updateLocation in class org.eclipse.gef.mvc.fx.parts.AbstractSegmentHandlePart<org.eclipse.gef.fx.nodes.GeometryNode<org.eclipse.gef.geometry.planar.Ellipse>>