org.ceryle.graph.tm
Class TMStylesheet

java.lang.Object
  extended by org.ceryle.graph.GraphStylesheet
      extended by org.ceryle.graph.tm.TMStylesheet

public class TMStylesheet
extends GraphStylesheet

TMStylesheet extends GraphStylesheet, as a static utility class encapsulating various topic map-specific display properties.

Since:
JDK1.3
Version:
$Id: TMStylesheet.java,v 3.2 2007-06-15 12:09:27 altheim Exp $
Author:
Murray Altheim
See Also:
GraphStylesheet, GraphLayoutPanel

Field Summary
static Color COLOR_ASSOC_OPAQUE
          Since association nodes are usually translucent, this is a default opaque color.
static Color COLOR_EDGE_TEMPLATE
          The color of an edge used to show the type of an association.
 
Fields inherited from class org.ceryle.graph.GraphStylesheet
m_GC
 
Constructor Summary
TMStylesheet()
           
 
Method Summary
static void setDefaultColors(PropertyManager pm, GraphPanel gp)
          Sets the colors used by this TMStylesheet by reading their names from the property file provided by the PropertyManager pm.
 
Methods inherited from class org.ceryle.graph.GraphStylesheet
getColorProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLOR_ASSOC_OPAQUE

public static Color COLOR_ASSOC_OPAQUE
Since association nodes are usually translucent, this is a default opaque color. It is not modified by external properties.


COLOR_EDGE_TEMPLATE

public static Color COLOR_EDGE_TEMPLATE
The color of an edge used to show the type of an association. Ceryle property: http://purl.org/ceryle/prop/#graph-color-templateEdge.

Constructor Detail

TMStylesheet

public TMStylesheet()
Method Detail

setDefaultColors

public static void setDefaultColors(PropertyManager pm,
                                    GraphPanel gp)
Sets the colors used by this TMStylesheet by reading their names from the property file provided by the PropertyManager pm. This extends the method in GraphStylesheet by providing colors for topic map-related nodes.



The Ceryle Project. Copyright ©2001-2007 Murray Altheim, All Rights Reserved. See LICENSE included with distribution.