Package | Description |
---|---|
com.yworks.yfiles.geometry |
Contains definitions, default implementations, structs and support classes that deal with the representation of geometric data.
|
com.yworks.yfiles.graph |
Definitions, default implementations, and support classes that represent graph structures and provide facilities for their programmatic modification.
|
com.yworks.yfiles.graph.labelmodels |
Contains interfaces and default implementations for label layout models.
|
com.yworks.yfiles.graph.styles |
Contains interfaces and default implementations for graph element styles.
|
com.yworks.yfiles.layout |
Provides essential classes and interfaces that constitute the infrastructure for automatic graph layout generation.
|
com.yworks.yfiles.view |
Contains the main UI classes, interfaces, default implementations and support classes that can be used to display
IGraph instances. |
com.yworks.yfiles.view.input |
Contains definitions, default implementations, and support classes that deal with the user interaction in a
CanvasControl in general, as well as specialized utility classes and IInputMode implementations that can be used to work with and edit IGraph instances in a GraphControl . |
Modifier and Type | Field and Description |
---|---|
static SizeD |
SizeD.EMPTY
|
static SizeD |
SizeD.INFINITE
|
static SizeD |
SizeD.ZERO
|
Modifier and Type | Method and Description |
---|---|
static SizeD |
SizeD.convertFrom(MutableSize size)
Performs an implicit conversion from
MutableSize to SizeD . |
SizeD |
RectD.getSize()
Gets the size of this instance.
|
SizeD |
SizeD.toSizeD() |
SizeD |
RectD.toSizeD() |
SizeD |
MutableRectangle.toSizeD()
Gets the current size of the rectangle as a
SizeD struct. |
default SizeD |
ISize.toSizeD()
|
default SizeD |
IRectangle.toSizeD()
Gets the current size of the rectangle as a
SizeD struct. |
default SizeD |
IOrientedRectangle.toSizeD()
Gets the size of the oriented rectangle.
|
Modifier and Type | Method and Description |
---|---|
static MutableSize |
SizeD.convertToMutableSize(SizeD size)
Performs an explicit conversion from
SizeD to MutableSize . |
static boolean |
SizeD.equals(SizeD size1,
SizeD size2)
Implements the operator ==.
|
static RectD |
RectD.fromCenter(PointD center,
SizeD size)
Creates a new instance given the center of the rectangle and its size.
|
default void |
IMutableSize.resize(SizeD newSize)
Sets the values of the size to the given values.
|
default void |
IMutableRectangle.resize(SizeD size)
Sets the size of the rectangle to the values of a
SizeD struct. |
default void |
IMutableOrientedRectangle.resize(SizeD size)
Sets the size of the rectangle to the provided value.
|
Constructor and Description |
---|
MutableRectangle(PointD location,
SizeD size)
Creates a new instance using the provided values to initialize the position and size.
|
RectD(PointD location,
SizeD size)
|
Modifier and Type | Method and Description |
---|---|
default SizeD |
IGraph.calculateLabelPreferredSize(ILabelOwner owner,
String text)
Calculates the preferred size of a label with the given properties.
|
default SizeD |
IGraph.calculateLabelPreferredSize(ILabelOwner owner,
String text,
ILabelModelParameter layoutParameter)
Calculates the preferred size of a label with the given properties.
|
default SizeD |
IGraph.calculateLabelPreferredSize(ILabelOwner owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style)
Calculates the preferred size of a label with the given properties.
|
default SizeD |
IGraph.calculateLabelPreferredSize(ILabelOwner owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
Object tag)
Calculates the preferred size of a label with the given properties.
|
default SizeD |
ITable.calculateLabelPreferredSize(IStripe stripe,
ILabelStyle style,
ILabelModelParameter layoutParameter,
String text,
Object tag)
Calculates the preferred size of a label with the given properties.
|
SizeD |
DefaultFolderNodeConverter.getFolderNodeSize()
|
SizeD |
SimpleLabel.getPreferredSize() |
SizeD |
ILabel.getPreferredSize()
Gets the preferred size of the label with respect to its current contents and the implementation of the visualization.
|
SizeD |
FoldingLabelState.getPreferredSize()
The preferred size of the label.
|
SizeD |
NodeDefaults.getSize() |
SizeD |
INodeDefaults.getSize()
Gets the default node size.
|
Modifier and Type | Method and Description |
---|---|
default ILabel |
IGraph.addLabel(ILabelOwner owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize)
Add a label to the given item using the text as the initial label text and label model parameter, style and tag.
|
ILabel |
IGraph.addLabel(ILabelOwner owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize,
Object tag)
Add a label to the given item using the text as the initial label text and label model parameter, style and tag.
|
ILabel |
DefaultGraph.addLabel(ILabelOwner owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize,
Object tag) |
ILabel |
AbstractGraphWrapper.addLabel(ILabelOwner owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize,
Object tag) |
default ILabel |
ITable.addLabel(IStripe owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize)
Add a label to the given owner using the text as the initial label text and label model parameter and style.
|
ILabel |
Table.addLabel(IStripe owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize,
Object tag) |
ILabel |
ITable.addLabel(IStripe owner,
String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize,
Object tag)
Add a label to the given owner using the text as the initial label text and label model parameter and style.
|
abstract FoldingLabelState |
FoldingLabelOwnerState.addLabel(String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize,
Object tag)
Adds a
FoldingLabelState to this state. |
FoldingLabelState |
FoldingEdgeState.addLabel(String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize,
Object tag) |
FoldingLabelState |
FolderNodeState.addLabel(String text,
ILabelModelParameter layoutParameter,
ILabelStyle style,
SizeD preferredSize,
Object tag) |
protected void |
DefaultGraph.onChangingLabelPreferredSize(ILabel label,
SizeD newSize)
Callback that is invoked before the preferred size of a label is being changed.
|
protected void |
DefaultGraph.onLabelPreferredSizeChanged(ILabel label,
SizeD oldSize)
Callback that is invoked after the preferred size of a label has changed.
|
void |
DefaultFolderNodeConverter.setFolderNodeSize(SizeD value)
|
void |
Table.setLabelPreferredSize(ILabel label,
SizeD preferredSize)
Sets the preferred size of the label.
|
void |
ITable.setLabelPreferredSize(ILabel label,
SizeD preferredSize)
Sets the preferred size of the label.
|
void |
IGraph.setLabelPreferredSize(ILabel label,
SizeD preferredSize)
Sets the preferred size of the label.
|
void |
DefaultGraph.setLabelPreferredSize(ILabel label,
SizeD size) |
void |
AbstractGraphWrapper.setLabelPreferredSize(ILabel label,
SizeD preferredSize) |
void |
SimpleLabel.setPreferredSize(SizeD value)
Sets the preferred size of the label with respect to its current contents and the implementation of the visualization.
|
void |
FoldingLabelState.setPreferredSize(SizeD value)
The preferred size of the label.
|
void |
NodeDefaults.setSize(SizeD value) |
void |
INodeDefaults.setSize(SizeD value)
Sets the default node size.
|
Modifier and Type | Method and Description |
---|---|
void |
IGraph.addLabelPreferredSizeChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,SizeD>> labelPreferredSizeChangedEvent)
Adds the given listener for the
LabelPreferredSizeChanged event that occurs when the preferred size of a label
has been changed. |
void |
DefaultGraph.addLabelPreferredSizeChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,SizeD>> labelPreferredSizeChangedEvent) |
void |
AbstractGraphWrapper.addLabelPreferredSizeChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,SizeD>> labelPreferredSizeChangedEvent) |
protected void |
AbstractGraphWrapper.onLabelPreferredSizeChanged(ItemChangedEventArgs<ILabel,SizeD> args)
Raises the
LabelPreferredSizeChanged event. |
void |
IGraph.removeLabelPreferredSizeChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,SizeD>> labelPreferredSizeChangedEvent)
Removes the given listener for the
LabelPreferredSizeChanged event that occurs when the preferred size of a
label has been changed. |
void |
DefaultGraph.removeLabelPreferredSizeChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,SizeD>> labelPreferredSizeChangedEvent) |
void |
AbstractGraphWrapper.removeLabelPreferredSizeChangedListener(IEventHandler<ItemChangedEventArgs<ILabel,SizeD>> labelPreferredSizeChangedEvent) |
Modifier and Type | Method and Description |
---|---|
SizeD |
InteriorStretchLabelModel.getMinimumNodeSize(ILabel label,
ILabelModelParameter layoutParameter)
Returns the minimum size this model would require for the node owner of the label if the the given label was used with
the provided parameter.
|
SizeD |
InteriorLabelModel.getMinimumNodeSize(ILabel label,
ILabelModelParameter layoutParameter)
Returns the minimum size this model would require for the node owner of the label if the the given label was used with
the provided parameter.
|
Modifier and Type | Method and Description |
---|---|
protected SizeD |
CollapsibleNodeStyleDecoratorRenderer.getButtonSize()
Returns the size of the collapse button.
|
SizeD |
CollapsibleNodeStyleDecorator.getButtonSize()
Returns the size of the collapse button.
|
SizeD |
MemoryIconLabelStyle.getIconSize()
Gets the size of the icon to paint for the label.
|
protected SizeD |
IconLabelStyleRenderer.getIconSize()
Gets the size of the icon from the
IconSize property. |
SizeD |
IconLabelStyle.getIconSize()
Gets the size of the icon to paint for the label.
|
SizeD |
TemplateNodeStyle.getMinimumSize()
Gets the minimum size an
INodeSizeConstraintProvider implementation for INode
should yield. |
protected SizeD |
TemplateNodeStyleRenderer.getMinimumSize(TemplateNodeStyle style)
Gets the minimum size by delegating to
MinimumSize . |
protected SizeD |
IconLabelStyleRenderer.getPreferredSize()
Calculates the preferred size given the current state of the renderer.
|
protected SizeD |
DefaultLabelStyleRenderer.getPreferredSize()
Calculates the preferred size given the current state of the renderer.
|
protected abstract SizeD |
AbstractLabelStyle.getPreferredSize(ILabel label)
Callback that returns the preferred
size of the label. |
SizeD |
VoidLabelStyleRenderer.getPreferredSize(ILabel label,
ILabelStyle style)
Yields
EMPTY . |
SizeD |
TemplateLabelStyleRenderer.getPreferredSize(ILabel label,
ILabelStyle style)
Calculates the preferred size for the given label and style.
|
SizeD |
IconLabelStyleRenderer.getPreferredSize(ILabel label,
ILabelStyle style) |
SizeD |
ILabelStyleRenderer.getPreferredSize(ILabel label,
ILabelStyle style)
Calculates the
preferred size of a given label using the associated style. |
SizeD |
DefaultLabelStyleRenderer.getPreferredSize(ILabel label,
ILabelStyle style) |
SizeD |
TemplateNodeStyleRenderer.getPreferredSize(INode node,
INodeStyle style)
Calculates the preferred size for the given node and style.
|
protected SizeD |
TemplatePortStyleRenderer.getPreferredSize(IRenderContext context)
Gets the preferred size for the current configuration.
|
protected SizeD |
TemplateNodeStyleRenderer.getPreferredSize(IRenderContext context)
Calculates the preferred size given the current state of the renderer for the given context.
|
protected SizeD |
TemplateLabelStyleRenderer.getPreferredSize(IRenderContext context)
Gets the size of the preferred for the current configuration using the provided context.
|
SizeD |
TemplateLabelStyle.getPreferredSize(IRenderContext context,
ILabel label)
Convenience method that determines the preferred size of the label if this style was applied.
|
SizeD |
TemplateLabelStyleRenderer.getPreferredSize(IRenderContext context,
ILabel label,
ILabelStyle style)
Calculates the preferred size for the given label and style.
|
SizeD |
TemplateNodeStyle.getPreferredSize(IRenderContext context,
INode node)
Convenience method that determines the preferred size of the node if this style was applied.
|
SizeD |
TemplateNodeStyleRenderer.getPreferredSize(IRenderContext context,
INode node,
INodeStyle style)
Calculates the preferred size for the given node and style in the provided context.
|
SizeD |
TemplatePortStyle.getPreferredSize(IRenderContext context,
IPort port)
Convenience method that determines the preferred
RenderSize of the port if this style was
applied. |
SizeD |
TemplatePortStyleRenderer.getPreferredSize(IRenderContext context,
IPort port,
TemplatePortStyle style)
Calculates the preferred size for the given port and style.
|
protected SizeD |
TemplatePortStyleRenderer.getRenderSize()
Gets the size of the rendering from the style.
|
SizeD |
TemplatePortStyle.getRenderSize()
Gets the
SizeD of a port that will be displayed using the
created control . |
SizeD |
NodeStylePortStyleAdapter.getRenderSize()
Gets the
MutableSize of the port that will be displayed using
NodeStyle . |
Modifier and Type | Method and Description |
---|---|
void |
MemoryIconLabelStyle.setIconSize(SizeD value)
Sets the size of the icon to paint for the label.
|
void |
IconLabelStyle.setIconSize(SizeD value)
Sets the size of the icon to paint for the label.
|
void |
TemplateNodeStyle.setMinimumSize(SizeD value)
Sets the minimum size an
INodeSizeConstraintProvider implementation for INode
should yield. |
void |
TemplatePortStyle.setRenderSize(SizeD value)
Sets the
SizeD of a port that will be displayed using the
created control . |
void |
NodeStylePortStyleAdapter.setRenderSize(SizeD value)
Sets the
MutableSize of the port that will be displayed using
NodeStyle . |
Modifier and Type | Method and Description |
---|---|
SizeD |
LayoutGraphAdapter.getEdgePortNodeSize()
|
Modifier and Type | Method and Description |
---|---|
void |
LayoutGraphAdapter.setEdgePortNodeSize(SizeD value)
|
Modifier and Type | Method and Description |
---|---|
SizeD |
CanvasControl.getDoubleClickSize()
The area in view coordinates the mouse needs to stay in before multiple clicks are considered multiple single clicks
instead of multi-clicks.
|
SizeD |
CanvasControl.getDoubleTapSize()
Gets the area in view coordinates the touch pointer needs to stay in before multiple taps are considered multiple single
taps instead of multi-taps.
|
SizeD |
CanvasControl.getDragSize()
Gets the area in view coordinates the mouse may stay in before a movement is considered a drag.
|
SizeD |
CanvasControl.getSize()
Returns the size of this
CanvasControl . |
Modifier and Type | Method and Description |
---|---|
ObjectProperty<SizeD> |
CanvasControl.doubleClickSizeProperty()
The property for the
area in view coordinates the mouse needs to stay in before multiple clicks are considered multiple single clicks
instead of multi-clicks. |
ObjectProperty<SizeD> |
CanvasControl.doubleTapSizeProperty()
The property for the
area in view coordinates the touch pointer needs to stay in before multiple taps are considered multiple single
taps instead of multi-taps. |
ObjectProperty<SizeD> |
CanvasControl.dragSizeProperty()
The property for the
the area in view coordinates the mouse may stay in before a movement is considered a drag. |
Modifier and Type | Method and Description |
---|---|
void |
CanvasControl.setDoubleClickSize(SizeD value)
The area in view coordinates the mouse needs to stay in before multiple clicks are considered multiple single clicks
instead of multi-clicks.
|
void |
CanvasControl.setDoubleTapSize(SizeD value)
Sets the area in view coordinates the touch pointer needs to stay in before multiple taps are considered multiple single
taps instead of multi-taps.
|
void |
CanvasControl.setDragSize(SizeD value)
Sets the area in view coordinates the mouse may stay in before a movement is considered a drag.
|
Modifier and Type | Method and Description |
---|---|
SizeD |
NodeSizeConstraintProvider.getMaximumSize(INode node) |
SizeD |
INodeSizeConstraintProvider.getMaximumSize(INode node)
Returns the maximum size allowed for the given
node . |
SizeD |
NodeSizeConstraintProvider.getMinimumSize(INode node) |
SizeD |
INodeSizeConstraintProvider.getMinimumSize(INode node)
Returns the minimum size allowed for the given
node . |
SizeD |
LabelEditingEventArgs.getPreferredSize()
Gets the
PreferredSize of the label to add. |
protected SizeD |
EditLabelHelper.getPreferredSize(IInputModeContext context,
ILabel label)
Gets the preferred size for the label.
|
SizeD |
ReshapeRectangleContext.getSizeChangeFactor()
Gets the factor by which the size of the node layout changes when the handle is dragged.
|
Modifier and Type | Method and Description |
---|---|
protected double |
TextEditorInputMode.getMaximumZoom(SizeD textBoxSize)
Determines the text box's maximum zoom value.
|
protected double |
TextEditorInputMode.getMinimumZoom(SizeD textBoxSize)
Determines the text box's minimum zoom value.
|
protected RectD |
NodeDropInputMode.getNodeLayout(PointD mouseLocation,
SizeD size)
Calculates the layout of the new node.
|
protected RectD |
StripeDropInputMode.getPreviewTableLayout(PointD location,
SizeD size)
Calculates the layout of the new table.
|
void |
LabelEditingEventArgs.setPreferredSize(SizeD value)
Sets the
PreferredSize of the label to add. |
protected boolean |
TextEditorInputMode.showInViewCoordinates(SizeD textBoxSize)
Determines whether the text box should be displayed in the view coordinate system instead of in the world coordinate
system.
|
Constructor and Description |
---|
ReshapeRectangleContext(RectD initialBounds,
ISize minimumSize,
ISize maximumSize,
IRectangle minimumEnclosedArea,
HandlePositions reshapePosition,
PointD topLeftChangeFactor,
PointD bottomRightChangeFactor,
SizeD sizeChangeFactor)
Initializes a new instance of the
ReshapeRectangleContext class. |