1 /*
2 * Copyright 2006 Markku Saarela
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing,
11 * software distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13 * either express or implied.
14 * See the License for the specific language governing permissions and limitations under the License.
15 */
16 package net.sourceforge.jivalo.editor.syntax;
17
18 import javax.swing.text.MutableAttributeSet;
19
20 /**
21 * @author <a href="mailto:ivalo@iki.fi">Markku Saarela</a>
22 *
23 */
24 public abstract class JIvaloStyle
25 {
26
27 protected Object value;
28
29 /**
30 * @param type
31 * @param value
32 */
33 public JIvaloStyle( Object value )
34 {
35 super();
36 this.value = value;
37 }
38
39 public abstract void apply( MutableAttributeSet attrs );
40
41 public String toString()
42 {
43 return this.value.toString();
44 }
45
46 }