org.kite9.diagram.adl
Class Glyph

java.lang.Object
  extended by org.kite9.diagram.primitives.AbstractIdentifiableDiagramElement
      extended by org.kite9.diagram.primitives.AbstractConnectedContained
          extended by org.kite9.diagram.adl.Glyph
All Implemented Interfaces:
Comparable<DiagramElement>, Connected, Contained, DiagramElement, IdentifiableDiagramElement, Leaf

public class Glyph
extends AbstractConnectedContained
implements Leaf

A Glyph is a white node on the diagram which has a fixed hierarchical position within its container. It has a label and optionally a type, and it can optionally contain multiple rows of text.

Author:
robmoffat

Field Summary
 
Fields inherited from class org.kite9.diagram.primitives.AbstractIdentifiableDiagramElement
renderingInformation
 
Constructor Summary
Glyph()
           
Glyph(String sterotype, String label, List<TextLine> text, List<Symbol> symbols)
           
Glyph(String id, String stereotype, String label, List<TextLine> text, List<Symbol> symbols)
           
 
Method Summary
 String getLabel()
           
 RenderingInformation getRenderingInformation()
           
 String getStereotype()
           
 List<Symbol> getSymbols()
           
 List<TextLine> getText()
           
 boolean hasDimension()
           
 void setLabel(String name)
           
 void setStereotype(String sterotype)
           
 void setText(List<TextLine> text)
           
 String toString()
           
 
Methods inherited from class org.kite9.diagram.primitives.AbstractConnectedContained
addLink, getConnectionTo, getContainer, getLinks, isConnectedDirectlyTo, removeLink, setContainer
 
Methods inherited from class org.kite9.diagram.primitives.AbstractIdentifiableDiagramElement
compareTo, createID, getID, hashCode, resetCounter, setID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kite9.diagram.primitives.IdentifiableDiagramElement
getID, setID
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

Glyph

public Glyph()

Glyph

public Glyph(String id,
             String stereotype,
             String label,
             List<TextLine> text,
             List<Symbol> symbols)

Glyph

public Glyph(String sterotype,
             String label,
             List<TextLine> text,
             List<Symbol> symbols)
Method Detail

getLabel

public String getLabel()

setLabel

public void setLabel(String name)

getStereotype

public String getStereotype()

setStereotype

public void setStereotype(String sterotype)

getText

public List<TextLine> getText()

setText

public void setText(List<TextLine> text)

getSymbols

public List<Symbol> getSymbols()

hasDimension

public boolean hasDimension()

toString

public String toString()
Overrides:
toString in class Object

getRenderingInformation

public RenderingInformation getRenderingInformation()
Specified by:
getRenderingInformation in interface DiagramElement


Copyright © 2011. All Rights Reserved.