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.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 | Interface and Description |
---|---|
interface |
IMutableOrientedRectangle
Interface for mutable oriented rectangles in 2D coordinate space with double precision coordinates.
|
Modifier and Type | Class and Description |
---|---|
class |
MutableRectangle
A simple default implementation of a mutable rectangle in 2D coordinate space with double precision values stored in an
instance of
IMutablePoint and IMutableSize . |
class |
OrientedRectangle
A simple default implementation of a mutable oriented rectangle in 2D coordinate space with double precision values
stored in an instance of
IMutablePoint and IMutableSize as well as two doubles for the up vector
components. |
Modifier and Type | Field and Description |
---|---|
static IOrientedRectangle |
IOrientedRectangle.EMPTY
An immutable empty
IOrientedRectangle with width and height of -1 . |
Modifier and Type | Method and Description |
---|---|
static IOrientedRectangle |
OrientedRectangle.createImmutable(double anchorX,
double anchorY,
double width,
double height,
double upX,
double upY)
Creates an immutable
IOrientedRectangle with the given values. |
Modifier and Type | Method and Description |
---|---|
void |
GeneralPath.appendOrientedRectangle(IOrientedRectangle rectangle,
boolean connect)
Appends an
IOrientedRectangle to this path instance. |
boolean |
OrientedRectangle.equals(IOrientedRectangle other) |
boolean |
RectD.intersects(IOrientedRectangle rectangle,
double eps)
Determines whether this rectangle intersects an
IOrientedRectangle , given an epsilon. |
void |
OrientedRectangle.reshape(IOrientedRectangle rectangle)
Applies the values provided by the given instance to the values of this instance.
|
Constructor and Description |
---|
OrientedRectangle(IOrientedRectangle rectangle)
Creates a new instance using the provided values to initialize.
|
Modifier and Type | Method and Description |
---|---|
default IOrientedRectangle |
ILabel.getLayout()
Gets a snapshot of the current layout of the label.
|
Modifier and Type | Method and Description |
---|---|
IOrientedRectangle |
StripeLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter)
Calculates the geometry in form of an
IOrientedRectangle for a given label using the given model parameter. |
IOrientedRectangle |
StretchStripeLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter)
Calculates the geometry in form of an
IOrientedRectangle for a given label using the given model parameter. |
IOrientedRectangle |
SmartEdgeLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
SandwichLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
NinePositionsEdgeLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
InteriorStretchLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
InteriorLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
ILabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter)
Calculates the
geometry of the given label using the given model parameter. |
IOrientedRectangle |
GenericLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
FreeNodeLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
FreeLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
FreeEdgeLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
ExteriorLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
EdgeSegmentLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
EdgePathLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
DescriptorWrapperLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
IOrientedRectangle |
CompositeLabelModel.getGeometry(ILabel label,
ILabelModelParameter layoutParameter) |
Modifier and Type | Method and Description |
---|---|
protected double |
DefaultLabelModelParameterFinder.calculateMetric(ILabel label,
ILabelModelParameter layoutParameter,
IOrientedRectangle layout)
Calculates a metric for the given label/parameter pair and the target label layout.
|
ILabelModelParameter |
FreeNodeLabelModel.createCanonicalParameter(RectD nodeLayout,
IOrientedRectangle labelLayout)
Creates a parameter instance that anchors the label to the node at the canonical position with respect to the given
reference point.
|
ILabelModelParameter |
FreeNodeLabelModel.createCanonicalParameter(RectD nodeLayout,
IOrientedRectangle labelLayout,
PointD referenceLocation)
Creates a parameter instance that anchors the label to the node at the canonical position with respect to the given
reference point.
|
ILabelModelParameter |
FreeLabelModel.createDynamic(IOrientedRectangle layout)
Creates a new label model parameter that dynamically reads the label layout from the provided instance.
|
protected double |
DefaultLabelModelParameterFinder.distance(IOrientedRectangle rectangle1,
IOrientedRectangle rectangle2)
Returns the distance between two
IOrientedRectangle instances. |
ILabelModelParameter |
SmartEdgeLabelModel.findBestParameter(ILabel label,
ILabelModel model,
IOrientedRectangle layout) |
ILabelModelParameter |
ILabelModelParameterFinder.findBestParameter(ILabel label,
ILabelModel model,
IOrientedRectangle layout)
Tries to find a parameter that best matches the given layout for the provided label instance.
|
ILabelModelParameter |
FreeNodeLabelModel.findBestParameter(ILabel label,
ILabelModel model,
IOrientedRectangle layout)
Tries to find a parameter that best matches the given layout for the provided label instance.
|
ILabelModelParameter |
FreeLabelModel.findBestParameter(ILabel label,
ILabelModel model,
IOrientedRectangle layout) |
ILabelModelParameter |
FreeEdgeLabelModel.findBestParameter(ILabel label,
ILabelModel model,
IOrientedRectangle layout)
Tries to find a parameter that best matches the given layout for the provided label instance.
|
ILabelModelParameter |
EdgeSegmentLabelModel.findBestParameter(ILabel label,
ILabelModel model,
IOrientedRectangle layout) |
ILabelModelParameter |
EdgePathLabelModel.findBestParameter(ILabel label,
ILabelModel model,
IOrientedRectangle layout) |
ILabelModelParameter |
DefaultLabelModelParameterFinder.findBestParameter(ILabel label,
ILabelModel model,
IOrientedRectangle layout)
Tries to find a parameter that best matches the given layout for the provided label instance.
|
ILabelModelParameter |
CompositeLabelModel.findBestParameter(ILabel label,
ILabelModel model,
IOrientedRectangle layout)
Tries to find a parameter that best matches the given layout for the provided label instance.
|
ILabelModelParameter |
DefaultLabelModelParameterFinder.findBestParameter(ILabel label,
IOrientedRectangle layout,
Iterable<ILabelModelParameter> layoutParameters)
Tries to find a parameter that best matches the given layout for the provided label instance among the set of given
parameters.
|
Modifier and Type | Method and Description |
---|---|
protected IOrientedRectangle |
TemplateLabelStyleRenderer.getLayout()
Holds the layout of the current label.
|
protected IOrientedRectangle |
DefaultLabelStyleRenderer.getLayout()
Retrieves the current
layout . |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractLabelStyle.arrangeByLayout(Node visual,
IOrientedRectangle layout,
boolean autoFlip)
Arranges the given visual for use in a
VisualGroup using the provided layout and auto
flipping rule. |
protected void |
DefaultLabelStyleRenderer.setLayout(IOrientedRectangle value)
Retrieves the current
layout . |
Modifier and Type | Method and Description |
---|---|
protected IOrientedRectangle |
OrientedRectangleIndicatorInstaller.getRectangle(Object item)
Factory method that returns an
IOrientedRectangle for a given user object. |
Constructor and Description |
---|
OrientedRectangleIndicatorInstaller(IOrientedRectangle fixedBounds)
Initializes a new instance of the
OrientedRectangleIndicatorInstaller class with fixed bounds and a
ResourceKey . |
OrientedRectangleIndicatorInstaller(IOrientedRectangle fixedBounds,
ResourceKey templateKey)
Initializes a new instance of the
OrientedRectangleIndicatorInstaller class with fixed bounds and a
ResourceKey . |
Modifier and Type | Method and Description |
---|---|
void |
LabelSnapContextHelper.collectSnapResults(LabelSnapContext context,
CollectSnapResultsEventArgs args,
IOrientedRectangle suggestedLayout,
ILabel label) |
void |
ILabelSnapContextHelper.collectSnapResults(LabelSnapContext context,
CollectSnapResultsEventArgs args,
IOrientedRectangle suggestedLayout,
ILabel label)
Called while the given
label is dragged
to add snap results for the snap lines
provided by the context . |
protected double |
LabelPositionHandler.getDistance(IOrientedRectangle rectangle,
PointD location)
Calculates a distance value between a candidate rectangle and the mouse location.
|