org.eml.MMAX2.gui.display
Class MarkableLevelRenderer

java.lang.Object
  extended by org.eml.MMAX2.gui.display.MarkableLevelRenderer

public class MarkableLevelRenderer
extends java.lang.Object


Constructor Summary
MarkableLevelRenderer(MarkableLevel _level, java.lang.String _customizationFileName)
          Creates new MarkableLayerRenderer
 
Method Summary
 void destroyDependentComponents()
           
 javax.swing.text.SimpleAttributeSet getAttributesForMarkable(Markable _markable)
          This method returns a SimpleAttributeSet with the attributes that Markable _markable has depending on its attributes.
 java.awt.Color getBackgroundColor()
           
 boolean getBackgroundIsTransparent()
           
 int getCustomizationCount()
           
 java.awt.Color getForegroundColor()
           
 boolean getForegroundIsTransparent()
           
 java.awt.Color getHandleColor()
           
 boolean getIsBold()
           
 boolean getIsItalic()
           
 boolean getIsStrikethrough()
           
 boolean getIsSubscript()
           
 boolean getIsSuperscript()
           
 boolean getIsUnderline()
           
static javax.swing.text.SimpleAttributeSet mergeAttributes(javax.swing.text.SimpleAttributeSet superiorSet, javax.swing.text.SimpleAttributeSet inferiorSet)
           
 void removeHandlesAtDisplayPositions(java.lang.Integer[] positions)
           
 void render(Markable markable, int mode)
           
 void setBackgroundColor(java.awt.Color _color)
           
 void setForegroundColor(java.awt.Color _color)
           
 void setHandleColor(java.awt.Color _color)
           
 void setIsBold(boolean status)
           
 void setIsItalic(boolean status)
           
 void setIsStrikethrough(boolean status)
           
 void setIsSubscript(boolean status)
           
 void setIsSuperscript(boolean status)
           
 void setIsUnderline(boolean status)
           
 void updateSimpleMarkableCustomizations(boolean status)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkableLevelRenderer

public MarkableLevelRenderer(MarkableLevel _level,
                             java.lang.String _customizationFileName)
Creates new MarkableLayerRenderer

Method Detail

destroyDependentComponents

public final void destroyDependentComponents()

getCustomizationCount

public final int getCustomizationCount()

updateSimpleMarkableCustomizations

public final void updateSimpleMarkableCustomizations(boolean status)

getHandleColor

public final java.awt.Color getHandleColor()

render

public final void render(Markable markable,
                         int mode)

removeHandlesAtDisplayPositions

public final void removeHandlesAtDisplayPositions(java.lang.Integer[] positions)

getAttributesForMarkable

public final javax.swing.text.SimpleAttributeSet getAttributesForMarkable(Markable _markable)
This method returns a SimpleAttributeSet with the attributes that Markable _markable has depending on its attributes. The method uses a (potentially empty) set of SimpleMarkableCustomization objects.


mergeAttributes

public static final javax.swing.text.SimpleAttributeSet mergeAttributes(javax.swing.text.SimpleAttributeSet superiorSet,
                                                                        javax.swing.text.SimpleAttributeSet inferiorSet)

setHandleColor

public final void setHandleColor(java.awt.Color _color)

setBackgroundColor

public final void setBackgroundColor(java.awt.Color _color)

getBackgroundColor

public final java.awt.Color getBackgroundColor()

setForegroundColor

public final void setForegroundColor(java.awt.Color _color)

getForegroundColor

public final java.awt.Color getForegroundColor()

getForegroundIsTransparent

public final boolean getForegroundIsTransparent()

getBackgroundIsTransparent

public final boolean getBackgroundIsTransparent()

getIsBold

public final boolean getIsBold()

setIsBold

public final void setIsBold(boolean status)

getIsItalic

public final boolean getIsItalic()

setIsItalic

public final void setIsItalic(boolean status)

getIsUnderline

public final boolean getIsUnderline()

setIsUnderline

public final void setIsUnderline(boolean status)

getIsSubscript

public final boolean getIsSubscript()

setIsSubscript

public final void setIsSubscript(boolean status)

getIsSuperscript

public final boolean getIsSuperscript()

setIsSuperscript

public final void setIsSuperscript(boolean status)

getIsStrikethrough

public final boolean getIsStrikethrough()

setIsStrikethrough

public final void setIsStrikethrough(boolean status)