![]() |
Crossfire JXClient, Trunk
|
Implements an Orientation which grows west to east. More...
Public Member Functions | |
OrientationWE () | |
Creates a new instance. More... | |
![]() | |
int | getCur () |
Returns the current value. More... | |
int | getH () |
Returns the height of the highlighted part of the image. More... | |
int | getHeight () |
Returns the total height of the image. More... | |
int | getMax () |
Returns the maximum value. More... | |
int | getMin () |
Returns the minimum value. More... | |
int | getW () |
Returns the width of the highlighted part of the image. More... | |
int | getWidth () |
Returns the total width of the image. More... | |
int | getX () |
Returns the x-coordinate of the highlighted part of the image. More... | |
int | getY () |
Returns the y-coordinate of the highlighted part of the image. More... | |
boolean | isLowImage () |
Returns whether the low image should be shown. More... | |
boolean | isNegativeImage () |
Returns whether the negative image should be shown. More... | |
boolean | isValid () |
Returns whether the gauge's values are valid. More... | |
boolean | setExtends (final int width, final int height) |
Sets the extends of the image. More... | |
void | setHasNegativeImage (final boolean hasNegativeImage) |
Sets whether the gauge can display negative images. More... | |
boolean | setValues (final int cur, final int min, final int max) |
Sets the gauge's values. More... | |
Protected Member Functions | |
void | reCalculate () |
Recalculate the extents of the highlighted image part. More... | |
![]() | |
AbstractOrientation () | |
Creates a new instance. More... | |
void | setExtent (final int x, final int y, final int w, final int h) |
Sets the extent of the highlighted part of the image. More... | |
Additional Inherited Members | |
![]() | |
static int | calculate (final int val, final int max, final int size) |
Returns the fraction. More... | |
Implements an Orientation which grows west to east.
Definition at line 29 of file OrientationWE.java.
com.realtime.crossfire.jxclient.gui.gauge.OrientationWE.OrientationWE | ( | ) |
Creates a new instance.
Definition at line 34 of file OrientationWE.java.
References com.realtime.crossfire.jxclient.gui.gauge.OrientationWE.reCalculate().
|
protected |
Recalculate the extents of the highlighted image part.
Reimplemented from com.realtime.crossfire.jxclient.gui.gauge.AbstractOrientation.
Definition at line 39 of file OrientationWE.java.
References com.realtime.crossfire.jxclient.gui.gauge.AbstractOrientation.calculate(), com.realtime.crossfire.jxclient.gui.gauge.AbstractOrientation.cur, com.realtime.crossfire.jxclient.gui.gauge.AbstractOrientation.getCur(), com.realtime.crossfire.jxclient.gui.gauge.AbstractOrientation.getHeight(), com.realtime.crossfire.jxclient.gui.gauge.AbstractOrientation.getMax(), com.realtime.crossfire.jxclient.gui.gauge.AbstractOrientation.getMin(), com.realtime.crossfire.jxclient.gui.gauge.AbstractOrientation.getWidth(), com.realtime.crossfire.jxclient.gui.gauge.AbstractOrientation.isNegativeImage(), com.realtime.crossfire.jxclient.gui.gauge.AbstractOrientation.min, com.realtime.crossfire.jxclient.gui.gauge.AbstractOrientation.setExtent(), and com.realtime.crossfire.jxclient.gui.gauge.AbstractOrientation.w.
Referenced by com.realtime.crossfire.jxclient.gui.gauge.OrientationWE.OrientationWE().