org.zilonis.tool.ui.component
Class NetworkLayout

java.lang.Object
  extended by org.zilonis.tool.ui.component.NetworkLayout
All Implemented Interfaces:
java.awt.LayoutManager

public class NetworkLayout
extends java.lang.Object
implements java.awt.LayoutManager


Constructor Summary
NetworkLayout()
           
 
Method Summary
 void addLayoutComponent(java.lang.String label, java.awt.Component c)
           
 AlphaMemoryComponent getAlphaMemory(java.util.LinkedList<java.awt.Component> list)
           
 BetaMemoryComponent getBetaMemory(java.util.LinkedList<java.awt.Component> list)
           
 int getConditionType(java.util.LinkedList<java.awt.Component> list)
           
 HArrowComponent getHArrow(java.util.LinkedList<java.awt.Component> list)
           
 HArrowComponent getHArrow2(java.util.LinkedList<java.awt.Component> list)
           
 JoinNodeComponent getJoinNode(java.util.LinkedList<java.awt.Component> list)
           
 NCCNodeComponent getNCCNodeUI(java.util.LinkedList<java.awt.Component> list)
           
 NCCNodeComponent getNCCNodeUI2(java.util.LinkedList<java.awt.Component> list)
           
 NegativeNodeComponent getNegativeNode(java.util.LinkedList<java.awt.Component> list)
           
 RulesGraphPanel getRulesGraphPanel(java.util.LinkedList<java.awt.Component> list)
           
 VArrowComponent getVArrow(java.util.LinkedList<java.awt.Component> list)
           
 VArrowComponent getVArrow2(java.util.LinkedList<java.awt.Component> list)
           
 java.awt.Rectangle layout(int y, java.util.LinkedList<java.awt.Component> list, boolean lastNegative)
           
 void layoutContainer(java.awt.Container target)
           
 java.awt.Rectangle layoutConyuntiveNegation(int x, int y, java.util.LinkedList<java.awt.Component> list)
           
 java.awt.Rectangle layoutNegativeCondition(int x, int y, java.util.LinkedList<java.awt.Component> list)
           
 java.awt.Rectangle layoutPositiveCondition(int x, int y, java.util.LinkedList<java.awt.Component> list, boolean lastNegative)
          Layout of the positive condition components in the list starting on x,y
 java.awt.Dimension minimumLayoutSize(java.awt.Container c)
           
 java.awt.Dimension preferredLayoutSize(java.awt.Container target)
           
 void removeLayoutComponent(java.awt.Component c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkLayout

public NetworkLayout()
Method Detail

addLayoutComponent

public void addLayoutComponent(java.lang.String label,
                               java.awt.Component c)
Specified by:
addLayoutComponent in interface java.awt.LayoutManager

removeLayoutComponent

public void removeLayoutComponent(java.awt.Component c)
Specified by:
removeLayoutComponent in interface java.awt.LayoutManager

layoutContainer

public void layoutContainer(java.awt.Container target)
Specified by:
layoutContainer in interface java.awt.LayoutManager

layout

public java.awt.Rectangle layout(int y,
                                 java.util.LinkedList<java.awt.Component> list,
                                 boolean lastNegative)

layoutConyuntiveNegation

public java.awt.Rectangle layoutConyuntiveNegation(int x,
                                                   int y,
                                                   java.util.LinkedList<java.awt.Component> list)

getRulesGraphPanel

public RulesGraphPanel getRulesGraphPanel(java.util.LinkedList<java.awt.Component> list)

getConditionType

public int getConditionType(java.util.LinkedList<java.awt.Component> list)

layoutPositiveCondition

public java.awt.Rectangle layoutPositiveCondition(int x,
                                                  int y,
                                                  java.util.LinkedList<java.awt.Component> list,
                                                  boolean lastNegative)
Layout of the positive condition components in the list starting on x,y

Parameters:
x -
y -
list -
Returns:

layoutNegativeCondition

public java.awt.Rectangle layoutNegativeCondition(int x,
                                                  int y,
                                                  java.util.LinkedList<java.awt.Component> list)

getJoinNode

public JoinNodeComponent getJoinNode(java.util.LinkedList<java.awt.Component> list)

getNegativeNode

public NegativeNodeComponent getNegativeNode(java.util.LinkedList<java.awt.Component> list)

getBetaMemory

public BetaMemoryComponent getBetaMemory(java.util.LinkedList<java.awt.Component> list)

getAlphaMemory

public AlphaMemoryComponent getAlphaMemory(java.util.LinkedList<java.awt.Component> list)

getHArrow

public HArrowComponent getHArrow(java.util.LinkedList<java.awt.Component> list)

getHArrow2

public HArrowComponent getHArrow2(java.util.LinkedList<java.awt.Component> list)

getNCCNodeUI

public NCCNodeComponent getNCCNodeUI(java.util.LinkedList<java.awt.Component> list)

getNCCNodeUI2

public NCCNodeComponent getNCCNodeUI2(java.util.LinkedList<java.awt.Component> list)

getVArrow

public VArrowComponent getVArrow(java.util.LinkedList<java.awt.Component> list)

getVArrow2

public VArrowComponent getVArrow2(java.util.LinkedList<java.awt.Component> list)

minimumLayoutSize

public java.awt.Dimension minimumLayoutSize(java.awt.Container c)
Specified by:
minimumLayoutSize in interface java.awt.LayoutManager

preferredLayoutSize

public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
Specified by:
preferredLayoutSize in interface java.awt.LayoutManager