ucar.unidata.ui.drawing
Class ImageGlyph

java.lang.Object
  extended by ucar.unidata.ui.drawing.Glyph
      extended by ucar.unidata.ui.drawing.RectangleGlyph
          extended by ucar.unidata.ui.drawing.ImageGlyph
All Implemented Interfaces:
ImageObserver, Cloneable

public class ImageGlyph
extends RectangleGlyph
implements ImageObserver

Class ImageGlyph

Author:
IDV development team

Field Summary
 
Fields inherited from class ucar.unidata.ui.drawing.RectangleGlyph
ATTR_RECTTYPE, bounds, CIRCLE, FCIRCLE, FRECTANGLE, FROUNDRECT, RECTANGLE, ROUNDRECT, TYPE_CIRCLE, TYPE_RECT, TYPE_RRECT
 
Fields inherited from class ucar.unidata.ui.drawing.Glyph
ATTR_BGCOLOR, ATTR_CHILDREN, ATTR_CLASS, ATTR_COLOR, ATTR_FILL, ATTR_HEIGHT, ATTR_IMAGE, ATTR_LINEWIDTH, ATTR_PARENT, ATTR_PTS, ATTR_STRETCHY, ATTR_TEXT, ATTR_TYPE, ATTR_WIDTH, baseline, H_SEL_WIDTH, highlightColor, idToGlyph, MIN_DISTANCE_TO_STRETCH, PT_CENTER, PT_H_LEFT, PT_H_MIDDLE, PT_H_RIGHT, PT_LL, PT_LM, PT_LR, PT_ML, PT_MM, PT_MR, PT_P1, PT_P2, PT_PREFIX, PT_UL, PT_UM, PT_UR, PT_V_LOWER, PT_V_MIDDLE, PT_V_UPPER, RECTPOINTNAMES, RECTPOINTS, SEL_WIDTH, TAG_GLYPH, underline
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ImageGlyph(int x, int y)
          _more_
ImageGlyph(int x, int y, String url)
          _more_
 
Method Summary
 String getAttrs()
          _more_
 String getStretchPoint(int x, int y)
          _more_
 boolean imageUpdate(Image img, int flags, int x, int y, int width, int height)
          _more_
 void initDone()
          _more_
 void paint(Graphics g, DisplayCanvas c)
          _more_
 void setAttr(String name, String value)
          _more_
 void setImage(Image image)
          _more_
 void setImage(String url)
          _more_
 
Methods inherited from class ucar.unidata.ui.drawing.RectangleGlyph
clone, distance, getBottom, getBounds, getEqualSides, getLeft, getPoint, getPositionAttr, getSymetricReshape, getTop, moveBy, moveTo, setPoints, setSize, setType, stretchTo
 
Methods inherited from class ucar.unidata.ui.drawing.Glyph
boundsChanged, canStretch, distance, doRemove, flipY, getBackground, getBackground, getBeingCreated, getCreateCommand, getCursor, getFilled, getForeground, getId, getLineWidth, getMoveCommand, getPersistent, getPointOnRect, getPointOnRect, getRectPointName, getRepaintBounds, getStretchPoint, getStretchy, getXml, makeAttr, notifyChange, paintHighlight, paintSelection, paintSelectionPoints, pickable, processAttrs, setBackground, setBeingCreated, setFilled, setForeground, setId, setLineWidth, setParent, setStretchy, stretchTo, stretchTo, toRect, transformOutput, transformOutput, transformOutputX, transformOutputY
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageGlyph

public ImageGlyph(int x,
                  int y,
                  String url)
_more_

Parameters:
x -
y -
url -

ImageGlyph

public ImageGlyph(int x,
                  int y)
_more_

Parameters:
x -
y -
Method Detail

initDone

public void initDone()
_more_

Overrides:
initDone in class Glyph

setImage

public void setImage(String url)
_more_

Parameters:
url -

setImage

public void setImage(Image image)
_more_

Parameters:
image -

imageUpdate

public boolean imageUpdate(Image img,
                           int flags,
                           int x,
                           int y,
                           int width,
                           int height)
_more_

Specified by:
imageUpdate in interface ImageObserver
Parameters:
img -
flags -
x -
y -
width -
height -
Returns:
_more_

paint

public void paint(Graphics g,
                  DisplayCanvas c)
_more_

Overrides:
paint in class RectangleGlyph
Parameters:
g -
c -

getStretchPoint

public String getStretchPoint(int x,
                              int y)
_more_

Overrides:
getStretchPoint in class RectangleGlyph
Parameters:
x -
y -
Returns:
_more_

getAttrs

public String getAttrs()
_more_

Overrides:
getAttrs in class Glyph
Returns:
_more_

setAttr

public void setAttr(String name,
                    String value)
_more_

Overrides:
setAttr in class RectangleGlyph
Parameters:
name -
value -