hades.symbols
Class SolderDot

java.lang.Object
  extended byjfig.objects.FigBaseobject
      extended byjfig.objects.FigEllipse
          extended byhades.symbols.SolderDot
All Implemented Interfaces:
FigDrawable, FigObject, java.io.Serializable

public class SolderDot
extends FigEllipse
implements java.io.Serializable

SolderDot: display solder dots on signals in HADES schematics.

This class is realized as a subclass of FigEllipse with specific attributes: layer 15, color blue.

During simulation in 'glow mode' 'a la DIGLOG, the color of SolderDots will correspond to the logical value on its Signal.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class jfig.objects.FigEllipse
 
Fields inherited from class jfig.objects.FigBaseobject
attribs, bbox, comment, debug, painter, printer, sc_bbox, sc_bbox_timestamp, selected, showPoints, syncRedrawFlag, timestamp, trafo, visible, x, y
 
Constructor Summary
SolderDot()
          construct an empty SolderDot.
SolderDot(Signal signal, java.awt.Point position)
           
 
Method Summary
protected  void build_attribs()
           
 Signal getSignal()
          return a reference to the Signal this SolderDot belongs to (if any)
 boolean initialize(java.lang.String s)
          initialize an SolderDot from a String.
 void move(int dx, int dy)
          method stub for the move() method
 void paint(java.awt.Graphics g)
          paint this SolderDot.
 void paint(java.awt.Graphics g, FigTrafo2D trafo)
          paint this object using the specified transformation and Graphics g
 void setColorSource(ColorSource _colorSource)
           
 java.lang.String toString()
          toString() - the usual info method
 void writeAsResource(java.io.PrintWriter ps)
          default implementation of 'writeAsResource'.
 
Methods inherited from class jfig.objects.FigEllipse
appendPoint, canRotate, copy, createRenderer, deletePoint, getCenterPoint, getMovePointNeighbors, getNearestPoint, getNeighborPoints, getPoints, getRadiusPoint, insertPoint, isClosed, minDistance, mirrorX, mirrorY, movePoint, rebuild, rotate, setAttributes, setCenterAndRadius, setFillColor, setFillStyle, setLayer, setLineColor, setLineStyle, setLineWidth, setPoints, setTrafo, supportsPointOps, update
 
Methods inherited from class jfig.objects.FigBaseobject
build_sc_bbox, clonePoints, deselect, get_sc_bbox, getAttributes, getBbox, getComment, getLayer, getPosition, getSyncRedrawFlag, getText, getTimestamp, getTrafo, isSelected, isShowPoints, isVisible, isVisible, keyPressed, manhattan, message, minDistanceEuclid, numPoints, paintSave, reset_debug, scale, select, set_debug, setComment, setConsole, setObjectPainter, setSyncRedrawFlag, setText, setVisible, showPoints, updateAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SolderDot

public SolderDot()
construct an empty SolderDot.


SolderDot

public SolderDot(Signal signal,
                 java.awt.Point position)
Method Detail

getSignal

public Signal getSignal()
return a reference to the Signal this SolderDot belongs to (if any)


initialize

public boolean initialize(java.lang.String s)
initialize an SolderDot from a String. The String contains the coordinats of the center of this solder dot.

Specified by:
initialize in interface FigObject
Overrides:
initialize in class FigBaseobject

build_attribs

protected void build_attribs()

writeAsResource

public void writeAsResource(java.io.PrintWriter ps)
Description copied from class: FigBaseobject
default implementation of 'writeAsResource'. This will write a nearly xfig-compatible version of all basic FigObjects.

Specified by:
writeAsResource in interface FigObject
Overrides:
writeAsResource in class FigBaseobject

move

public void move(int dx,
                 int dy)
Description copied from class: FigBaseobject
method stub for the move() method

Specified by:
move in interface FigObject
Overrides:
move in class FigEllipse

setColorSource

public void setColorSource(ColorSource _colorSource)

paint

public void paint(java.awt.Graphics g)
paint this SolderDot. We first check if a ColorSource is set for us; if so, we retrieve the current line color. Afterwards, we dispatch to super.paint().

Specified by:
paint in interface FigObject
Overrides:
paint in class FigEllipse

paint

public void paint(java.awt.Graphics g,
                  FigTrafo2D trafo)
Description copied from interface: FigDrawable
paint this object using the specified transformation and Graphics g

Specified by:
paint in interface FigObject
Overrides:
paint in class FigBaseobject

toString

public java.lang.String toString()
toString() - the usual info method

Specified by:
toString in interface FigObject
Overrides:
toString in class FigEllipse