Search this API

y.layout
Class FreeNodeLabelModel.ModelParameter

java.lang.Object
  extended by y.layout.FreeNodeLabelModel.ModelParameter
Enclosing class:
FreeNodeLabelModel

public static class FreeNodeLabelModel.ModelParameter
extends Object

The model parameter that encodes a node label position within FreeNodeLabelModel.

Holds the offset of a node label's upper-left corner relative to its node's upper-left corner.


Constructor Summary
FreeNodeLabelModel.ModelParameter()
          Returns a new instance of ModelParameter.
FreeNodeLabelModel.ModelParameter(double dx, double dy)
          Returns a new instance of ModelParameter with the given offset.
 
Method Summary
 YPoint getPoint()
          Returns the offset of this ModelParameter.
 void setPoint(double dx, double dy)
          Sets the node label's offset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreeNodeLabelModel.ModelParameter

public FreeNodeLabelModel.ModelParameter()
Returns a new instance of ModelParameter. It has no offset, i.e., the upper-left corners of both node label and node are at the same location.


FreeNodeLabelModel.ModelParameter

public FreeNodeLabelModel.ModelParameter(double dx,
                                         double dy)
Returns a new instance of ModelParameter with the given offset.

Method Detail

getPoint

public YPoint getPoint()
Returns the offset of this ModelParameter.


setPoint

public void setPoint(double dx,
                     double dy)
Sets the node label's offset.


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