com.lightdev.app.shtm
Class SyntaxPane.RegExStyle

java.lang.Object
  extended by com.lightdev.app.shtm.SyntaxPane.RegExStyle
Enclosing class:
SyntaxPane

public class SyntaxPane.RegExStyle
extends java.lang.Object

convenience class associating a pattern with a set of attributes


Constructor Summary
SyntaxPane.RegExStyle(java.util.regex.Pattern p, javax.swing.text.AttributeSet a)
          construct a RegExStyle instance
 
Method Summary
 java.util.regex.Pattern getPattern()
          get the Pattern this style is to be applied to
 javax.swing.text.AttributeSet getStyle()
          get the attributes making up this style
 void setPattern(java.util.regex.Pattern p)
          set the Pattern to apply a given set of attributes to
 void setStyle(javax.swing.text.AttributeSet a)
          set the set of attributes to apply to a given Pattern
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyntaxPane.RegExStyle

public SyntaxPane.RegExStyle(java.util.regex.Pattern p,
                             javax.swing.text.AttributeSet a)
construct a RegExStyle instance

Parameters:
p - the Pattern to apply this style to
a - the attributes making up this style
Method Detail

getPattern

public java.util.regex.Pattern getPattern()
get the Pattern this style is to be applied to

Returns:
the Pattern

getStyle

public javax.swing.text.AttributeSet getStyle()
get the attributes making up this style

Returns:
the set of attributes

setPattern

public void setPattern(java.util.regex.Pattern p)
set the Pattern to apply a given set of attributes to

Parameters:
p - the Pattern

setStyle

public void setStyle(javax.swing.text.AttributeSet a)
set the set of attributes to apply to a given Pattern

Parameters:
a - the set of attributes to use