---
Product: Aspose.Slides
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/java/connector
---

# Connector

## Overview

`Connector` is a class in Aspose.Slides FOSS for Java.
Inherits from: `GeometryShape`, `IConnector`.

Represents a connector shape.

This class declares 61 methods for Connector objects in Java programs.
Available methods include: `Connector`, `GeometryShape`, `asIPresentationComponent`, `getAdjustments`, `getAlternativeText`, `getAlternativeTextTitle`, `getAsIGeometryShape`, `getAsISlideComponent`, `getCNvPr`, `getConnectionSiteCount`, `getConnectorLock`, `getCustomData`, and 47 additional methods.
Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `adjustments`, `alternativeText`, `alternativeTextTitle`, `asIGeometryShape`, `asISlideComponent`, `cNvPr`, and 31 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `shapeStyle` | `IShapeStyle` | Read | Returns the shape style. |
| `connectorLock` | `IConnectorLock` | Read | Gets the connector lock. |
| `startShapeConnectedTo` | `IShape` | Read/Write | Gets or sets the start shape connected to. |
| `endShapeConnectedTo` | `IShape` | Read/Write | Gets or sets the end shape connected to. |
| `startShapeConnectionSiteIndex` | `int` | Read/Write | Gets or sets the start shape connection site index. |
| `endShapeConnectionSiteIndex` | `int` | Read/Write | Gets or sets the end shape connection site index. |
| `asIGeometryShape` | `IGeometryShape` | Read | Gets the as i geometry shape. |
| `x` | `double` | Read/Write | Gets or sets the x. |
| `y` | `double` | Read/Write | Gets or sets the y. |
| `width` | `double` | Read/Write | Gets or sets the width. |
| `height` | `double` | Read/Write | Gets or sets the height. |
| `rotation` | `double` | Read/Write | Gets or sets the rotation. |
| `shapeType` | `ShapeType` | Read/Write | Gets or sets the shape type. |
| `fillFormat` | `IFillFormat` | Read | Gets the fill format. |
| `adjustments` | `IAdjustValueCollection` | Read | Gets the adjustments. |
| `cNvPr` | `Element` | Read | Gets the c nv pr. |
| `textHolder` | `boolean` | Read | Gets the text holder. |
| `placeholder` | `IPlaceholder` | Read | Gets the placeholder. |
| `customData` | `ICustomData` | Read | Gets the custom data. |
| `rawFrame` | `IShapeFrame` | Read/Write | Gets or sets the raw frame. |
| `frame` | `IShapeFrame` | Read/Write | Gets or sets the frame. |
| `lineFormat` | `ILineFormat` | Read | Gets the line format. |
| `threeDFormat` | `IThreeDFormat` | Read | Gets the three d format. |
| `effectFormat` | `IEffectFormat` | Read | Gets the effect format. |
| `hidden` | `boolean` | Read/Write | Gets or sets the hidden. |
| `zOrderPosition` | `int` | Read | Gets the z order position. |
| `connectionSiteCount` | `int` | Read | Gets the connection site count. |
| `alternativeText` | `String` | Read/Write | Gets or sets the alternative text. |
| `alternativeTextTitle` | `String` | Read/Write | Gets or sets the alternative text title. |
| `name` | `String` | Read/Write | Gets or sets the name. |
| `decorative` | `boolean` | Read/Write | Gets or sets the decorative. |
| `uniqueId` | `int` | Read | Gets the unique id. |
| `officeInteropShapeId` | `int` | Read | Gets the office interop shape id. |
| `grouped` | `boolean` | Read | Gets the grouped. |
| `asISlideComponent` | `ISlideComponent` | Read | Gets the as i slide component. |
| `slide` | `IBaseSlide` | Read | Gets the slide. |
| `presentation` | `IPresentation` | Read | Gets the presentation. |

## Methods

