jadex.swing.map
Class SmartLocusLayout

java.lang.Object
  |
  +--jadex.swing.map.LocusLayout
        |
        +--jadex.swing.map.SmartLocusLayout

public class SmartLocusLayout
extends LocusLayout

A subclass of locuslayout to implement a smart locus labelling method.


Constructor Summary
SmartLocusLayout(float yPadding, int npc, boolean connect, java.awt.Color c)
          The sole construcotr.
 
Method Summary
 void drawNames(float x1, float h, float offset, float rel, java.awt.Graphics2D g2)
          Actual layout methods.
 java.lang.String getName()
          Get the specified name for this LocusLayout.
 
Methods inherited from class jadex.swing.map.LocusLayout
setConnect, setLocusUI, setMouseInName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmartLocusLayout

public SmartLocusLayout(float yPadding,
                        int npc,
                        boolean connect,
                        java.awt.Color c)
The sole construcotr.
Parameters:
yPadding - the vertical padding.
npc - the number per column.
connect - the flag to control if the connecting lines should be displayed.
c - the color of the connecting lines
Method Detail

drawNames

public void drawNames(float x1,
                      float h,
                      float offset,
                      float rel,
                      java.awt.Graphics2D g2)
Actual layout methods.
Overrides:
drawNames in class LocusLayout
Parameters:
x1 - the initial x position
h - the height of the display.
offset - the initial position.
rel - the ratio between the biological position and the graphics coordinate.
g2 - the Graphics context.

getName

public java.lang.String getName()
Get the specified name for this LocusLayout.
Overrides:
getName in class LocusLayout
Returns:
the name of this LocusLayout, smaartLayout.