public class ViewStaticImage extends ViewStaticElement
RELATIVE_TO_CENTER, RELATIVE_TO_NE, RELATIVE_TO_NORTH, RELATIVE_TO_NW, RELATIVE_TO_SE, RELATIVE_TO_SOUTH, RELATIVE_TO_SW, TILE| Constructor and Description |
|---|
ViewStaticImage(java.awt.Image im,
java.awt.Point pt,
int relativeTo)
Constructs a new ViewStaticImage.
|
ViewStaticImage(java.awt.Image im,
java.awt.Point pt,
int relativeTo,
float transparency)
Constructs a new ViewStaticImage.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
void |
draw(ViewRenderer view,
GraphicsRef gr,
K2DTransform t,
java.awt.Dimension viewSize) |
public ViewStaticImage(java.awt.Image im,
java.awt.Point pt,
int relativeTo,
float transparency)
im - the Image instancept - position relative to the chosen corner of the viewrelativeTo - indicates which corner of the view will be used to calculate the position.transparency - indicates transparency of the static image.public ViewStaticImage(java.awt.Image im,
java.awt.Point pt,
int relativeTo)
im - the Image instancept - position relative to the chosen corner of the viewrelativeTo - indicates which corner of the view will be used to calculate the position.public void draw(ViewRenderer view, GraphicsRef gr, K2DTransform t, java.awt.Dimension viewSize)
draw in class ViewStaticElementpublic java.lang.Object clone()
clone in class java.lang.Object