com.japisoft.xmlpad
Interface DocumentColorAccessibility


public interface DocumentColorAccessibility

Here an interface for customizing part of your document color

Version:
1.0
Author:
(c) 2004 JAPISoft / http://www.japisoft.com

Method Summary
 void dispose()
          This is only for inner usage, it mustn't be called by the user
 java.awt.Color getBackgroundColorForPrefix(java.lang.String prefixName)
           
 java.awt.Color getColorForAttribute(java.lang.String attributeName)
           
 java.awt.Color getColorForPrefix(java.lang.String prefixName)
           
 java.awt.Color getColorForTag(java.lang.String tagName)
           
 boolean hasBackgroundColorForPrefix(java.lang.String prefixName)
           
 boolean hasColorForAttribute(java.lang.String attributeName)
           
 boolean hasColorForPrefix(java.lang.String prefixName)
           
 boolean hasColorForTag(java.lang.String tagName)
           
 void setBackgroundColorForPrefix(java.lang.String prefixName, java.awt.Color c)
          Choose a particular background color for a tag prefix.
 void setColorForAttribute(java.lang.String attributeName, java.awt.Color c)
          Choose a particular color for an attribute.
 void setColorForPrefix(java.lang.String prefixName, java.awt.Color c)
          Choose a particular color for a tag prefix.
 void setColorForTag(java.lang.String tagName, java.awt.Color c)
          Define a color for this tagName.
 

Method Detail

setColorForTag

public void setColorForTag(java.lang.String tagName,
                           java.awt.Color c)
Define a color for this tagName. Use a null color for removing it


getColorForTag

public java.awt.Color getColorForTag(java.lang.String tagName)
Returns:
a custom color for this tagName

hasColorForTag

public boolean hasColorForTag(java.lang.String tagName)
Returns:
true if a custom color exists for this tagName

setColorForAttribute

public void setColorForAttribute(java.lang.String attributeName,
                                 java.awt.Color c)
Choose a particular color for an attribute. Use the color null for removing it


getColorForAttribute

public java.awt.Color getColorForAttribute(java.lang.String attributeName)
Returns:
the user custom color for this attribute

hasColorForAttribute

public boolean hasColorForAttribute(java.lang.String attributeName)
Returns:
true if this attribute has a custom color

setColorForPrefix

public void setColorForPrefix(java.lang.String prefixName,
                              java.awt.Color c)
Choose a particular color for a tag prefix. Use the color null for removing it


getColorForPrefix

public java.awt.Color getColorForPrefix(java.lang.String prefixName)
Returns:
a custom color for this prefix name

hasColorForPrefix

public boolean hasColorForPrefix(java.lang.String prefixName)
Returns:
true if a color exist for this prefixName

setBackgroundColorForPrefix

public void setBackgroundColorForPrefix(java.lang.String prefixName,
                                        java.awt.Color c)
Choose a particular background color for a tag prefix. Use the color null for removing it


getBackgroundColorForPrefix

public java.awt.Color getBackgroundColorForPrefix(java.lang.String prefixName)
Returns:
a custom background color for this prefix name

hasBackgroundColorForPrefix

public boolean hasBackgroundColorForPrefix(java.lang.String prefixName)
Returns:
true if a background color exist for this prefixName

dispose

public void dispose()
This is only for inner usage, it mustn't be called by the user



Copyright © 2006 JAPISoft. All Rights Reserved.