Search this API

y.view
Interface YLabel.Painter

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

public static interface YLabel.Painter

The interface that is used by a specific label configuration that performs the painting.

See Also:
YLabel.paint(java.awt.Graphics2D), YLabel.paintContent(java.awt.Graphics2D, double, double, double, double), YLabel.paintBox(java.awt.Graphics2D, double, double, double, double), (), YLabel.getIconBox()
 
Your browser does not support SVG content.

Method Summary
 OrientedRectangle getIconBox(YLabel label)
          Delegating method of YLabel.getIconBox().
 OrientedRectangle getTextBox(YLabel label)
          Delegating method of YLabel.getTextBox().
 void paint(YLabel label, java.awt.Graphics2D gfx)
          Delegating method of YLabel.paint(java.awt.Graphics2D)
 void paintBox(YLabel label, java.awt.Graphics2D gfx, double x, double y, double width, double height)
          Delegating method of YLabel.paintBox(java.awt.Graphics2D, double, double, double, double)
 void paintContent(YLabel label, java.awt.Graphics2D gfx, double x, double y, double width, double height)
          Delegating method of YLabel.paintContent(java.awt.Graphics2D, double, double, double, double)
 

Method Detail

paint

void paint(YLabel label,
           java.awt.Graphics2D gfx)
Delegating method of YLabel.paint(java.awt.Graphics2D)

Parameters:
label - the label context

paintContent

void paintContent(YLabel label,
                  java.awt.Graphics2D gfx,
                  double x,
                  double y,
                  double width,
                  double height)
Delegating method of YLabel.paintContent(java.awt.Graphics2D, double, double, double, double)

Parameters:
label - the label context

paintBox

void paintBox(YLabel label,
              java.awt.Graphics2D gfx,
              double x,
              double y,
              double width,
              double height)
Delegating method of YLabel.paintBox(java.awt.Graphics2D, double, double, double, double)

Parameters:
label - the label context

getTextBox

OrientedRectangle getTextBox(YLabel label)
Delegating method of YLabel.getTextBox().

Note: This method is not used to calculate the text placement in the painter, but rather provides a means to query the painter for text position and orientation.

Parameters:
label - the label context

getIconBox

OrientedRectangle getIconBox(YLabel label)
Delegating method of YLabel.getIconBox().

Note: This method is not used to calculate the icon placement in the painter, but rather provides a means to query the painter for icon position and orientation.

Parameters:
label - the label context

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