mima.presentation.gwt.nodeframe
Class RectangleFrame

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by mima.presentation.gwt.nodeframe.NodeComponent
                  extended by mima.presentation.gwt.nodeframe.NodeFrame
                      extended by mima.presentation.gwt.nodeframe.RectangleFrame
All Implemented Interfaces:
com.google.gwt.user.client.EventListener

public class RectangleFrame
extends NodeFrame

Author:
Virginio Carfagno

Field Summary
private  com.google.gwt.user.client.ui.AbsolutePanel _panel
           
private  com.google.gwt.user.client.ui.Widget _rectangle
           
private static int PADDING
           
 
Constructor Summary
RectangleFrame(NodeComponent nodeComponent)
           
 
Method Summary
private  int calculateNodeComponentCenterPosition()
           
private  int calculateNodeComponentMiddlePosition()
           
private  int calculateRectangleHeight()
           
private  int calculateRectangleWidth()
           
 int getAbsoluteEdgeConnectionPointY()
           
 void nodeComponentChanged()
           
private  void redraw()
           
 
Methods inherited from class mima.presentation.gwt.nodeframe.NodeFrame
getNodeComponent, setNodeComponent
 
Methods inherited from class mima.presentation.gwt.nodeframe.NodeComponent
fireNodeComponentChanged, setNodeFrame
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getElement, initWidget, onAttach, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onBrowserEvent, onLoad, removeFromParent
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleName, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getTitle, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PADDING

private static final int PADDING
See Also:
Constant Field Values

_panel

private com.google.gwt.user.client.ui.AbsolutePanel _panel

_rectangle

private com.google.gwt.user.client.ui.Widget _rectangle
Constructor Detail

RectangleFrame

public RectangleFrame(NodeComponent nodeComponent)
Method Detail

calculateNodeComponentCenterPosition

private int calculateNodeComponentCenterPosition()

calculateNodeComponentMiddlePosition

private int calculateNodeComponentMiddlePosition()

calculateRectangleHeight

private int calculateRectangleHeight()

calculateRectangleWidth

private int calculateRectangleWidth()

getAbsoluteEdgeConnectionPointY

public int getAbsoluteEdgeConnectionPointY()
Specified by:
getAbsoluteEdgeConnectionPointY in class NodeComponent

nodeComponentChanged

public void nodeComponentChanged()
Specified by:
nodeComponentChanged in class NodeFrame

redraw

private void redraw()