org.fusesource.web.console.client.camel
Class AbstractDiagram

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.Panel
              extended by com.google.gwt.user.client.ui.SimplePanel
                  extended by org.fusesource.web.console.client.camel.AbstractDiagram
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasWidgets, java.lang.Iterable<com.google.gwt.user.client.ui.Widget>
Direct Known Subclasses:
CamelDiagram

public abstract class AbstractDiagram
extends com.google.gwt.user.client.ui.SimplePanel


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
protected  com.allen_sauer.gwt.dragdrop.client.DragController dragController
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
AbstractDiagram()
           
 
Method Summary
protected  void add(pl.balon.gwt.diagrams.client.connection.AbstractConnection c)
          Adds connection to panel.
protected  void connect(pl.balon.gwt.diagrams.client.connector.Connector a, pl.balon.gwt.diagrams.client.connector.Connector b)
          Creates rectilinear connection.
protected  pl.balon.gwt.diagrams.client.connector.UIObjectConnector createConnector(java.lang.String url, java.lang.String title, int left, int top, pl.balon.gwt.diagrams.client.connector.Direction direction)
          Creates connector.
protected abstract  void createContents(CamelNode camelNode)
          Creates example contents (sets up connectors and connections)
protected  com.allen_sauer.gwt.dragdrop.client.DragController createDragController()
           
protected  com.google.gwt.user.client.ui.AbsolutePanel getArea()
          Return examples area widget.
protected  void remove(pl.balon.gwt.diagrams.client.connection.Connection c)
          Removes connection from examples panel.
 void update()
          Recalculates and redraws all connections in this example
 
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getContainerElement, getWidget, iterator, remove, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onAttach, onBrowserEvent, onDetach, removeFromParent
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, 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

dragController

protected final com.allen_sauer.gwt.dragdrop.client.DragController dragController
Constructor Detail

AbstractDiagram

public AbstractDiagram()
Method Detail

createContents

protected abstract void createContents(CamelNode camelNode)
Creates example contents (sets up connectors and connections)


connect

protected void connect(pl.balon.gwt.diagrams.client.connector.Connector a,
                       pl.balon.gwt.diagrams.client.connector.Connector b)
Creates rectilinear connection.

See Also:
pl.balon.gwt.diagramsexample.client.examples.AbstractConnectionsExample#connect(pl.balon.gwt.diagrams.client.connector.Connector, pl.balon.gwt.diagrams.client.connector.Connector)

getArea

protected com.google.gwt.user.client.ui.AbsolutePanel getArea()
Return examples area widget.


add

protected void add(pl.balon.gwt.diagrams.client.connection.AbstractConnection c)
Adds connection to panel.

Parameters:
c - connection to be added

remove

protected void remove(pl.balon.gwt.diagrams.client.connection.Connection c)
Removes connection from examples panel.

Parameters:
c -

update

public void update()
Recalculates and redraws all connections in this example


createConnector

protected pl.balon.gwt.diagrams.client.connector.UIObjectConnector createConnector(java.lang.String url,
                                                                                   java.lang.String title,
                                                                                   int left,
                                                                                   int top,
                                                                                   pl.balon.gwt.diagrams.client.connector.Direction direction)
Creates connector.

Parameters:
Image - - label on connector
left - - horizontal position
top - - vertical position
direction - - allowed direction of connection from this connector (null means all directions_
Returns:

createDragController

protected com.allen_sauer.gwt.dragdrop.client.DragController createDragController()
Returns:
DragController


Copyright © 2009 FuseSource. All Rights Reserved.