Class FatLabel

  extended byjfig.objects.FigBaseobject
      extended byjfig.objects.FigText
          extended byhades.symbols.Label
              extended byhades.symbols.FatLabel
All Implemented Interfaces:
FigDrawable, FigObject, java.io.Serializable

public class FatLabel
extends Label

FatLabel: a bold-face label on a SimObject's symbol

See Also:
Serialized Form

Field Summary
Fields inherited from class hades.symbols.Label
colorSource, textSource
Fields inherited from class jfig.objects.FigText
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
          construct an empty FatLabel.
Method Summary
protected  void build_attribs()
 FigObject copy()
          build a copy of this FigText object.
 boolean initialize(java.lang.String s)
          initialize an Label from a String.
 java.lang.String toString()
          toString() - the usual info method
 void writeAsResource(java.io.PrintWriter ps)
          default implementation of 'writeAsResource'.
Methods inherited from class hades.symbols.Label
mirrorY, paint, setColorSource, setTextSource
Methods inherited from class jfig.objects.FigText
canRotate, createRenderer, getPoints, getText, getTextCursorIndex, initializeCursor, isShowCursor, keyPressed, minDistance_OLD, minDistance, minDistanceEuclid, mirrorX, move, moveCursorTo, paint, paintSave, rebuild, rotate, scale, setColor, setCursor, setFont, setFontSize, setPoints, setText, setTextAlignment, setTrafo, showCursor, symbol_recode, update_bbox, update
Methods inherited from class jfig.objects.FigBaseobject
appendPoint, build_sc_bbox, clonePoints, deletePoint, deselect, get_sc_bbox, getAttributes, getBbox, getComment, getLayer, getMovePointNeighbors, getNearestPoint, getNeighborPoints, getPosition, getSyncRedrawFlag, getTimestamp, getTrafo, insertPoint, isClosed, isSelected, isShowPoints, isVisible, isVisible, manhattan, message, movePoint, numPoints, reset_debug, select, set_debug, setAttributes, setComment, setConsole, setObjectPainter, setSyncRedrawFlag, setVisible, showPoints, supportsPointOps, updateAttributes
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public FatLabel()
construct an empty FatLabel.

Method Detail


protected void build_attribs()
build_attribs in class Label


public boolean initialize(java.lang.String s)
initialize an Label from a String. The String contains either the x and y coordinates and the label String or the x and y coordinates, and alignment index, and the label String: x y label
x y 3 label
The possible alignments are 1 (left), 2 (center), and 3 (right).

Specified by:
initialize in interface FigObject
initialize in class Label


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
writeAsResource in class Label


public FigObject copy()
Description copied from class: FigText
build a copy of this FigText object.

Specified by:
copy in interface FigObject
copy in class Label


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

Specified by:
toString in interface FigObject
toString in class Label