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

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.LShape
All Implemented Interfaces:
IPropertyHolder, Comparable<LGraphElement>
Direct Known Subclasses:
LLabel, LNode, LPort

public abstract class LShape
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
LShape()
           
 
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, getProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LShape

public LShape()
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