Home | Trees | Index | Help |
|
---|
Package wx :: Package lib :: Package agw :: Module speedmeter :: Class SpeedMeter |
|
object
--+ |Object
--+ |EvtHandler
--+ |Window
--+ |BufferedWindow
--+ | SpeedMeter
Method Summary | |
---|---|
Default class constructor. | |
Used internally. | |
Draws everything on the empty bitmap. | |
Specify wheter or not you wish to draw the external (thicker) arc. | |
Gets the range of existence for SpeedMeter. | |
Gets the external arc colour. | |
Gets the direction of advancing SpeedMeter value. | |
Gets the partial filler colour. | |
Gets the first gradient colour (near the ticks). | |
Gets the hand (arrow indicator) colour. | |
Sets the style for the hand (arrow indicator). | |
Used internally. | |
Gets the colours for the intervals. | |
Gets the intervals for SpeedMeter. | |
Gets the icon to be drawn near the center of SpeedMeter. | |
Used internally. | |
Gets the text to be drawn near the center of SpeedMeter. | |
Gets the colour for the text in the middle. | |
Gets the font for the text in the middle. | |
Gets the number of secondary (intermediate) ticks. | |
Gets the first gradient colour (near the center). | |
Gets the hand's shadow colour. | |
Gets the background colour outside the SpeedMeter control. | |
Returns a list of strings and a list of integers containing the styles. | |
Gets the current value for SpeedMeter. | |
Gets the ticks for SpeedMeter intervals (main ticks string values). | |
Gets the ticks colour. | |
Gets the ticks font. | |
Handles the mouse events. | |
Sets the range of existence for SpeedMeter. | |
Sets the external arc colour (thicker line). | |
Sets the direction of advancing SpeedMeter value. | |
Sets the partial filler colour. | |
Sets the first gradient colour (near the ticks). | |
Sets the hand (arrow indicator) colour. | |
Sets the style for the hand (arrow indicator). | |
Sets the colours for the intervals. | |
Sets the intervals for SpeedMeter (main ticks numeric values). | |
Sets the icon to be drawn near the center of SpeedMeter. | |
Sets the text to be drawn near the center of SpeedMeter. | |
Sets the colour for the text in the middle. | |
Sets the font for the text in the middle. | |
Sets the number of secondary (intermediate) ticks. | |
Sets the second gradient colour (near the center). | |
Sets the hand's shadow colour. | |
Sets the background colour outside the SpeedMeter control. | |
Sets the current value for SpeedMeter. | |
Sets the ticks for SpeedMeter intervals (main ticks string values). | |
Sets the ticks colour. | |
Sets the ticks font. |
Property Summary |
---|
Instance Method Details |
---|
__init__(self,
parent,
id=-1,
pos=wx.Point(-1, -1),
size=wx.Size(-1, -1),
extrastyle=8,
bufferedstyle=1,
mousestyle=0)
|
CircleCoords(self, radius, angle, centerX, centerY)Used internally. |
Draw(self, dc)Draws everything on the empty bitmap. Here all the chosen styles are applied.
|
DrawExternalArc(self, draw=True)Specify wheter or not you wish to draw the external (thicker) arc. |
GetAngleRange(self)Gets the range of existence for SpeedMeter. The returned values are in radians. |
GetArcColour(self)Gets the external arc colour. |
GetDirection(self)Gets the direction of advancing SpeedMeter value. |
GetFillerColour(self)Gets the partial filler colour. |
GetFirstGradientColour(self)Gets the first gradient colour (near the ticks). |
GetHandColour(self)Gets the hand (arrow indicator) colour. |
GetHandStyle(self)Sets the style for the hand (arrow indicator). |
GetIntersection(self, current, intervals)Used internally. |
GetIntervalColours(self)Gets the colours for the intervals. |
GetIntervals(self)Gets the intervals for SpeedMeter. |
GetMiddleIcon(self)Gets the icon to be drawn near the center of SpeedMeter. |
GetMiddleIconDimens(self)Used internally. |
GetMiddleText(self)Gets the text to be drawn near the center of SpeedMeter. |
GetMiddleTextColour(self)Gets the colour for the text in the middle. |
GetMiddleTextFont(self)Gets the font for the text in the middle. |
GetNumberOfSecondaryTicks(self)Gets the number of secondary (intermediate) ticks. |
GetSecondGradientColour(self)Gets the first gradient colour (near the center). |
GetShadowColour(self)Gets the hand's shadow colour. |
GetSpeedBackground(self)Gets the background colour outside the SpeedMeter control. |
GetSpeedStyle(self)Returns a list of strings and a list of integers containing the styles. |
GetSpeedValue(self)Gets the current value for SpeedMeter. |
GetTicks(self)Gets the ticks for SpeedMeter intervals (main ticks string values). |
GetTicksColour(self)Gets the ticks colour. |
GetTicksFont(self)Gets the ticks font. |
OnMouseMotion(self, event)Handles the mouse events. Here only left clicks/drags are involved. Should SpeedMeter have something more? |
SetAngleRange(self, start=0, end=3.1415926535897931)Sets the range of existence for SpeedMeter. This values must be specifiend in radians. |
SetArcColour(self, colour=None)Sets the external arc colour (thicker line). |
SetDirection(self, direction=None)Sets the direction of advancing SpeedMeter value. Specifying "advance" will move the hand in clock-wise direction (like normal car speed control), while using "reverse" will move it counterclock-wise direction. |
SetFillerColour(self, colour=None)Sets the partial filler colour. A circle corona near the ticks will be filled with this colour, from the starting value to the current value of SpeedMeter. |
SetFirstGradientColour(self, colour=None)Sets the first gradient colour (near the ticks). |
SetHandColour(self, colour=None)Sets the hand (arrow indicator) colour. |
SetHandStyle(self, style=None)Sets the style for the hand (arrow indicator). By specifying "Hand" SpeedMeter will draw a polygon that simulates the car speed control indicator. Using "Arrow" will force SpeedMeter to draw a simple arrow. |
SetIntervalColours(self, colours=None)Sets the colours for the intervals. Every intervals (circle sector) should have a colour. |
SetIntervals(self, intervals=None)Sets the intervals for SpeedMeter (main ticks numeric values). |
SetMiddleIcon(self, icon)Sets the icon to be drawn near the center of SpeedMeter. |
SetMiddleText(self, text=None)Sets the text to be drawn near the center of SpeedMeter. |
SetMiddleTextColour(self, colour=None)Sets the colour for the text in the middle. |
SetMiddleTextFont(self, font=None)Sets the font for the text in the middle. |
SetNumberOfSecondaryTicks(self, ticknum=None)Sets the number of secondary (intermediate) ticks. |
SetSecondGradientColour(self, colour=None)Sets the second gradient colour (near the center). |
SetShadowColour(self, colour=None)Sets the hand's shadow colour. |
SetSpeedBackground(self, colour=None)Sets the background colour outside the SpeedMeter control. |
SetSpeedValue(self, value=None)Sets the current value for SpeedMeter. |
SetTicks(self, ticks=None)Sets the ticks for SpeedMeter intervals (main ticks string values). |
SetTicksColour(self, colour=None)Sets the ticks colour. |
SetTicksFont(self, font=None)Sets the ticks font. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Mon Feb 16 12:53:51 2009 | http://epydoc.sf.net |