org.eu.sk.zero.acd
Class PlacementHint

java.lang.Object
  |
  +--org.eu.sk.zero.acd.PlacementHint

public class PlacementHint
extends Object

Placement hint - graph beautification helper. Contains various methods to help placement of a node.

Version:
$Id: PlacementHint.java,v 1.4 2003/04/10 16:00:09 robo Exp $
See Also:
Gui

Constructor Summary
PlacementHint(org.eu.sk.zero.acd.Node n, org.eu.sk.zero.acd.ACD a)
          Creates hints for placing the specified node.
 
Method Summary
 Point placeHorizontallyAdjacent(int x, org.eu.sk.zero.acd.Node ref)
          Places the node on the same Y coordinate as the given node.
 Point placeOnX(int x)
          Places the node on an empty spot with X coordinate equal to the given.
 Point placeUnder(org.eu.sk.zero.acd.Node ref)
          Places the node under the given node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlacementHint

public PlacementHint(org.eu.sk.zero.acd.Node n,
                     org.eu.sk.zero.acd.ACD a)
Creates hints for placing the specified node. It's cheap to create it.

Method Detail

placeHorizontallyAdjacent

public Point placeHorizontallyAdjacent(int x,
                                       org.eu.sk.zero.acd.Node ref)
Places the node on the same Y coordinate as the given node.

Parameters:
x - the X coordinate where to place it
ref - node, from which the Y coordinate will be taken

placeUnder

public Point placeUnder(org.eu.sk.zero.acd.Node ref)
Places the node under the given node.


placeOnX

public Point placeOnX(int x)
Places the node on an empty spot with X coordinate equal to the given.