Search this API

y.view
Interface YLabel.Layout

All Known Implementing Classes:
DefaultLabelConfiguration, HtmlLabelConfiguration
Enclosing class:
YLabel

public static interface YLabel.Layout

The interface that is used by a specific label configuration that calculates the layout size and determines whether a given point is contained in a label's geometry.

See Also:
YLabel.calculateSize(java.awt.font.FontRenderContext), YLabel.contains(double, double)
 

Method Summary
 void calculateContentSize(YLabel label, java.awt.font.FontRenderContext frc)
          Delegating method of YLabel.calculateSize(java.awt.font.FontRenderContext)
 boolean contains(YLabel label, double x, double y)
          Delegating method of YLabel.contains(double, double)
 

Method Detail

calculateContentSize

void calculateContentSize(YLabel label,
                          java.awt.font.FontRenderContext frc)
Delegating method of YLabel.calculateSize(java.awt.font.FontRenderContext)

Parameters:
label - the label context
frc - the font render context.

contains

boolean contains(YLabel label,
                 double x,
                 double y)
Delegating method of YLabel.contains(double, double)

Parameters:
label - the label context.

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.