Uses of Class
eu.bandm.tools.message.Message
Package
Description
Utility functions for Swing GUI interaction and for graphics: drawing and coordinate calculation.
Messages and positions in documents,
see the user documentation.
-
Uses of Message in eu.bandm.tools.graficUtils
Modifier and TypeMethodDescriptionstatic <D extends Message>
booleanSwingTools.ask
(JFrame frame, @Opt String windowtitle, int messageType, MessageStore<D> text, String cancelbutton, String okbutton) static <M extends Message>
MessagePrinter.Indenting<M>Vt100.setColors
(MessagePrinter.Indenting<M> mp) static <D extends Message>
voidSwingTools.show
(JFrame frame, @Opt String windowtitle, int messageType, MessageStore<D> text, String buttonText) -
Uses of Message in eu.bandm.tools.message
Modifier and TypeClassDescriptionclass
MessageAsync<M extends Message>
A sub-class ofSingleSender
which lets the drain's receive method run asynchronouously in a separate thread.class
MessageDemux<E extends Enum<E>,
M extends Message> Auxiliary class which concretizesPrimitiveMessageDemux
in so far it calculates a set of enum values for every message it receives, and then calls thePrimitiveMessageDemux.receive(Enum,Message)
method for all these.static class
MessageDemux.All<E extends Enum<E>,
M extends Message> Trivial instantiation ofMessageDemux
which propagates each message to all receivers in the map, as it has been constructed byPrimitiveMessageDemux.setReceiver(Enum,MessageReceiver)
static class
MessageDemux.ByKind<M extends Message>
AMessageDemux
which sorts messages by their kind.class
MessageKindFilter<M extends Message>
A filter which propagates only those messages theMessage.Kind
of which is currently in the selection.class
MessageLevelFilter<M extends Message>
A filter which sends messages only to its sink if their level value is equal to or below a given threshold.class
MessageMapper<M extends Message,
N extends Message> A message receiver which receives a message of one type, and propagates the result of applying a function to this message, which may be of different type.class
MessageMapper<M extends Message,
N extends Message> A message receiver which receives a message of one type, and propagates the result of applying a function to this message, which may be of different type.class
MessagePasser<M extends Message>
Simply passes every message it receives to a single target.class
MessagePrinter<M extends Message>
Prints textual representations of all received messages to an output stream.static class
MessagePrinter.Indenting<M extends Message>
Specialization ofMessagePrinter
with addtional features.interface
MessageReceiver<M extends Message>
Everything which can receive a Message.class
MessageStore<M extends Message>
Storage for a sequence ofMessage
s with dynamic sorting, graphic interfaces and propagation facilities.class
MessageStore_<M extends Message>
Common superclass for the two kinds of message storage,MessageStore
andMessageStoreSorted
.class
MessageStoreSorted<M extends Message>
Storage for a sequence ofMessage
s in order of their arrival.class
MessageStripExceptions<M extends Message>
A filter which strips off all exceptions, or at least the stack traces, for a slimmer appearance of print-outs.class
MessageSync<M extends Message>
Can accept messages from many different parallel threads.class
MessageTee<M extends Message>
Re-sends the message received sequentially to a multitude of current drains. The identical message object is sent to all receivers, so in most use cases it should be treated read-only by subsequent processing in the drains.class
MessageThrower<M extends Message>
"Throws" each message it receives after wrapping it into aMessageException
.class
PrimitiveMessageDemux<E extends Enum<E>,
M extends Message> Auxiliary class administrating an enumeration type and a map from this type to optionalMessageReceiver
s.class
SingleSender<M extends Message>
Common superclass of all which send messages to one single drain.class
SwingMessageField<M extends Message>
A one-line display for messages to be included in a Swing based GUI.Modifier and TypeClassDescriptionclass
A minimal selection of message data which is useful in practice.static class
Log message with not more informative content than "I am still alive".Modifier and TypeFieldDescriptionstatic final MessageReceiver<Message>
MessageCounter.noErrors
Discards all messages but throws an AssertionError if an error is encountered.MessagePrinter.Indenting.timingKey
Translating the correspondingMessage.Kind.logStart
andMessage.Kind.logEnd
messages to the same key.Modifier and TypeMethodDescriptionstatic <E extends Enum<E>,
M extends Message>
MessageDemux<E,M> Delivers a trivial instantiation ofMessageDemux
, seeMessageDemux.All
.static <M extends Message>
MessageDemux<Message.Kind,M> MessageDemux.byKind()
factory method forMessageDemux.ByKind
static <M extends Message,
N extends Message>
Function<MessageReceiver<N>,MessageReceiver<M>> Delivers a function to apply on a message receiver for type "N" to get a message receiver for type "M", when a function is given which maps the messages the other way round.static <M extends Message,
N extends Message>
Function<MessageReceiver<N>,MessageReceiver<M>> Delivers a function to apply on a message receiver for type "N" to get a message receiver for type "M", when a function is given which maps the messages the other way round.Modifier and TypeMethodDescriptionPatterns.mKind
(Message.Kind kind) Matches any Message with the given kind.Patterns.mKind
(Pattern<? super Message.Kind> kind) Matches the kind of the Message.Modifier and TypeMethodDescriptionprotected EnumSet<Message.Kind>
MessageDemux.ByKind.getOutputTags
(Message m) void
Advance one or two counters, depending on the message's kind.void
Does nothing with the received message.void
Sets state toTrafficLight.State.red
if the received message is critcal, otherwise to yellow, if it is not already red.ModifierConstructorDescriptionprotected
Creates a clone, but with newer date,MessageException
(Message message) EvidentModifierConstructorDescriptionWhen using this constructor, you have to re-define the methodMessageCatcher.code()
.MessageCatcher
(Runnable c, MessageReceiver<Message> rec) Evident.