Style Intelligence v12.0

inetsoft.report.filter
Class TextHighlight

java.lang.Object
  extended by inetsoft.report.filter.TextHighlight
All Implemented Interfaces:
Highlight, inetsoft.util.XMLSerializable, Serializable, Cloneable
Direct Known Subclasses:
ColumnHighlight

public class TextHighlight
extends Object
implements Highlight

Text and Textbox HighLight class. This class defines some method of the highlight attribute for Text and TextBox. It is a subclass of Highlight.

See Also:
Serialized Form

Field Summary
protected  Color background
           
protected  ConditionList conditions
           
protected  Color foreground
           
protected  String name
           
protected  Font tFont
           
 
Fields inherited from interface inetsoft.report.filter.Highlight
TABLE, TEXT
 
Constructor Summary
TextHighlight()
           
 
Method Summary
 Object clone()
          Clone the object.
 boolean equals(Object obj)
          Check if equals another object.
 UserVariable[] getAllVariables()
          get all variable from condition
 Color getBackground()
          Get the background.
 ConditionList getConditionGroup()
          Clear the condition.
 Font getFont()
          Get the font.
 Color getForeground()
          Get the foreground.
 String getName()
          Get the name value.
 boolean isConditionEmpty()
          Check if condition is empty.
 boolean isEmpty()
          Check if the highlight is empty.
 void parseXML(Element tag)
          Parse xml tree into this binding object.
 void removeAllConditions()
          Clear the condition.
 void replaceVariables(VariableTable vart)
          replace variable with value user inputed
 void setBackground(Color bGround)
          Set the background.
 void setConditionGroup(ConditionList con)
          Set the condition value.
 void setFont(Font f)
          Set the font.
 void setForeground(Color fGround)
          Set the foreground.
 void setName(String name)
          Set the name value.
 String toString()
          Get the string representation.
 void writeXML(PrintWriter writer)
          Writer a group of Text Hightlight condition attributes to XML.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tFont

protected Font tFont

foreground

protected Color foreground

background

protected Color background

name

protected String name

conditions

protected ConditionList conditions
Constructor Detail

TextHighlight

public TextHighlight()
Method Detail

setFont

public void setFont(Font f)
Set the font.

Specified by:
setFont in interface Highlight
Parameters:
f - Font value;

setForeground

public void setForeground(Color fGround)
Set the foreground.

Specified by:
setForeground in interface Highlight
Parameters:
fGround - color value

setBackground

public void setBackground(Color bGround)
Set the background.

Specified by:
setBackground in interface Highlight
Parameters:
bGround - color value

setConditionGroup

public void setConditionGroup(ConditionList con)
Set the condition value.

Specified by:
setConditionGroup in interface Highlight
Parameters:
con - Vector value

setName

public void setName(String name)
Set the name value.

Specified by:
setName in interface Highlight
Parameters:
name - string value

getFont

public Font getFont()
Get the font.

Specified by:
getFont in interface Highlight

getForeground

public Color getForeground()
Get the foreground.

Specified by:
getForeground in interface Highlight

getBackground

public Color getBackground()
Get the background.

Specified by:
getBackground in interface Highlight

getName

public String getName()
Get the name value.

Specified by:
getName in interface Highlight

isEmpty

public boolean isEmpty()
Check if the highlight is empty.

Specified by:
isEmpty in interface Highlight

isConditionEmpty

public boolean isConditionEmpty()
Check if condition is empty.

Specified by:
isConditionEmpty in interface Highlight

removeAllConditions

public void removeAllConditions()
Clear the condition.

Specified by:
removeAllConditions in interface Highlight

getConditionGroup

public ConditionList getConditionGroup()
Clear the condition.

Specified by:
getConditionGroup in interface Highlight

writeXML

public void writeXML(PrintWriter writer)
Writer a group of Text Hightlight condition attributes to XML.

Specified by:
writeXML in interface Highlight
Specified by:
writeXML in interface inetsoft.util.XMLSerializable

parseXML

public void parseXML(Element tag)
              throws Exception
Parse xml tree into this binding object.

Specified by:
parseXML in interface inetsoft.util.XMLSerializable
Throws:
Exception

getAllVariables

public UserVariable[] getAllVariables()
get all variable from condition

Specified by:
getAllVariables in interface Highlight
Returns:
user variable array

replaceVariables

public void replaceVariables(VariableTable vart)
replace variable with value user inputed

Specified by:
replaceVariables in interface Highlight
Parameters:
vart - variable table

clone

public Object clone()
Clone the object.

Specified by:
clone in interface Highlight
Overrides:
clone in class Object

equals

public boolean equals(Object obj)
Check if equals another object.

Overrides:
equals in class Object

toString

public String toString()
Get the string representation.

Overrides:
toString in class Object

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.