ice.pilots.html4
Interface ExternalCSSBoxAssist


public interface ExternalCSSBoxAssist

This interface defines the semantics for classes wishing to add third party additions to functionality provided by the TextBox and ObjectBox The primary initial use of this interface will be in defining a link correlation between a piece of text or image and the graphical area to which the region was drawn. But that's only one use for this capability.


Method Summary
 void addonImageProcessing(Graphics g, ObjectBox objectBox)
          The ObjectBox will call this method after it is done its paint(g) processing if required by rules in the TextBox.
 void addonTextProcessing(Graphics g, ice.pilots.html4.TextBox textBox, int contentWidth, int contentHeight, int startingX)
          The TextBox will call this method after it is done its paint(g) processing if required by rules in the TextBox.
 

Method Detail

addonTextProcessing

public void addonTextProcessing(Graphics g,
                                ice.pilots.html4.TextBox textBox,
                                int contentWidth,
                                int contentHeight,
                                int startingX)
The TextBox will call this method after it is done its paint(g) processing if required by rules in the TextBox. The implementing class is pretty much free to do as it wishes.

Parameters:
g - The GraphicsContext class or superclass
textBox - The TextBox defining additional parameters relating to the processing
contentWidth - the width of the painted portion of the textbox. If this is less than the width of the containing rectangle, then
startingX - if this parameter is non zero, this is the offset that has to be applied to the transform locally to get the right shape position

addonImageProcessing

public void addonImageProcessing(Graphics g,
                                 ObjectBox objectBox)
The ObjectBox will call this method after it is done its paint(g) processing if required by rules in the TextBox. The implementing class is pretty much free to do as it wishes.

Parameters:
g - The GraphicsContext class or superclass
objectBox - The ObjectBox defining additional parameters relating to the processing