public class BackgroundImage
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
BackgroundImage(Content image,
float scaleDistance,
float scaleDistanceXStart,
float scaleDistanceYStart,
float scaleDistanceXEnd,
float scaleDistanceYEnd,
float xOrigin,
float yOrigin)
Creates a visible background image.
|
BackgroundImage(Content image,
float scaleDistance,
float scaleDistanceXStart,
float scaleDistanceYStart,
float scaleDistanceXEnd,
float scaleDistanceYEnd,
float xOrigin,
float yOrigin,
boolean visible)
Creates a background image.
|
Modifier and Type | Method and Description |
---|---|
Content |
getImage()
Returns the image content of this background image.
|
float |
getScale()
Returns the scale of this image.
|
static float |
getScale(float scaleDistance,
float scaleDistanceXStart,
float scaleDistanceYStart,
float scaleDistanceXEnd,
float scaleDistanceYEnd)
Returns the scale equal to
scaleDistance divided
by the distance between the points
(scaleDistanceXStart , scaleDistanceYStart )
and (scaleDistanceXEnd , scaleDistanceYEnd ). |
float |
getScaleDistance()
Returns the distance used to compute the scale of this image.
|
float |
getScaleDistanceXEnd()
Returns the abscissa of the end point used to compute
the scale of this image.
|
float |
getScaleDistanceXStart()
Returns the abscissa of the start point used to compute
the scale of this image.
|
float |
getScaleDistanceYEnd()
Returns the ordinate of the end point used to compute
the scale of this image.
|
float |
getScaleDistanceYStart()
Returns the ordinate of the start point used to compute
the scale of this image.
|
float |
getXOrigin()
Returns the origin abscissa of this image.
|
float |
getYOrigin()
Returns the origin ordinate of this image.
|
boolean |
isVisible()
Returns
true if this image is visible in plan. |
public BackgroundImage(Content image, float scaleDistance, float scaleDistanceXStart, float scaleDistanceYStart, float scaleDistanceXEnd, float scaleDistanceYEnd, float xOrigin, float yOrigin)
public BackgroundImage(Content image, float scaleDistance, float scaleDistanceXStart, float scaleDistanceYStart, float scaleDistanceXEnd, float scaleDistanceYEnd, float xOrigin, float yOrigin, boolean visible)
public Content getImage()
public float getScaleDistance()
public float getScaleDistanceXStart()
public float getScaleDistanceYStart()
public float getScaleDistanceXEnd()
public float getScaleDistanceYEnd()
public float getScale()
public static float getScale(float scaleDistance, float scaleDistanceXStart, float scaleDistanceYStart, float scaleDistanceXEnd, float scaleDistanceYEnd)
scaleDistance
divided
by the distance between the points
(scaleDistanceXStart
, scaleDistanceYStart
)
and (scaleDistanceXEnd
, scaleDistanceYEnd
).public float getXOrigin()
public float getYOrigin()
public boolean isVisible()
true
if this image is visible in plan.
© Copyright 2024 Space Mushrooms
Distributed under GNU General Public License