pl.edu.agh.cast.zestalgorithms.core
Class LayoutRelationshipImpl

java.lang.Object
  extended by pl.edu.agh.cast.zestalgorithms.core.LayoutRelationshipImpl
All Implemented Interfaces:
org.eclipse.zest.layouts.LayoutItem, org.eclipse.zest.layouts.LayoutRelationship

public class LayoutRelationshipImpl
extends Object
implements org.eclipse.zest.layouts.LayoutRelationship

Implementation of Zest's layout relationship between two nodes. This class just represents connection between two nodes. All relationships are directed.

Author:
Paweł Koperek , Mateusz Kupisz

Constructor Summary
LayoutRelationshipImpl(org.eclipse.zest.layouts.LayoutEntity source, org.eclipse.zest.layouts.LayoutEntity destination)
          Place for optional information about layout.
 
Method Summary
 void clearBendPoints()
          Method required by LayoutRelationship interface.
 org.eclipse.zest.layouts.LayoutEntity getDestinationInLayout()
          Returns the node that is the destination of the connection
 Object getGraphData()
          Required by LayoutRelationship.
 Object getLayoutInformation()
          Getter for optional information about the layout (or any other data that is stored in this field)
 org.eclipse.zest.layouts.LayoutEntity getSourceInLayout()
          Returns the source node of the connection
 void populateLayoutConstraint(org.eclipse.zest.layouts.constraints.LayoutConstraint constraint)
          Method required by LayoutRelationship interface.
 void setBendPoints(org.eclipse.zest.layouts.LayoutBendPoint[] bendPoints)
          Method required by LayoutRelationship interface.
 void setGraphData(Object o)
          Required by LayoutRelationship.
 void setLayoutInformation(Object layoutInformation)
          Sets object representing some additional information about layout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutRelationshipImpl

public LayoutRelationshipImpl(org.eclipse.zest.layouts.LayoutEntity source,
                              org.eclipse.zest.layouts.LayoutEntity destination)
Place for optional information about layout. Can be used to hold any data.

Method Detail

clearBendPoints

public void clearBendPoints()
Method required by LayoutRelationship interface. In our case does nothing

Specified by:
clearBendPoints in interface org.eclipse.zest.layouts.LayoutRelationship

getDestinationInLayout

public org.eclipse.zest.layouts.LayoutEntity getDestinationInLayout()
Returns the node that is the destination of the connection

Specified by:
getDestinationInLayout in interface org.eclipse.zest.layouts.LayoutRelationship
Returns:
Destination node of the connection

getLayoutInformation

public Object getLayoutInformation()
Getter for optional information about the layout (or any other data that is stored in this field)

Specified by:
getLayoutInformation in interface org.eclipse.zest.layouts.LayoutRelationship
Returns:
Object representing optional information about the connection (or any other data)

getSourceInLayout

public org.eclipse.zest.layouts.LayoutEntity getSourceInLayout()
Returns the source node of the connection

Specified by:
getSourceInLayout in interface org.eclipse.zest.layouts.LayoutRelationship
Returns:
source node

populateLayoutConstraint

public void populateLayoutConstraint(org.eclipse.zest.layouts.constraints.LayoutConstraint constraint)
Method required by LayoutRelationship interface. In our case does nothing

Specified by:
populateLayoutConstraint in interface org.eclipse.zest.layouts.LayoutRelationship

setBendPoints

public void setBendPoints(org.eclipse.zest.layouts.LayoutBendPoint[] bendPoints)
Method required by LayoutRelationship interface. In our case does nothing

Specified by:
setBendPoints in interface org.eclipse.zest.layouts.LayoutRelationship

setLayoutInformation

public void setLayoutInformation(Object layoutInformation)
Sets object representing some additional information about layout. Can be used to hold any information

Specified by:
setLayoutInformation in interface org.eclipse.zest.layouts.LayoutRelationship

getGraphData

public Object getGraphData()
Required by LayoutRelationship. Always returns null

Specified by:
getGraphData in interface org.eclipse.zest.layouts.LayoutItem
Returns:
null

setGraphData

public void setGraphData(Object o)
Required by LayoutRelationship. Does big nothing.

Specified by:
setGraphData in interface org.eclipse.zest.layouts.LayoutItem


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.