uci.gef
Class FigImage
java.lang.Object
|
+--uci.gef.Fig
|
+--uci.gef.FigImage
- public class FigImage
- extends Fig
- implements ImageObserver
Primitive Fig to paint images (such as icons) on a LayerDiagram.
- See Also:
- Serialized Form
|
Field Summary |
protected Image |
_image
The Image being rendered |
protected URL |
_url
The URL of the Image being rendered |
| Fields inherited from class uci.gef.Fig |
_dashes,
_fillColor,
_filled,
_group,
_h,
_layer,
_lineColor,
_lineWidth,
_locked,
_w,
_x,
_y,
BORDER,
DASH_ARRAYS,
DASHED_CHOICES,
MIN_SIZE |
|
Constructor Summary |
FigImage(int x,
int y,
Image i)
Construct a new FigImage w/ the given position and image. |
FigImage(int x,
int y,
int w,
int h,
Image img)
Construct a new FigImage with the given position, size, and Image. |
FigImage(int x,
int y,
URL imageUrl)
Construct a new FigImage w/ the given position and URL. |
|
Method Summary |
void |
createDrag(int anchorX,
int anchorY,
int x,
int y,
int snapX,
int snapY)
|
boolean |
imageUpdate(Image img,
int infoflags,
int x,
int y,
int w,
int h)
|
void |
paint(Graphics g)
Paint this FigImage on the given Graphics. |
| Methods inherited from class uci.gef.Fig |
addPoint,
addPropertyChangeListener,
align,
calcBounds,
center,
classNameAndBounds,
cleanUp,
clone,
connectionPoint,
contains,
contains,
contains,
countCornersContained,
damage,
delete,
dispose,
drawDashedLine,
drawDashedPerimeter,
endTrans,
firePropChange,
firePropChange,
firePropChange,
getBounds,
getClosestPoint,
getDashed,
getDashed01,
getDashedString,
getEnclosedFigs,
getEnclosingFig,
getFillColor,
getFilled,
getFilled01,
getFirstPoint,
getGravityPoints,
getGroup,
getHalfHeight,
getHalfWidth,
getHeight,
getId,
getLastPoint,
getLayer,
getLineColor,
getLineWidth,
getLocation,
getLocked,
getMinimumSize,
getNumPoints,
getOwner,
getPerimeterLength,
getPoints,
getPoints,
getPopUpActions,
getPreferedSize,
getSize,
getTipString,
getTrapRect,
getUseTrapRect,
getWidth,
getX,
getXs,
getY,
getYs,
hit,
insertPoint,
intersects,
isLowerRightResizable,
isMovable,
isReshapable,
isResizable,
isRotatable,
makeSelection,
OK,
pointAlongPerimeter,
postLoad,
postSave,
preSave,
print,
propertyChange,
removePoint,
removePropertyChangeListener,
reorder,
routingRect,
setBounds,
setBounds,
setDashed,
setDashedString,
setEnclosingFig,
setFillColor,
setFilled,
setGroup,
setHeight,
setLayer,
setLineColor,
setLineWidth,
setLocation,
setLocation,
setLocked,
setNumPoints,
setOwner,
setPoints,
setPoints,
setPoints,
setPoints,
setPoints,
setSize,
setSize,
setWidth,
setX,
setXs,
setY,
setYs,
startTrans,
stuffBounds,
stuffPointAlongPerimeter,
translate,
within |
_image
protected transient Image _image
- The Image being rendered
_url
protected URL _url
- The URL of the Image being rendered
FigImage
public FigImage(int x,
int y,
int w,
int h,
Image img)
- Construct a new FigImage with the given position, size, and Image.
FigImage
public FigImage(int x,
int y,
Image i)
- Construct a new FigImage w/ the given position and image.
FigImage
public FigImage(int x,
int y,
URL imageUrl)
- Construct a new FigImage w/ the given position and URL.
imageUpdate
public boolean imageUpdate(Image img,
int infoflags,
int x,
int y,
int w,
int h)
- Specified by:
- imageUpdate in interface ImageObserver
paint
public void paint(Graphics g)
- Paint this FigImage on the given Graphics.
- Overrides:
- paint in class Fig
createDrag
public void createDrag(int anchorX,
int anchorY,
int x,
int y,
int snapX,
int snapY)
- Overrides:
- createDrag in class Fig