public abstract class Block extends Object implements org.marid.itf.Named, Serializable, org.marid.logging.LogSupport, BuildTrigger
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Block.BlockProxy |
class |
Block.In |
class |
Block.Out |
org.marid.logging.LogSupport.Log| Modifier and Type | Field and Description |
|---|---|
protected String |
id |
protected Set<EventListener> |
listeners |
LOGGERS| Constructor and Description |
|---|
Block() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventListener(EventListener listener) |
abstract BlockComponent |
createComponent() |
<L extends EventListener> |
fireEvent(Class<L> t,
Consumer<L> consumer) |
String |
getId() |
List<Block.In> |
getInputs() |
List<Block.Out> |
getOutputs() |
ImageIcon |
getVisualRepresentation() |
ImageIcon |
getVisualRepresentation(int width,
int height) |
void |
removeListener(EventListener listener) |
void |
reset() |
String |
toString() |
void |
transfer(Collection<BlockLink> links) |
protected Object |
writeReplace() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompareTo, getNameconfig, fine, finer, finest, info, log, log, logger, severe, severe, warning, warningafterBuildprotected String id
protected final Set<EventListener> listeners
public String getId()
public void addEventListener(EventListener listener)
public void removeListener(EventListener listener)
public <L extends EventListener> void fireEvent(Class<L> t, Consumer<L> consumer)
public void transfer(Collection<BlockLink> links)
public ImageIcon getVisualRepresentation()
public ImageIcon getVisualRepresentation(int width, int height)
public abstract BlockComponent createComponent()
protected Object writeReplace() throws ObjectStreamException
ObjectStreamExceptionpublic void reset()
Copyright © 2012–2015 MARID software development group. All rights reserved.