jadex.swing.map
Class LocusLayout
java.lang.Object
|
+--jadex.swing.map.LocusLayout
- Direct Known Subclasses:
- SmartLocusLayout
- public class LocusLayout
- extends java.lang.Object
Layout for distribute the loci on the locusdisplay.
Constructor Summary |
LocusLayout(float yPadding,
int npc,
boolean connect,
java.awt.Color c)
The only constructor. |
Method Summary |
void |
drawNames(float x1,
float h,
float offset,
float rel,
java.awt.Graphics2D g2)
The actual layout method. |
java.lang.String |
getName()
Get the name of this layout. |
void |
setConnect(boolean c)
Set if the connecting lines should be displayed. |
void |
setLocusUI(LocusUI[] lUI)
Set the showing loci. |
void |
setMouseInName(java.lang.String name)
Set the name of the LocusUI where mouse is in. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocusLayout
public LocusLayout(float yPadding,
int npc,
boolean connect,
java.awt.Color c)
- The only constructor.
- Parameters:
yPadding
- set the vertical padding.npc
- the number per column for displaying.connect
- the flag for connecting lines.the
- color for the connecting lines.
setLocusUI
public void setLocusUI(LocusUI[] lUI)
- Set the showing loci.
- Parameters:
lUI
- the LocusUI to be displayed.
setMouseInName
public void setMouseInName(java.lang.String name)
- Set the name of the LocusUI where mouse is in.
- Parameters:
name
- the name of the LocusUI where mouse is in.
setConnect
public void setConnect(boolean c)
- Set if the connecting lines should be displayed.
- Parameters:
c
- true for displaying the connecting lines, false for no displaying.
drawNames
public void drawNames(float x1,
float h,
float offset,
float rel,
java.awt.Graphics2D g2)
- The actual layout method.
- Parameters:
x1
- the initial x positionh
- the height of the display.offfest
- the offset of the x coordinate.rel
- the ratio between genetic distance and graphic coordinate.g2
- the Graphics context.
getName
public java.lang.String getName()
- Get the name of this layout.
- Returns:
- always columnLayout.