com.gmail.thejcwk.semantics.topicmaps
Class TopicMapGenerator

java.lang.Object
  extended by com.gmail.thejcwk.semantics.topicmaps.TopicMapGenerator

public class TopicMapGenerator
extends java.lang.Object

Encapsulates the generation of a topic map in the form of a JGraph object.

Version:
0.1
Author:
Jan Kroeze

Nested Class Summary
static class TopicMapGenerator.CellTypes
          Enumerates the types of cell incorporated in the Graph.
 
Field Summary
 double CELL_HEIGHT
           
 java.lang.String EMPTY_VALUE_MARKER
           
 java.awt.Color PHONETIC_CELL_COLOUR
           
 double PHONETIC_PORT_1_OFFSET
           
 double PHONETIC_PORT_2_OFFSET
           
 double PORT_Y_OFFSET
           
 java.awt.Color SEMANTIC_CELL_COLOUR
           
 double SEMANTIC_PORT_1_OFFSET
           
 double SEMANTIC_PORT_2_OFFSET
           
 java.awt.Color SYNTACTIC_CELL_COLOUR
           
 double SYNTACTIC_PORT_1_OFFSET
           
 double SYNTACTIC_PORT_2_OFFSET
           
 
Constructor Summary
TopicMapGenerator(PhraseCollection aCollection)
          Creates a new TopicMapGenerator that renders the specified collection.
 
Method Summary
 TopicMap generate(double width, double height)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CELL_HEIGHT

public final double CELL_HEIGHT
See Also:
Constant Field Values

PORT_Y_OFFSET

public final double PORT_Y_OFFSET
See Also:
Constant Field Values

PHONETIC_PORT_1_OFFSET

public final double PHONETIC_PORT_1_OFFSET
See Also:
Constant Field Values

PHONETIC_PORT_2_OFFSET

public final double PHONETIC_PORT_2_OFFSET
See Also:
Constant Field Values

SYNTACTIC_PORT_1_OFFSET

public final double SYNTACTIC_PORT_1_OFFSET
See Also:
Constant Field Values

SYNTACTIC_PORT_2_OFFSET

public final double SYNTACTIC_PORT_2_OFFSET
See Also:
Constant Field Values

SEMANTIC_PORT_1_OFFSET

public final double SEMANTIC_PORT_1_OFFSET
See Also:
Constant Field Values

SEMANTIC_PORT_2_OFFSET

public final double SEMANTIC_PORT_2_OFFSET
See Also:
Constant Field Values

EMPTY_VALUE_MARKER

public final java.lang.String EMPTY_VALUE_MARKER
See Also:
Constant Field Values

PHONETIC_CELL_COLOUR

public final java.awt.Color PHONETIC_CELL_COLOUR

SEMANTIC_CELL_COLOUR

public final java.awt.Color SEMANTIC_CELL_COLOUR

SYNTACTIC_CELL_COLOUR

public final java.awt.Color SYNTACTIC_CELL_COLOUR
Constructor Detail

TopicMapGenerator

public TopicMapGenerator(PhraseCollection aCollection)
Creates a new TopicMapGenerator that renders the specified collection.

Parameters:
aCollection - The collection to render.
Method Detail

generate

public TopicMap generate(double width,
                         double height)