de.frag.umlplugin.classcloud
Class ColorComputer

java.lang.Object
  extended by de.frag.umlplugin.classcloud.ColorComputer

public class ColorComputer
extends java.lang.Object

Computes colors for class cloud nodes.


Constructor Summary
ColorComputer()
           
 
Method Summary
static java.awt.Color computeColor(double preferredX, double preferredY, double width, double height, Settings settings)
          Computes node color for class cloud node with given preferred coordinates and class cloud size.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorComputer

public ColorComputer()
Method Detail

computeColor

@NotNull
public static java.awt.Color computeColor(double preferredX,
                                                  double preferredY,
                                                  double width,
                                                  double height,
                                                  @NotNull
                                                  Settings settings)
Computes node color for class cloud node with given preferred coordinates and class cloud size.

Parameters:
preferredX - preferred x-coordinate (0..n means left to right)
preferredY - preferred y-coordinate (0..n means top to bottom)
width - with of class cloud
height - height of class cloud
settings - settings
Returns:
computed node color