| Signature | Description |
|-----------|-------------|
| `Connector(xmlElement: Element, saveCallback: Runnable)` | Creates a Connector backed by the given XML element. |
| `Connector()` | Creates a Connector with no backing element. |
| `getShapeStyle()` → `IShapeStyle` | Returns the shape style. |
| `getConnectorLock()` → `IConnectorLock` | Returns the connector lock. |
| `getStartShapeConnectedTo()` → `IShape` | Returns the start shape connected to. |
| `setStartShapeConnectedTo(value: IShape)` | Sets the start shape connected to value. |
| `getEndShapeConnectedTo()` → `IShape` | Returns the end shape connected to. |
| `setEndShapeConnectedTo(value: IShape)` | Sets the end shape connected to value. |
| `getStartShapeConnectionSiteIndex()` → `int` | Returns the start shape connection site index. |
| `setStartShapeConnectionSiteIndex(value: int)` | Sets the start shape connection site index value. |
| `getEndShapeConnectionSiteIndex()` → `int` | Returns the end shape connection site index. |
| `setEndShapeConnectionSiteIndex(value: int)` | Sets the end shape connection site index value. |
| `getAsIGeometryShape()` → `IGeometryShape` | Returns the as i geometry shape. |
| `reroute()` | Recomputes the connector's routing path |
| `GeometryShape(xmlElement: Element, saveCallback: Runnable)` | Creates a GeometryShape backed by the given XML element. |
| `GeometryShape()` | Creates a GeometryShape with no backing element. |
| `setParentShapes(shapes: Iterable<IShape>)` | Sets the sibling shapes collection used for connection lookups. |
| `getX()` → `double` | Returns the x. |
| `setX(x: double)` | Sets the x value. |
| `getY()` → `double` | Returns the y. |
| `setY(y: double)` | Sets the y value. |
| `getWidth()` → `double` | Returns the width. |
| `setWidth(width: double)` | Sets the width value. |
| `getHeight()` → `double` | Returns the height. |
| `setHeight(height: double)` | Sets the height value. |
| `getRotation()` → `double` | Returns the rotation. |
| `setRotation(rotation: double)` | Sets the rotation value. |
| `getShapeType()` → `ShapeType` | Returns the shape type. |
| `setShapeType(value: ShapeType)` | Sets the shape type value. |
| `getFillFormat()` → `IFillFormat` | Returns the fill format. |
| `getAdjustments()` → `IAdjustValueCollection` | Returns the adjustments. |
| `getCNvPr()` → `Element` | Returns the c nv pr. |
| `isTextHolder()` → `boolean` | Returns true if text holder is set. |
| `getPlaceholder()` → `IPlaceholder` | Returns the placeholder. |
| `getCustomData()` → `ICustomData` | Returns the custom data. |
| `getRawFrame()` → `IShapeFrame` | Returns the raw frame. |
| `setRawFrame(value: IShapeFrame)` | Sets the raw frame value. |
| `getFrame()` → `IShapeFrame` | Returns the frame. |
| `setFrame(value: IShapeFrame)` | Sets the frame value. |
| `getLineFormat()` → `ILineFormat` | Returns the line format. |
| `getThreeDFormat()` → `IThreeDFormat` | Returns the three d format. |
| `getEffectFormat()` → `IEffectFormat` | Returns the effect format. |
| `isHidden()` → `boolean` | Returns true if hidden is set. |
| `setHidden(value: boolean)` | Sets the hidden value. |
| `getZOrderPosition()` → `int` | Returns the z order position. |
| `getConnectionSiteCount()` → `int` | Returns the connection site count. |
| `getAlternativeText()` → `String` | Returns the alternative text. |
| `setAlternativeText(value: String)` | Sets the alternative text value. |
| `getAlternativeTextTitle()` → `String` | Returns the alternative text title. |
| `setAlternativeTextTitle(value: String)` | Sets the alternative text title value. |
| `getName()` → `String` | Returns the name. |
| `setName(value: String)` | Sets the name value. |
| `isDecorative()` → `boolean` | Returns true if decorative is set. |
| `setDecorative(value: boolean)` | Sets the decorative value. |
| `getUniqueId()` → `int` | Returns the unique id. |
| `getOfficeInteropShapeId()` → `int` | Returns the office interop shape id. |
| `isGrouped()` → `boolean` | Returns true if grouped is set. |
| `getAsISlideComponent()` → `ISlideComponent` | Returns the as i slide component. |
| `getSlide()` → `IBaseSlide` | Returns the slide. |
| `getPresentation()` → `IPresentation` | Returns the presentation. |
| `asIPresentationComponent()` → `IPresentationComponent` | Calls asIPresentationComponent on this Connector instance. |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)