de.cau.cs.kieler.klay.layered.graph
Class LSizedGraphElement

java.lang.Object
  extended by de.cau.cs.kieler.core.properties.MapPropertyHolder
      extended by de.cau.cs.kieler.klay.layered.graph.LGraphElement
          extended by de.cau.cs.kieler.klay.layered.graph.LSizedGraphElement
All Implemented Interfaces:
IPropertyHolder, Comparable<LGraphElement>
Direct Known Subclasses:
LLabel, LNode, LPort

public abstract class LSizedGraphElement
extends LGraphElement

Abstract superclass for LGraphElements that can have a position and a size.

Rating red

Field Summary
 
Fields inherited from class de.cau.cs.kieler.klay.layered.graph.LGraphElement
id
 
Constructor Summary
LSizedGraphElement()
           
 
Method Summary
 KVector getPosition()
          Returns the element's current position.
 KVector getSize()
          Returns the element's current size.
 
Methods inherited from class de.cau.cs.kieler.klay.layered.graph.LGraphElement
compareTo
 
Methods inherited from class de.cau.cs.kieler.core.properties.MapPropertyHolder
checkProperties, copyProperties, getAllProperties, getProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LSizedGraphElement

public LSizedGraphElement()
Method Detail

getPosition

public KVector getPosition()
Returns the element's current position. Unless noted otherwise, this is the coordinate of the element's upper left corner. May be modified.

Returns:
the position

getSize

public KVector getSize()
Returns the element's current size. May be modified.

Returns:
the size