Expander

open class Expander : Manipulator

Implements a class for expanding items. This class inherits Manipulator.

  • Declaration

    Swift

    public override init(item: DiagramItem)
  • Draws the expanded DiagramNode at the specified canvas.

    Declaration

    Swift

    open override func draw(_ canvas: Canvas)

    Parameters

    canvas

    The canvas onto which is drawn.

  • Tests if the specified point is within the bounds of the extender.

    Declaration

    Swift

    open override func hitTest(_ point: Point) -> Bool

    Parameters

    point

    The Point to test.

    Return Value

    true if the point is within the Extender; otherwise false.

  • Specifies if the node is expanded.

    Declaration

    Swift

    open var expanded: Bool { get }
  • Specifies the Brush for the background of the Extender.

    Declaration

    Swift

    open var backgroundBrush: SolidColorBrush
  • Specifies the Brush for the stroke of the Extender.

    Declaration

    Swift

    open var strokeBrush: SolidColorBrush
  • Specifies the Brush for the interior of the Extender.

    Declaration

    Swift

    open var innerBrush: SolidColorBrush
  • Specifies the thickness of the stroke.

    Declaration

    Swift

    open var strokeThickness: Double
  • Specifies the local bounds of the Extender.

    Declaration

    Swift

    open var localBounds: Rect { get }
  • Specifies the global bounds of the Extender.

    Declaration

    Swift

    open var globalBounds: Rect { get }