Alpha developer can develop a new figure class in case it is necessary
to create a different one from the figure provided by BTT (StateFigure).
This can be done via a new attribute called “figure” in the extension
point
com.ibm.btt.tools.transaction.dominate.palette for
states.
Figure 1.
To do that, there are three different options, as in Figure 2. They are:
- Extend from StateFigure (see PrinterFigure in
the picture). This option should be chosen in case small changes are
necessary from the BTT figure.
- Create a new class, subclass of draw2D Shape class.
It must implement IStateFigure interface. (See EllipseFigure in
the picture),
- Extend from AbstractStateFigure, that is
an abstract class provided by BTT with default implementation of IStateFigure methods.
(See RhombusFigure in the picture)
Please refer to Related Class of Figure customization as shownFigure 2 for
more details.