net.claribole.zgrviewer.dot
Class Style

java.lang.Object
  extended bynet.claribole.zgrviewer.dot.Style

public class Style
extends java.lang.Object

Specifies a node or edge style. It can be one of the predefined style or a new one, which can have attributes

Author:
Eric Mounhem

Constructor Summary
Style()
           
 
Method Summary
 boolean getStyle(int s)
          Get the style of a node
 void setStyle(int style, boolean value)
          Set the style of a node
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Style

public Style()
Method Detail

setStyle

public void setStyle(int style,
                     boolean value)
Set the style of a node

Parameters:
style - one of the following:
  • DASHED
  • DOTTED
  • SOLID
  • INVIS
  • BOLD
  • FILLED
  • DIAGONALS
  • ROUNDED
value - value you want to apply to a style

getStyle

public boolean getStyle(int s)
Get the style of a node

Parameters:
s - One of the following style:
  • DASHED
  • DOTTED
  • SOLID
  • INVIS
  • BOLD
  • FILLED
  • DIAGONALS
  • ROUNDED
Returns:
State of a style (activated or not)

toString

public java.lang.String toString()
See Also:
Object.toString()


Copyright © 2004-2005 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.