net.sourceforge.squirrel_sql.plugins.syntax
Class SyntaxStyle

java.lang.Object
  extended by net.sourceforge.squirrel_sql.plugins.syntax.SyntaxStyle
All Implemented Interfaces:
Serializable

public class SyntaxStyle
extends Object
implements Serializable

Defines the attributes for a syntax style.

Author:
Colin Bell
See Also:
Serialized Form

Constructor Summary
SyntaxStyle()
          Default ctor.
SyntaxStyle(SyntaxStyle rhs)
          Copy ctor.
 
Method Summary
 int getBackgroundRGB()
          Retrieve the RGB value for the background color.
 String getName()
          Retrieve the name of this style.
 int getTextRGB()
          Retrieve the RGB value for the text color.
 boolean isBold()
          Is this a bold style?
 boolean isItalic()
          Is this an italic style?
 void setBackgroundRGB(int value)
          Set the RGB value for the background color.
 void setBold(boolean value)
          Specify whether this is a bold style.
 void setItalic(boolean value)
          Specify whether this is an italic style.
 void setName(String value)
          Set the name of this style.
 void setTextRGB(int value)
          Set the RGB value for the text color.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyntaxStyle

public SyntaxStyle()
Default ctor.


SyntaxStyle

public SyntaxStyle(SyntaxStyle rhs)
Copy ctor.

Method Detail

getName

public String getName()
Retrieve the name of this style.

Returns:
The name of this style.

setName

public void setName(String value)
Set the name of this style.


isItalic

public boolean isItalic()
Is this an italic style?

Returns:
true if this is an italic style.

setItalic

public void setItalic(boolean value)
Specify whether this is an italic style.

Parameters:
value - true if this is an italic style.

isBold

public boolean isBold()
Is this a bold style?

Returns:
true if this is a bold style.

setBold

public void setBold(boolean value)
Specify whether this is a bold style.

Parameters:
value - true if this is a bold style.

getTextRGB

public int getTextRGB()
Retrieve the RGB value for the text color.

Returns:
RGB value for text color.

setTextRGB

public void setTextRGB(int value)
Set the RGB value for the text color.

Parameters:
value - The RGB value for text color.

getBackgroundRGB

public int getBackgroundRGB()
Retrieve the RGB value for the background color.

Returns:
RGB value for text color.

setBackgroundRGB

public void setBackgroundRGB(int value)
Set the RGB value for the background color.

Parameters:
value - The RGB value for text color.


Copyright © 2001-2011. All Rights Reserved.