MiG InfoCom AB
even register the editor from the command line as long as it is in the
class path.
The default AShape used to visualize demo can be exchanged if the
Theme Editor is started from the command line.
Utility Classes – things you may find useful
To defer code duplication a lot of functionality is lifted out to utility
classes. DateUtil is such a class. DateRange is another. Here is
a list over some of the classes available to the user of the MiG
Calendar Component.
• DateUtil. Static methods for different kinds of date
manipulation. Calendar rounding to boundaries (e.g. day or
hour), flexible and fast duration string formatting and week bases
helper functions are some of the things this class can do.
• GfxUtil. Contains a lot of geometry calculation methods, mostly
based on Rectangle or Rectangle2D. Color manipulation,
lots of string drawing methods, image and texture blending and
improved image loading are examples of what this class provides.
• DateRange. This is a class, or rather class hierarchy, used
extensively throughout the MiG Calendar component, but it has
uses outside communicating with the component. It encapsulates a
start and end time and a lot of operations on that period. Iterating
over it at specified multiples of a boundary is one example. It exists
both as a truly immutable and a mutable version as well as it
implement both a mutable and immutable interfaces.
• Misc. graphics classes. UIColor, SlicedImage,
XtdTexturePaint and ArrowButton are some of the
usable classes in the util.gfx package.
• Base64 encoder/decoder. The fastest Java bases base64 encoder
and decoder is included. It is developed by MiG InfoCom AB and
Open Sourced. It can be downloaded from
http://migbase64.sourceforge.net where there also are some
performance comparison charts.
• IO. The util.io.IOUtil class adds support for aggregating
XML delegates (java.beans.PersistenceDelegate)
used for saving and loading unsupported object types to XML with
the standard 1.4+ XMLEncoder and XMLDecoder. If you want
to add a object type of your own and that type doesn't follow the
MiG Calendar Tutorial Page 23 / 24
Comentários a estes Manuais