uavsim.graphics.instruments
Class RectangularFaceplaceDescriptor

java.lang.Object
  extended by uavsim.graphics.instruments.RectangularFaceplaceDescriptor

public class RectangularFaceplaceDescriptor
extends java.lang.Object

Provides a descriptor for the faceplate of rectangular instruments.

Author:
Dan Tappan [15.07.11]

Field Summary
private  java.awt.Color _bodyColor
          the body color
private  ScalerPair _bodyScale
          the size scale of the instrument relative to the canvas size as (width,height)
private  java.awt.Color _outlineColor
          the outline color
private  Scaler _outlineScale
          the width scale of the outline relative to the canvas size
 
Constructor Summary
RectangularFaceplaceDescriptor(ScalerPair bodyScale, java.awt.Color bodyColor, Scaler outlineScale, java.awt.Color outlineColor)
          Creates a rectangular faceplate descriptor.
 
Method Summary
 java.awt.Color getBodyColor()
          Gets the body color.
 ScalerPair getBodyScale()
          Gets the size scale of the instrument relative to the canvas size.
 java.awt.Color getOutlineColor()
          Gets the outline color.
 Scaler getOutlineScale()
          Gets the width scale of the outline relative to the canvas size.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_bodyColor

private final java.awt.Color _bodyColor
the body color


_bodyScale

private final ScalerPair _bodyScale
the size scale of the instrument relative to the canvas size as (width,height)


_outlineColor

private final java.awt.Color _outlineColor
the outline color


_outlineScale

private final Scaler _outlineScale
the width scale of the outline relative to the canvas size

Constructor Detail

RectangularFaceplaceDescriptor

public RectangularFaceplaceDescriptor(ScalerPair bodyScale,
                                      java.awt.Color bodyColor,
                                      Scaler outlineScale,
                                      java.awt.Color outlineColor)
Creates a rectangular faceplate descriptor.

Parameters:
bodyScale - - the size scale of the instrument relative to the canvas size as (width,height)
bodyColor - - the body color
outlineScale - - the width scale of the outline relative to the canvas size
outlineColor - - the outline color
Method Detail

getBodyColor

public java.awt.Color getBodyColor()
Gets the body color.

Returns:
the color

getBodyScale

public ScalerPair getBodyScale()
Gets the size scale of the instrument relative to the canvas size.

Returns:
the scale as (width,height)

getOutlineColor

public java.awt.Color getOutlineColor()
Gets the outline color.

Returns:
the color

getOutlineScale

public Scaler getOutlineScale()
Gets the width scale of the outline relative to the canvas size.

Returns:
the scale.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object