public class Factory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
ContainerNode |
createContainerNode(float x,
float y,
float width,
float height)
Creates a new
ContainerNode instance at the specified location
with the specified size and adds it to the Nodes collection of
the underlying diagram. |
ContainerNode |
createContainerNode(float x,
float y,
float width,
float height,
boolean foldable)
Creates a new
ContainerNode instance at the specified location with
the specified size, optionally foldable, and adds it to the Nodes
collection of the underlying diagram. |
ContainerNode |
createContainerNode(android.graphics.PointF location,
Dimension size)
Creates a new
ContainerNode instance at the specified location with
the specified size and adds it to the Nodes collection of the
underlying diagram. |
ContainerNode |
createContainerNode(android.graphics.PointF location,
Dimension size,
boolean foldable)
Creates a new
ContainerNode instance at the specified location with
the specified size, optionally foldable, and adds it to the Nodes
collection of the underlying diagram. |
ContainerNode |
createContainerNode(android.graphics.RectF bounds)
Creates a new
ContainerNode instance with the specified dimensions
and adds it to the Nodes collection of the underlying diagram. |
ContainerNode |
createContainerNode(android.graphics.RectF bounds,
boolean foldable)
Creates a new
ContainerNode instance with the specified dimensions,
optionally foldable, and adds it to the Nodes collection of the
underlying diagram. |
DiagramLink |
createDiagramLink(DiagramNode origin,
DiagramNode destination)
Creates a new
DiagramLink instance between the specified nodes
and adds it to the Links collection of the underlying diagram. |
DiagramLink |
createDiagramLink(DiagramNode origin,
android.graphics.PointF destination)
Creates a new
DiagramLink instance between the specified node and
the specified point, and adds it to the Links collection
of the underlying diagram. |
DiagramLink |
createDiagramLink(DiagramNode origin,
TableNode destination,
int destRow)
Creates a new
DiagramLink instance between the specified nodes and
the specified table, and adds it to the Links collection
of the underlying diagram. |
DiagramLink |
createDiagramLink(android.graphics.PointF origin,
DiagramNode destination)
Creates a new
DiagramLink instance between the specified point and
the specified node, and adds it to the Links collection of
the underlying diagram. |
DiagramLink |
createDiagramLink(android.graphics.PointF origin,
android.graphics.PointF destination)
Creates a new
DiagramLink instance between the specified points and
adds it to the Links collection of the underlying diagram. |
DiagramLink |
createDiagramLink(ShapeNode origin,
int originAnchor,
ShapeNode destination,
int destAnchor)
Creates a new DiagramLink instance between the specified nodes
and adds it to the Links collection of the underlying diagram.
|
DiagramLink |
createDiagramLink(TableNode origin,
int originRow,
DiagramNode destination)
Creates a new
DiagramLink instance between the specified table and
the specified node, and adds it to the Links collection of
the underlying diagram. |
DiagramLink |
createDiagramLink(TableNode origin,
int originRow,
TableNode destination,
int destRow)
Creates a new
DiagramLink instance between the specified tables and
adds it to the Links collection of the underlying diagram. |
DiagramLink |
createDiagramLink(TableNode origin,
TableNode destination)
Creates a new
DiagramLink instance between the specified tables and
adds it to the Links collection of the underlying diagram. |
DiagramLink |
createDiagramLink(TreeViewNode origin,
TreeViewItem originItem,
TreeViewNode destination,
TreeViewItem destinationItem)
Creates a new
DiagramLink instance between the specified tree items
and adds it to the Links collection of the underlying diagram. |
Group |
createGroup(DiagramItem mainItem)
Creates a new hierarchical
Group with the specified main item. |
ShapeNode |
createShapeNode(float x,
float y,
float width,
float height)
Creates a new
ShapeNode instance at the specified position with
the specified size and adds it to the Nodes collection of the
underlying diagram. |
ShapeNode |
createShapeNode(float x,
float y,
float width,
float height,
Shape shape)
Creates a new
ShapeNode instance at the specified position with
the specified size and shape, and adds it to the Nodes collection
of the underlying diagram. |
ShapeNode |
createShapeNode(android.graphics.PointF location,
Dimension size)
Creates a new
ShapeNode instance at the specified position with
the specified size and adds it to the Nodes collection of the
underlying diagram. |
ShapeNode |
createShapeNode(android.graphics.PointF location,
Dimension size,
Shape shape)
Creates a new
ShapeNode instance at the specified position with
the specified size and shape, and adds it to the Nodes collection
of the underlying diagram. |
ShapeNode |
createShapeNode(android.graphics.RectF bounds)
Creates a new
ShapeNode instance with the specified dimensions
and adds it to the Nodes collection of the underlying diagram. |
ShapeNode |
createShapeNode(android.graphics.RectF bounds,
Shape shape)
Creates a new
ShapeNode instance with the specified dimensions and
shape, and adds it to the Nodes collection of the underlying diagram. |
TableNode |
createTableNode(float x,
float y,
float width,
float height)
Creates a new
TableNode instance at the specified position
with the specified size and adds it to the Nodes collection
of the underlying diagram. |
TableNode |
createTableNode(float x,
float y,
float width,
float height,
int columns,
int rows)
Creates a new
TableNode instance at the specified position with
the specified size and the specified number of columns and rows,
and adds it to the Nodes collection of the underlying diagram. |
TableNode |
createTableNode(android.graphics.PointF location,
Dimension size)
Creates a new
TableNode instance at the specified position with
the specified size and adds it to the Nodes collection of the
underlying diagram. |
TableNode |
createTableNode(android.graphics.PointF location,
Dimension size,
int columns,
int rows)
Creates a new TableNode instance at the specified position with
the specified size and with the specified number of columns and
rows, and adds it to the Nodes collection of the underlying diagram.
|
TableNode |
createTableNode(android.graphics.RectF bounds)
Creates a new
TableNode instance with the specified dimensions
and adds it to the Nodes collection of the underlying diagram. |
TableNode |
createTableNode(android.graphics.RectF bounds,
int columns,
int rows)
Creates a new
TableNode instance with the specified dimensions
and with the specified number of columns and rows, and adds it
to the Nodes collection of the underlying diagram. |
TreeViewNode |
createTreeViewNode(float x,
float y,
float width,
float height)
Creates a new
TreeViewNode instance at the specified position with
the specified size and adds it to the Nodes collection of the
underlying diagram. |
TreeViewNode |
createTreeViewNode(android.graphics.PointF location,
Dimension size)
Creates a new
TreeViewNode instance at the specified position with
the specified size and adds it to the Nodes collection of the
underlying diagram. |
TreeViewNode |
createTreeViewNode(android.graphics.RectF bounds)
Creates a new
TreeViewNode instance with the specified dimensions
and adds it to the Nodes collection of the underlying diagram. |
public ShapeNode createShapeNode(float x, float y, float width, float height)
ShapeNode
instance at the specified position with
the specified size and adds it to the Nodes collection of the
underlying diagram.
The method creates a shape node at the position specified by x and y.
The size of the node is set by width and height.x
- The x-coordinate of the upper-left corner of the new node.y
- The y-coordinate of the upper-left corner of the new node.width
- The width of the new node.height
- The height of the new node.ShapeNode
instance.public ShapeNode createShapeNode(android.graphics.PointF location, Dimension size)
ShapeNode
instance at the specified position with
the specified size and adds it to the Nodes collection of the
underlying diagram.
The method creates a shape node at the position specified by location.
The size of the node is set by size.location
- The position of the new node.size
- The size of the new node.ShapeNode
instance.public ShapeNode createShapeNode(android.graphics.RectF bounds)
ShapeNode
instance with the specified dimensions
and adds it to the Nodes collection of the underlying diagram.
The method creates a shape node with dimensions specified by bounds.bounds
- The bounding rectangle of the new node.public ShapeNode createShapeNode(float x, float y, float width, float height, Shape shape)
ShapeNode
instance at the specified position with
the specified size and shape, and adds it to the Nodes collection
of the underlying diagram.
The method creates a shape node at the position specified by x and y.
The size of the node is set by width and height. The shape of the
new node is specified by shape.x
- The x-coordinate of the upper-left corner of the new node.y
- The y-coordinate of the upper-left corner of the new node.width
- The width of the new node.height
- The height of the new node.shape
- The shape of the new node.ShapeNode
instance.public ShapeNode createShapeNode(android.graphics.PointF location, Dimension size, Shape shape)
ShapeNode
instance at the specified position with
the specified size and shape, and adds it to the Nodes collection
of the underlying diagram.
The method creates a shape node at the position specified by location.
The size of the node is set by size. The shape of the new node is
specified by shape.location
- The position of the new node.size
- The size of the new node.shape
- The shape of the new node.ShapeNode
instance.public ShapeNode createShapeNode(android.graphics.RectF bounds, Shape shape)
ShapeNode
instance with the specified dimensions and
shape, and adds it to the Nodes collection of the underlying diagram.bounds
- The bounding rectangle of the new node.shape
- The shape of the new node.ShapeNode
instance.public TableNode createTableNode(float x, float y, float width, float height)
TableNode
instance at the specified position
with the specified size and adds it to the Nodes collection
of the underlying diagram.
The method creates a table node at the position specified by x and y.
The size of the node is set by width and height.x
- The x-coordinate of the upper-left corner of the new table.y
- The y-coordinate of the upper-left corner of the new table.width
- The width of the new table.height
- The height of the new table.TableNode
instance.public TableNode createTableNode(android.graphics.PointF location, Dimension size)
TableNode
instance at the specified position with
the specified size and adds it to the Nodes collection of the
underlying diagram.
The method creates a table node at the position specified by location.
The size of the node is set by size.location
- The position of the new table.size
- The size of the new table.TableNode
instance.public TableNode createTableNode(android.graphics.RectF bounds)
TableNode
instance with the specified dimensions
and adds it to the Nodes collection of the underlying diagram.
The method creates a table node with dimensions specified by bounds.bounds
- The bounding rectangle of the new table.TableNode
instance.public TableNode createTableNode(float x, float y, float width, float height, int columns, int rows)
TableNode
instance at the specified position with
the specified size and the specified number of columns and rows,
and adds it to the Nodes collection of the underlying diagram.
The method creates a table node at the position specified by x and y.
The size of the node is set by width and height. The initial number
of columns and rows in the table is specified by columns and rows
respectively.x
- The x-coordinate of the upper-left corner of the new table.y
- The y-coordinate of the upper-left corner of the new table.width
- The width of the new table.height
- The height of the new table.columns
- The initial number of columns in the table.rows
- The initial number of rows in the table.TableNode
instance.public TableNode createTableNode(android.graphics.PointF location, Dimension size, int columns, int rows)
location
- The position of the new table.size
- The size of the new table.columns
- The initial number of columns in the table.rows
- The initial number of rows in the table.public TableNode createTableNode(android.graphics.RectF bounds, int columns, int rows)
TableNode
instance with the specified dimensions
and with the specified number of columns and rows, and adds it
to the Nodes collection of the underlying diagram.
The method creates a table node with dimensions specified by
bounds. The initial number of columns and rows in the table is
specified by columns and rows respectively.bounds
- The bounding rectangle of the new table.columns
- The initial number of columns in the table.rows
- The initial number of rows in the table.TableNode
instance.public ContainerNode createContainerNode(float x, float y, float width, float height)
ContainerNode
instance at the specified location
with the specified size and adds it to the Nodes collection of
the underlying diagram.
The method creates a container node at the position specified
by x and y. The size of the container is set by width and height.x
- The x-coordinate of the upper-left corner of the new node.y
- The y-coordinate of the upper-left corner of the new node.width
- The width of the new node.height
- The height of the new node.ContainerNode
instance.public ContainerNode createContainerNode(android.graphics.PointF location, Dimension size)
ContainerNode
instance at the specified location with
the specified size and adds it to the Nodes collection of the
underlying diagram.
The method creates a container node at the position specified
by location. The size of the container is set by size.location
- The location of the ContainerNode
object.size
- The size of the ContainerNode
object.ContainerNode
instance.public ContainerNode createContainerNode(android.graphics.RectF bounds)
ContainerNode
instance with the specified dimensions
and adds it to the Nodes collection of the underlying diagram.
The method creates a container node with the position and size
specified by bounds.bounds
- The initial bounding rectangle of the new node.ContainerNode
instance.public ContainerNode createContainerNode(float x, float y, float width, float height, boolean foldable)
ContainerNode
instance at the specified location with
the specified size, optionally foldable, and adds it to the Nodes
collection of the underlying diagram.
The method creates a container node at the position specified by
x and y. The size of the container is set by width and height.
The parameter foldable specifies whether the container node is
initially foldable.x
- The x-coordinate of the upper-left corner of the new node.y
- The y-coordinate of the upper-left corner of the new node.width
- The width of the new node.height
- The height of the new node.foldable
- true if the container can be folded; otherwise, false.ContainerNode
instance.public ContainerNode createContainerNode(android.graphics.PointF location, Dimension size, boolean foldable)
ContainerNode
instance at the specified location with
the specified size, optionally foldable, and adds it to the Nodes
collection of the underlying diagram.location
- The location of the ContainerNode
object.size
- The newly created ContainerNode
instance.foldable
- true if the container can be folded; otherwise, false.ContainerNode
instance.public ContainerNode createContainerNode(android.graphics.RectF bounds, boolean foldable)
ContainerNode
instance with the specified dimensions,
optionally foldable, and adds it to the Nodes collection of the
underlying diagram.
The method creates a container node with the position and size
specified by bounds. The parameter foldable specifies whether
the container node is initially foldable.bounds
- The initial bounding rectangle of the new node.foldable
- true if the container can be folded; otherwise, false.ContainerNode
instance.public DiagramLink createDiagramLink(DiagramNode origin, DiagramNode destination)
DiagramLink
instance between the specified nodes
and adds it to the Links collection of the underlying diagram.
The method creates a link connecting the nodes specified by
origin and destination.origin
- The origin node.destination
- The destination node.DiagramLink
instance.public DiagramLink createDiagramLink(ShapeNode origin, int originAnchor, ShapeNode destination, int destAnchor)
origin
- The origin node.originAnchor
- The index of an anchor point within the origin node's AnchorPattern.destination
- The destination node.destAnchor
- The index of an anchor point within the destination node's AnchorPattern.DiagramLink
instance.public DiagramLink createDiagramLink(TableNode origin, TableNode destination)
DiagramLink
instance between the specified tables and
adds it to the Links
collection of the underlying diagram.
The method creates a link connecting the tables specified by
origin and destination.origin
- The origin node.destination
- The destination node.DiagramLink
instance.public DiagramLink createDiagramLink(TableNode origin, int originRow, TableNode destination, int destRow)
DiagramLink
instance between the specified tables and
adds it to the Links
collection of the underlying diagram.
The method creates a link connecting the tables specified by
origin and destination.origin
- The origin node.originRow
- The zero-based index of the origin table row of the new link.destination
- The destination node.destRow
- The zero-based index of the destination table row of the new link.DiagramLink
instance.public DiagramLink createDiagramLink(DiagramNode origin, TableNode destination, int destRow)
DiagramLink
instance between the specified nodes and
the specified table, and adds it to the Links
collection
of the underlying diagram.
The method creates a link connecting the node specified by origin
and the table specified by destination.origin
- The origin node.destination
- The destination node.destRow
- The zero-based index of the destination table row of the new link.DiagramLink
instance.public DiagramLink createDiagramLink(TableNode origin, int originRow, DiagramNode destination)
DiagramLink
instance between the specified table and
the specified node, and adds it to the Links
collection of
the underlying diagram.
The method creates a link connecting the table specified by origin
and the node specified by destination.origin
- The origin node.originRow
- The zero-based index of the destination table row of the new link.destination
- The destination node.DiagramLink
instance.public DiagramLink createDiagramLink(DiagramNode origin, android.graphics.PointF destination)
DiagramLink
instance between the specified node and
the specified point, and adds it to the Links
collection
of the underlying diagram.
The method creates a link connecting the node specified by origin
and the point specified by destination.origin
- The origin node.destination
- The destination point.DiagramLink
instance.public DiagramLink createDiagramLink(android.graphics.PointF origin, DiagramNode destination)
DiagramLink
instance between the specified point and
the specified node, and adds it to the Links
collection of
the underlying diagram.
The method creates a link connecting the point specified by origin
and the node specified by destination.origin
- The origin point.destination
- The destination node.DiagramLink
instance.public DiagramLink createDiagramLink(android.graphics.PointF origin, android.graphics.PointF destination)
DiagramLink
instance between the specified points and
adds it to the Links
collection of the underlying diagram.
The method creates a link connecting the points specified by
origin and destination.origin
- The origin point.destination
- The destination point.public DiagramLink createDiagramLink(TreeViewNode origin, TreeViewItem originItem, TreeViewNode destination, TreeViewItem destinationItem)
DiagramLink
instance between the specified tree items
and adds it to the Links
collection of the underlying diagram.origin
- The origin node.originItem
- The origin item.destination
- The destination node.destinationItem
- The destination item.public Group createGroup(DiagramItem mainItem)
Group
with the specified main item.
Use this method to create an hierarchical group of items. Attach
subordinated items via the various Group
members.mainItem
- The DiagramItem
around which the group would be built.Group
instance if successfully created;
otherwise null.public TreeViewNode createTreeViewNode(float x, float y, float width, float height)
TreeViewNode
instance at the specified position with
the specified size and adds it to the Nodes collection of the
underlying diagram.
The method creates a treeview node at the position specified by x and y.
The size of the node is set by width and height.x
- The x-coordinate of the upper-left corner of the new node.y
- The y-coordinate of the upper-left corner of the new node.width
- The width of the new node.height
- The height of the new node.public TreeViewNode createTreeViewNode(android.graphics.PointF location, Dimension size)
TreeViewNode
instance at the specified position with
the specified size and adds it to the Nodes collection of the
underlying diagram.
The method creates a treeview node at the position specified by location.
The size of the node is set by size.location
- The position of the new node.size
- The size of the new node.TreeViewNode
instance.public TreeViewNode createTreeViewNode(android.graphics.RectF bounds)
TreeViewNode
instance with the specified dimensions
and adds it to the Nodes collection of the underlying diagram.
The method creates a treeview node with dimensions specified by bounds.bounds
- The bounding rectangle of the new node.TreeViewNode
instance.