|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.view.DefaultLabelConfiguration
public class DefaultLabelConfiguration
Helper class for use in configuration implementations
that can be used in YLabel.Factory.addConfiguration(String, java.util.Map) to serve
as a basic implementation.
This implementation mimics the default behavior of a YLabel instance.
| Constructor Summary | |
|---|---|
DefaultLabelConfiguration()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultLabelConfiguration()
| Method Detail |
|---|
public void calcUnionRect(YLabel label,
Rectangle2D r)
YLabel.BoundsProviderYLabel.calcUnionRect(java.awt.geom.Rectangle2D)
calcUnionRect in interface YLabel.BoundsProviderlabel - the label contextr - the bounds to update
public void paint(YLabel label,
Graphics2D gfx)
YLabel.PainterYLabel.paint(java.awt.Graphics2D)
paint in interface YLabel.Painterlabel - the label context
public void paintContent(YLabel label,
Graphics2D gfx,
double x,
double y,
double width,
double height)
YLabel.PainterYLabel.paintContent(java.awt.Graphics2D, double, double, double, double)
paintContent in interface YLabel.Painterlabel - the label context
public void paintBox(YLabel label,
Graphics2D gfx,
double x,
double y,
double width,
double height)
YLabel.PainterYLabel.paintBox(java.awt.Graphics2D, double, double, double, double)
paintBox in interface YLabel.Painterlabel - the label contextpublic YPoint getTextLocation(YLabel label)
YLabel.PainterYLabel.getTextLocation()
getTextLocation in interface YLabel.Painterlabel - the label contextpublic YPoint getIconLocation(YLabel label)
YLabel.PainterYLabel.getIconLocation()
getIconLocation in interface YLabel.Painterlabel - the label context
public void calculateContentSize(YLabel label,
FontRenderContext frc)
YLabel.LayoutYLabel.calculateSize(java.awt.font.FontRenderContext)
calculateContentSize in interface YLabel.Layoutlabel - the label contextfrc - the font render context.
public boolean contains(YLabel label,
double x,
double y)
YLabel.LayoutYLabel.contains(double, double)
contains in interface YLabel.Layoutlabel - the label context
|
© Copyright 2000-2008, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||