Class Knoten

Implemented Interfaces:
ImageObserver, Runnable, GraphicalElement
Known Direct Subclasses:
Node, NodeRIP

public abstract class Knoten
extends ArchitectureComponent

See Also:
Node, original author Robert Denda, changes made by Didier Gutacker

Field Summary

protected int
NODE_IMAGE
protected Vector
attachedLinks
protected Lock
attachedLinksGuard
protected FontMetrics
fontMetrics
protected boolean
initialized
protected Image
nodeImage
protected int
textHeight
protected MediaTracker
tracker

Fields inherited from class .ArchitectureComponent

DEBUG, absXPos, absYPos, finished, gc, height, id, initialized, marked, net, paintRequested, sizeChangeLock, t, text, wakeUpable, width, xpos, ypos

Constructor Summary

Knoten(int id, SimulationObject net, Graphics gc, int xpos, int ypos, int width, int height)

Method Summary

Vector
getLinks()
void
unmark()

Methods inherited from class .ArchitectureComponent

acquireLocks, atLocation, finishUp, finished, getHeight, getID, getNet, getPositionX, getPositionY, getWidth, imageUpdate, mark, paint, paintRequest, releaseLocks, resume, run, setHeight, setPosition, setWidth, suspend, unmark, wakeUp

Field Details

NODE_IMAGE

protected final int NODE_IMAGE

attachedLinks

protected Vector attachedLinks

attachedLinksGuard

protected Lock attachedLinksGuard

fontMetrics

protected FontMetrics fontMetrics

initialized

protected boolean initialized

nodeImage

protected Image nodeImage

textHeight

protected int textHeight

tracker

protected MediaTracker tracker

Constructor Details

Knoten

public Knoten(int id,
              SimulationObject net,
              Graphics gc,
              int xpos,
              int ypos,
              int width,
              int height)

Method Details

getLinks

public Vector getLinks()

unmark

public void unmark()
Overrides:
unmark in interface ArchitectureComponent