Kafenio.editor 0.8.5

de.xeinfach.kafenio.component
Class SyntaxPane.RegExStyle

java.lang.Object
  extended byde.xeinfach.kafenio.component.SyntaxPane.RegExStyle
Enclosing class:
SyntaxPane

public class SyntaxPane.RegExStyle
extends java.lang.Object

internal convenience class associating a pattern with a set of attributes


Constructor Summary
SyntaxPane.RegExStyle(RE aPattern, javax.swing.text.AttributeSet anAttributeSet)
          construct a RegExStyle instance
 
Method Summary
 RE 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(RE aPattern)
          set the Pattern to apply a given set of attributes to
 void setStyle(javax.swing.text.AttributeSet anAttributeSet)
          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(RE aPattern,
                             javax.swing.text.AttributeSet anAttributeSet)
construct a RegExStyle instance

Parameters:
aPattern - the Pattern to apply this style to
anAttributeSet - the attributes making up this style
Method Detail

getPattern

public RE 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(RE aPattern)
set the Pattern to apply a given set of attributes to

Parameters:
aPattern - the Pattern

setStyle

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

Parameters:
anAttributeSet - the set of attributes to use

Kafenio.editor 0.8.5

Copyright © 2003-2004 by Karsten Pawlik. All Rights Reserved. Published under the Lesser General Public License (LGPL)