hades.symbols
Class ImageObject

java.lang.Object
  extended byjfig.objects.FigBaseobject
      extended byjfig.objects.FigRectangle
          extended byjfig.objects.FigImage
              extended byhades.symbols.ImageObject
All Implemented Interfaces:
ConsoleMessage, FigDrawable, FigObject, java.awt.image.ImageObserver, java.io.Serializable

public class ImageObject
extends FigImage
implements java.io.Serializable, ConsoleMessage

ImageObject: use Images directly in SimObject symbols. This class is realized as a subclass of FigImage.

See Also:
Serialized Form

Field Summary
 boolean debug
           
 
Fields inherited from class jfig.objects.FigImage
aspectRatio, filetype, FIT_TO_HEIGHT, FIT_TO_WIDTH, KEEP_SELECTED_SIZE, name, pathname, theCanvas, theImage, theObserver
 
Fields inherited from class jfig.objects.FigRectangle
pixel_width, radius, renderer, use_rounded_corners
 
Fields inherited from class jfig.objects.FigBaseobject
attribs, bbox, comment, painter, printer, sc_bbox, sc_bbox_timestamp, selected, showPoints, syncRedrawFlag, timestamp, trafo, visible, x, y
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ImageObject()
          construct an empty ImageObject.
 
Method Summary
 void consoleMessage(java.lang.String msg)
           
 FigObject copy()
          make a copy of this object and return the reference to the copy.
 void getImage(java.lang.String resourcename)
          load the image (a new image) from the given Java 1.1 resourcename
 boolean initialize(java.lang.String s)
          initialize an ImageObject 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 jfig.objects.FigImage
createRenderer, getImage, getImageFromResource, getImageName, imageUpdate, paint, paint, rebuild, setFilenameAndType, setImage, setImage, setImageAndFilename, setImageName, setObjectPainter, setRedraw, updateAspectRatio
 
Methods inherited from class jfig.objects.FigRectangle
appendPoint, canRotate, deletePoint, getMovePointNeighbors, getNearestPoint, getNeighborPoints, getPoints, insertPoint, isClosed, isRounded, minDistance, minDistanceEuclid, mirrorX, mirrorY, move, movePoint, paintSave, setAttributes, setFillColor, setFillStyle, setLayer, setLineColor, setLineStyle, setLineWidth, setPoints, 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, numPoints, reset_debug, rotate, scale, select, set_debug, setComment, setConsole, setSyncRedrawFlag, setText, setTrafo, setVisible, showPoints, updateAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

debug

public boolean debug
Constructor Detail

ImageObject

public ImageObject()
construct an empty ImageObject.

Method Detail

initialize

public boolean initialize(java.lang.String s)
initialize an ImageObject from a String. The String contains the position of the left-top corner of this ImageObject compound in the Symbol, and the Java resource name of the image data file: xl yt xr yb /hades/gui/images/hades-icon.gif This method returns true once all required data has been read.

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

getImage

public void getImage(java.lang.String resourcename)
load the image (a new image) from the given Java 1.1 resourcename


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

copy

public FigObject copy()
Description copied from class: FigRectangle
make a copy of this object and return the reference to the copy.

Specified by:
copy in interface FigObject
Overrides:
copy in class FigImage

consoleMessage

public void consoleMessage(java.lang.String msg)
Specified by:
consoleMessage in interface ConsoleMessage

toString

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

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