pl.edu.agh.cast.schema.model.visual
Class SchemaConnectionBendpoint

java.lang.Object
  extended by pl.edu.agh.cast.schema.model.visual.SchemaConnectionBendpoint
All Implemented Interfaces:
Serializable

public class SchemaConnectionBendpoint
extends Object
implements Serializable

Contains informations about bend point.

Author:
AGH CAST Team
See Also:
Serialized Form

Constructor Summary
SchemaConnectionBendpoint()
          Default constructor.
SchemaConnectionBendpoint(org.eclipse.draw2d.geometry.Dimension dim1, org.eclipse.draw2d.geometry.Dimension dim2, float pointWeight)
          Constructor.
 
Method Summary
static SchemaConnectionBendpoint fromString(String value)
          Deserailizes schema connection bend-point from string.
 org.eclipse.draw2d.geometry.Dimension getDimension1()
          Returns first dimension of bend point.
 org.eclipse.draw2d.geometry.Dimension getDimension2()
          Returns second dimension of bend point.
 float getWeight()
          Gets weight of bend point.
 void setDimensions(org.eclipse.draw2d.geometry.Dimension dim1, org.eclipse.draw2d.geometry.Dimension dim2)
          Sets dimensions of bend point.
 void setWeight(float weight)
          Sets weight of bend point.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SchemaConnectionBendpoint

public SchemaConnectionBendpoint(org.eclipse.draw2d.geometry.Dimension dim1,
                                 org.eclipse.draw2d.geometry.Dimension dim2,
                                 float pointWeight)
Constructor.

Parameters:
dim1 - first dimension
dim2 - second dimension
pointWeight - weight of bend point
See Also:
RelativeBendpoint.setRelativeDimensions(Dimension, Dimension), RelativeBendpoint.setWeight(float)

SchemaConnectionBendpoint

public SchemaConnectionBendpoint()
Default constructor.

Method Detail

getDimension1

public org.eclipse.draw2d.geometry.Dimension getDimension1()
Returns first dimension of bend point.

Returns:
first dimension
See Also:
RelativeBendpoint.setRelativeDimensions(Dimension, Dimension)

getDimension2

public org.eclipse.draw2d.geometry.Dimension getDimension2()
Returns second dimension of bend point.

Returns:
second dimension
See Also:
RelativeBendpoint.setRelativeDimensions(Dimension, Dimension)

setDimensions

public void setDimensions(org.eclipse.draw2d.geometry.Dimension dim1,
                          org.eclipse.draw2d.geometry.Dimension dim2)
Sets dimensions of bend point.

Parameters:
dim1 - first dimension
dim2 - second dimension
See Also:
RelativeBendpoint.setRelativeDimensions(Dimension, Dimension)

getWeight

public float getWeight()
Gets weight of bend point.

Returns:
the weight
See Also:
RelativeBendpoint.setWeight(float)

setWeight

public void setWeight(float weight)
Sets weight of bend point.

Parameters:
weight - the weight to set
See Also:
RelativeBendpoint.setWeight(float)

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()

fromString

public static SchemaConnectionBendpoint fromString(String value)
Deserailizes schema connection bend-point from string.

Parameters:
value - string value to be deserialized
Returns:
deserialized instance of schema connection bend-point


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