public class GaugeLayout
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static int |
DIAL_HEIGHT |
protected static int |
DIAL_MIN_GAP_PLOTAREA_GAUGEFRAME |
protected static int |
GAP_GAUGEFRAME_LOWERLABELFRAME |
protected static int |
GAP_GAUGESET_BOTTOM |
protected static int |
GAP_GAUGESET_LEFT |
protected static int |
GAP_GAUGESET_RIGHT |
protected static int |
GAP_GAUGESET_TOP |
protected static int |
GAP_TITLESEPARATOR_GAUGEFRAME |
protected static int |
GAP_TOPLABEL_TITLESEPARATOR |
protected static int |
GENERIC_GAUGESET_GAP |
protected static int |
GENERIC_HORIZONTAL_GAP |
protected static int |
GENERIC_VERTICAL_GAP |
protected static int |
LED_SIZE |
protected static int |
MAX_STATUSMETER_SIZE |
protected static int |
MIN_STATUSMETER_SIZE |
protected static int |
MIN_VERTICAL_STATUSMETER_LENGTH |
protected static double |
STATUSMETER_INDICATOR_HEIGHT_RATIO |
protected static int |
STATUSMETER_INDICATOR_MIN_ROUNDED_SIZE |
protected static int |
STATUSMETER_MIN_ROUNDED_SIZE |
Modifier | Constructor and Description |
---|---|
protected |
GaugeLayout(java.awt.Dimension imageSize)
Constructor that stores the size of this gauge.
|
Modifier and Type | Method and Description |
---|---|
protected int |
getGapHeight(int defaultGapSize)
Returns the specified gap size scaled for the given image size.
|
protected int |
getGapSize(int defaultGapSize)
Returns the specified gap size scaled for the given image size.
|
protected int |
getGapWidth(int defaultGapSize)
Returns the specified gap size scaled for the given image size.
|
protected static int |
getStatusmeterIndicatorSize(int statusmeterSize)
Returns the indicator size for a given statusmeter size.
|
protected boolean |
isScalingUsed()
Returns true if the size constants should be scaled.
|
protected void |
setScalingUsed(boolean useScaling)
Specifies whether the size constants should be scaled.
|
protected static final int GENERIC_HORIZONTAL_GAP
protected static final int GENERIC_VERTICAL_GAP
protected static final int GENERIC_GAUGESET_GAP
protected static final int GAP_GAUGESET_LEFT
protected static final int GAP_GAUGESET_RIGHT
protected static final int GAP_GAUGESET_TOP
protected static final int GAP_GAUGESET_BOTTOM
protected static final int GAP_TOPLABEL_TITLESEPARATOR
protected static final int GAP_TITLESEPARATOR_GAUGEFRAME
protected static final int GAP_GAUGEFRAME_LOWERLABELFRAME
protected static final int DIAL_MIN_GAP_PLOTAREA_GAUGEFRAME
protected static final int DIAL_HEIGHT
protected static final int MAX_STATUSMETER_SIZE
protected static final int MIN_STATUSMETER_SIZE
protected static final int MIN_VERTICAL_STATUSMETER_LENGTH
protected static final int LED_SIZE
protected static final double STATUSMETER_INDICATOR_HEIGHT_RATIO
protected static final int STATUSMETER_MIN_ROUNDED_SIZE
protected static final int STATUSMETER_INDICATOR_MIN_ROUNDED_SIZE
protected GaugeLayout(java.awt.Dimension imageSize)
imageSize
- this size of this individual gaugeprotected void setScalingUsed(boolean useScaling)
useScaling
- true if the size constants should be scaled to image sizeprotected boolean isScalingUsed()
protected int getGapWidth(int defaultGapSize)
defaultGapSize
- the size of the gap at default image sizeprotected int getGapHeight(int defaultGapSize)
defaultGapSize
- the size of the gap at default image sizeprotected int getGapSize(int defaultGapSize)
defaultGapSize
- the size of the gap at default image sizeprotected static int getStatusmeterIndicatorSize(int statusmeterSize)
statusmeterSize
- the height of a horizontal statusmeter or the width
of a vertical statusmeter