com.realtime.crossfire.jxclient.gui.gauge
Interface Orientation

All Known Implementing Classes:
AbstractOrientation, OrientationEW, OrientationNS, OrientationSN, OrientationWE

public interface Orientation

Interface for orientation images.


Method Summary
 int getH()
          Returns the height of the highlighted part of the image.
 int getW()
          Returns the width of the highlighted part of the image.
 int getX()
          Returns the x-coordinate of the highlighted part of the image.
 int getY()
          Returns the y-coordinate of the highlighted part of the image.
 boolean isNegativeImage()
          Returns whether the negative image should be shown.
 boolean isValid()
          Returns whether the gauge's values are valid.
 void setExtends(int width, int height)
          Sets the extends of the image.
 void setHasNegativeImage(boolean hasNegativeImage)
          Sets whether the gauge can display negative images.
 boolean setValues(int cur, int min, int max)
          Sets the gauge's values.
 

Method Detail

getH

int getH()
Returns the height of the highlighted part of the image.

Returns:
the height

getW

int getW()
Returns the width of the highlighted part of the image.

Returns:
the width

getX

int getX()
Returns the x-coordinate of the highlighted part of the image.

Returns:
the x-coordinate

getY

int getY()
Returns the y-coordinate of the highlighted part of the image.

Returns:
the y-coordinate

isNegativeImage

boolean isNegativeImage()
Returns whether the negative image should be shown.

Returns:
whether the negative image should be shown

isValid

boolean isValid()
Returns whether the gauge's values are valid.

Returns:
whether the values are valid

setExtends

void setExtends(int width,
                int height)
Sets the extends of the image.

Parameters:
width - the width
height - the height

setHasNegativeImage

void setHasNegativeImage(boolean hasNegativeImage)
Sets whether the gauge can display negative images. By default negative images are not supported.

Parameters:
hasNegativeImage - whether the gauge can display negative images

setValues

boolean setValues(int cur,
                  int min,
                  int max)
Sets the gauge's values.

Parameters:
cur - the current value
min - the minimum value
max - the maximum value
Returns:
whether the values have been updated