| Package | Description |
|---|---|
| xyz.cofe.j2d | |
| xyz.cofe.j2d.ui |
| Modifier and Type | Class and Description |
|---|---|
class |
Enums<N extends GNode>
Средства для работы с итераторами
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractNode
Базовый узел
|
class |
ControlPoint
Графический объект для управления положением контрольной точки другого объекта
|
class |
Document2D
Документ
|
class |
GraphicNode |
class |
RulersNode
Линейка
|
class |
ShapeNode |
class |
TextNode |
| Modifier and Type | Method and Description |
|---|---|
static <T extends GNode> |
Enums.nodeExtract.children()
Извелечение дочерних узлов
|
static <N extends GNode> |
Enums.enums(Iterable<N> nodes)
Конструктор
|
static <N extends GNode> |
Enums.enums(N node)
Констркутор
|
static <T extends GNode> |
Enums.convertors.nodeToTree()
Конвертирует узел в итератор по дочерним элементам
|
static <A extends GNode> |
Enums.treeOf(A start,
xyz.cofe.collection.NodesExtracter<A,A> ne,
xyz.cofe.collection.Predicate<xyz.cofe.collection.iterators.TreeWalk<A>> followFilter,
xyz.cofe.collection.iterators.TreeWalkType followType)
Возвращает итератор по дереву
|
| Modifier and Type | Method and Description |
|---|---|
GNode[] |
AbstractNode.getChildren()
Возвращает дочерние объекты
|
| Modifier and Type | Method and Description |
|---|---|
static Iterable<GNode> |
Enums.children(GNode node)
Возвращает дочерние узлы (потомки первого уровня)
|
static Iterable<GNode> |
Enums.empty()
Возвращает пустой набор
|
Iterable<GNode> |
Document2D.getSelectedIterable()
Возвращает выбранныет узлы
|
static List<GNode> |
AbstractNode.getSubpath(GNode parent,
GNode child,
List<GNode> path)
Создает путь от родительского узла до дочернего (включительно)
|
static xyz.cofe.collection.Predicate<GNode> |
Enums.filters.instanceOf(Class cls)
Узел является экземпляром указанного типа
|
static Iterable<GNode> |
Enums.walk(GNode node)
Возвращает итератор по дереву
|
| Modifier and Type | Method and Description |
|---|---|
static Iterable<GNode> |
Enums.children(GNode node)
Возвращает дочерние узлы (потомки первого уровня)
|
static List<GNode> |
AbstractNode.getSubpath(GNode parent,
GNode child,
List<GNode> path)
Создает путь от родительского узла до дочернего (включительно)
|
boolean |
AbstractNode.isChildOf(GNode parent)
Проверяет что данный узел (this) является потомком указаного
|
static boolean |
AbstractNode.isParentChildRelation(GNode parent,
GNode child)
Проверяет что данный узел (child) является потомком указаного
|
boolean |
AbstractNode.isParentOf(GNode child)
Проверяет что указанный узел (child) является потомком данного узла (this)
|
static AffineTransform |
AbstractNode.toLocal(GNode node,
AffineTransform src)
Получает матрицу преобразованя от корня к указанному узлу.
|
static Iterable<GNode> |
Enums.walk(GNode node)
Возвращает итератор по дереву
|
| Modifier and Type | Method and Description |
|---|---|
Enums |
Enums.each(xyz.cofe.common.Reciver<GNode> reciver)
Выполнение кода по элементам
|
static List<GNode> |
AbstractNode.getSubpath(GNode parent,
GNode child,
List<GNode> path)
Создает путь от родительского узла до дочернего (включительно)
|
| Modifier and Type | Field and Description |
|---|---|
protected GNode |
Canvas.root |
| Modifier and Type | Field and Description |
|---|---|
static xyz.cofe.collection.NodesExtracter<GNode,GNode> |
SelectTool.childrenExtracter |
static xyz.cofe.collection.NodesExtracter<GNode,GNode> |
SelectTool.childrenExtracter |
static xyz.cofe.collection.Convertor<xyz.cofe.collection.iterators.TreeWalk<GNode>,GNode> |
SelectTool.currentNode |
static xyz.cofe.collection.Convertor<xyz.cofe.collection.iterators.TreeWalk<GNode>,GNode> |
SelectTool.currentNode |
protected LinkedHashMap<GNode,AffineTransform> |
MoveDragger.dragNodes |
static xyz.cofe.collection.Predicate<GNode> |
SelectTool.selectedFilter |
protected List<GNode> |
SelectionChanged.selection
текущие выбранные элементы
|
protected Iterable<GNode> |
Dragger.selection |
| Modifier and Type | Method and Description |
|---|---|
GNode |
Canvas.getRoot() |
| Modifier and Type | Method and Description |
|---|---|
static Iterable<GNode> |
SelectTool.childrenOf(GNode node,
Integer maxLevel) |
protected xyz.cofe.collection.Func1<Boolean,Stack<GNode>> |
Canvas.createChildRenderVisiter(Graphics2D gs,
Integer minLevel,
Integer maxLevel) |
List<GNode> |
SelectionChanged.getSelection()
Возвращает текущие выбранные элементы
|
protected Set<GNode> |
SelectTool.getSelection() |
Iterable<GNode> |
Dragger.getSelection() |
List<GNode> |
Dragger.getSelectionAsList() |
static xyz.cofe.collection.Predicate<GNode> |
SelectTool.instanceOf(Class cls) |
static Iterable<GNode> |
SelectTool.instanceOf(Iterable<GNode> src,
Class cls) |
protected Set<GNode> |
SelectTool.nodesAtPoint(MouseEvent ev) |
protected Set<GNode> |
SelectTool.nodesAtPoint(Point2D mousePoint) |
protected Set<GNode> |
SelectTool.nodesAtPoint(Point2D mousePoint,
Iterable<GNode> nodes) |
static Iterable<GNode> |
SelectTool.selected(Iterable<GNode> src) |
static Iterable<GNode> |
SelectTool.single(GNode node) |
static Iterable<xyz.cofe.collection.iterators.TreeWalk<GNode>> |
SelectTool.treeOf(GNode node) |
static Iterable<xyz.cofe.collection.iterators.TreeWalk<GNode>> |
SelectTool.treeOf(GNode node,
xyz.cofe.collection.Predicate<xyz.cofe.collection.iterators.TreeWalk<GNode>> followFilter) |
static Iterable<GNode> |
SelectTool.walk(Iterable<xyz.cofe.collection.iterators.TreeWalk<GNode>> src) |
protected Iterable<GNode> |
SelectTool.workingSet() |
| Modifier and Type | Method and Description |
|---|---|
static Iterable<GNode> |
SelectTool.childrenOf(GNode node,
Integer maxLevel) |
static Canvas |
Canvas.findCanvas(GNode node) |
static void |
Canvas.fireRepaint(GNode node) |
protected Rectangle2D |
SelectTool.getBoundsOf(GNode node) |
protected List<Point2D> |
SelectTool.getBoundsPointsOf(GNode node,
double padding) |
void |
Canvas.setRoot(GNode root) |
static Iterable<GNode> |
SelectTool.single(GNode node) |
protected Point2D |
SelectTool.toLocal(GNode node,
Point2D pt) |
protected Point2D |
MoveDragger.toLocal(GNode node,
Point2D pt) |
static Iterable<xyz.cofe.collection.iterators.TreeWalk<GNode>> |
SelectTool.treeOf(GNode node) |
static Iterable<xyz.cofe.collection.iterators.TreeWalk<GNode>> |
SelectTool.treeOf(GNode node,
xyz.cofe.collection.Predicate<xyz.cofe.collection.iterators.TreeWalk<GNode>> followFilter) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Point2D> |
SelectTool.getBoundsPointsOf(Iterable<GNode> nodes) |
static Iterable<GNode> |
SelectTool.instanceOf(Iterable<GNode> src,
Class cls) |
protected Set<GNode> |
SelectTool.nodesAtPoint(Point2D mousePoint,
Iterable<GNode> nodes) |
static Iterable<GNode> |
SelectTool.selected(Iterable<GNode> src) |
void |
Dragger.setSelection(Iterable<GNode> newSelection) |
static Iterable<xyz.cofe.collection.iterators.TreeWalk<GNode>> |
SelectTool.treeOf(GNode node,
xyz.cofe.collection.Predicate<xyz.cofe.collection.iterators.TreeWalk<GNode>> followFilter) |
static Iterable<GNode> |
SelectTool.walk(Iterable<xyz.cofe.collection.iterators.TreeWalk<GNode>> src) |
| Constructor and Description |
|---|
SelectionChanged(Iterable<? extends GNode> nodes)
Конструктор
|
Copyright © 2019. All rights reserved.