MindFusion.Java Package Programmer's Guide
SpinnerComponent Members
Constructors Fields Methods
 


Represents a spin edit component.

The following tables list the members exposed by the SpinnerComponent type.

 Public Constructors

  Name Description

SpinnerComponent

Initializes a new instance of the SpinnerComponent class.

 Protected Fields

  Name Description

eventListenerList

  (Inherited from ComponentBase.)

 Public Methods

  Name Description

accept

ComponentBase.accept override. (Inherited from ContentComponent.)

addChild

Implements AddChild.addChild (Inherited from ContentComponent.)

addComponentEventListener

Adds the specified component listener to receive events from this component. (Inherited from ComponentBase.)

addComponentMouseEventListener

Adds the specified component listener to receive events from this component. (Inherited from ComponentBase.)

addComponentValidationEventListener

Adds the specified component listener to receive events from this component. (Inherited from ComponentBase.)

addSpinnerComponentListener

Registers an event listener.

arrangeComponents

ComponentBase.arrangeComponents override. (Inherited from ContentComponent.)

confirmValidating

Confirms validation by raising the Validating event. (Inherited from ComponentBase.)

contains

Checks if the specified component is contained in the hierarchy defined by the current component. (Inherited from ComponentBase.)

createOutlinePath

For internal use. (Inherited from ComponentBase.)

draw

ComponentBase.draw override. (Inherited from ContentComponent.)

find

Returns the component with the specified name within the hierarchy defined by the current component. (Inherited from ComponentBase.)

getBackground

Gets the brush used to fill the background of the spinner.

getBorder

Gets the pen used to draw the border of the spinner.

getBounds

Gets the calculated bounds of this component relative to its parent. (Inherited from ComponentBase.)

getButtonBrush

Gets the brush of the spinner's buttons.

getButtonBrushHovered

Gets the background brush of the spinner's buttons when they are pointed with the mouse.

getButtonBrushPressed

Gets the background brush of the spinner's buttons when they are pressed.

getButtonContentColor

Gets the color of the content of the spinner's buttons.

getButtonPen

Gets the border pen of the spinner's buttons.

getButtonPenHovered

Gets the border pen of the spinner's buttons when they are pointed with the mouse.

getButtonPenPressed

Gets the border pen of the spinner's buttons when they are pressed.

getChildCount

ComponentBase.getChildCount override. (Inherited from ContentComponent.)

getContent

Gets the content of this component. (Inherited from ContentComponent.)

getCursor

Gets the cursor to display when the mouse is at the specified position. (Inherited from ComponentBase.)

getDesiredSize

ComponentBase.getDesiredSize override. (Inherited from ContentComponent.)

getDocumentBounds

For internal use. (Inherited from ComponentBase.)

getFocusable

Gets a value indicating whether the component can receive the input focus. (Inherited from ComponentBase.)

getFont

Gets the font of the spinner's text.

getGridColumn

Gets the index of the grid column this component will be associated with when added to a GridPanel. (Inherited from ComponentBase.)

getGridRow

Gets the index of the grid row this component will be associated with when added to a GridPanel. (Inherited from ComponentBase.)

getHeight

Gets the explicit height of this component. (Inherited from ComponentBase.)

getHorizontalAlignment

Gets the horizontal alignment of this component relative to its parent. (Inherited from ComponentBase.)

getIsEnabled

Gets a value indicating whether the component is enabled. (Inherited from ComponentBase.)

getIsFocused

Gets a value indicating whether this component currently holds the input focus. (Inherited from ComponentBase.)

getIsHitTestVisible

Gets a value indicating whether this component and all its children are subject to hit-testing operations. (Inherited from ComponentBase.)

getIsInteractive

Gets a value indicating whether this component can be interacted with. (Inherited from ComponentBase.)

getLargeStep

Gets the amount to add or subtract from the spinner value when the page up or page down keys are pressed while the spinner has focus.

getMaximum

Gets the maximum value of the spinner.

getMinimum

Gets the minimum value of the spinner.

getName

Gets the name of the component. (Inherited from ComponentBase.)

getPadding

Gets the padding around this component's content. (Inherited from ContentComponent.)

getParent

Gets the parent component, if the current component is hosted. (Inherited from ComponentBase.)

getParentHost

For internal use. (Inherited from ComponentBase.)

getSmallStep

Gets the amount to add or subtract from the spinner value when the adjustment buttons are clicked or when the up or down arrow keys are pressed while the spinner has focus.

getTextColor

Gets the color of the spinner's text.

getValue

Gets the value displayed in the spinner.

getVerticalAlignment

Gets the vertical alignment of this component relative to its parent. (Inherited from ComponentBase.)

getVisible

Gets a value indicating whether the component is visible. (Inherited from ComponentBase.)

getWidth

Gets the explicit width of this component. (Inherited from ComponentBase.)

invalidate

Invalidates the visual appearance of the component. (Inherited from ComponentBase.)

invalidateLayout

Invalidates the layout of this component and all its children. (Inherited from ComponentBase.)

isSpinning

Gets a value indicating whether the spinner should revolve when the value passes beyond the Minimum or Maximum value.

onContextChanged

  (Inherited from ComponentBase.)

onKeyDown

  (Inherited from ComponentBase.)

onKeyPress

Called when a character key is pressed when this component has the input focus. (Inherited from ComponentBase.)

onKeyUp

  (Inherited from ComponentBase.)

onMouseMove

Overloaded.   (Inherited from ComponentBase.)

onMouseUp

Overloaded.   (Inherited from ComponentBase.)

onUnitChanged

Invoked when the measure unit of the document containing the component has changed. (Inherited from ComponentBase.)

raiseValidated

  (Inherited from ComponentBase.)

readExternal

ContentComponent.readExternal override.

removeComponentEventListener

Removes the specified component listener to not receive events from this component. (Inherited from ComponentBase.)

removeComponentMouseEventListener

Removes the specified component listener to not receive events from this component. (Inherited from ComponentBase.)

removeComponentValidationEventListener

Removes the specified component listener to not receive events from this component. (Inherited from ComponentBase.)

removeSpinnerComponentListener

Unregisters an event listener.

setBackground

Sets the brush used to fill the background of the spinner.

setBorder

Sets the pen used to draw the border of the spinner.

setBounds

Sets the calculated bounds of this component relative to its parent. (Inherited from ComponentBase.)

setButtonBrush

Sets the brush of the spinner's buttons.

setButtonBrushHovered

Sets the background brush of the spinner's buttons when they are pointed with the mouse.

setButtonBrushPressed

Sets the background brush of the spinner's buttons when they are pressed.

setButtonContentColor

Sets the color of the content of the spinner's buttons.

setButtonPen

Sets the border pen of the spinner's buttons.

setButtonPenHovered

Sets the border pen of the spinner's buttons when they are pointed with the mouse.

setButtonPenPressed

Sets the border pen of the spinner's buttons when they are pressed.

setContent

Sets the content of this component. (Inherited from ContentComponent.)

setFocusable

Sets a value indicating whether the component can receive the input focus. (Inherited from ComponentBase.)

setFont

Sets the font of the spinner's text.

setGridColumn

Sets the index of the grid row this component will be associated with when added to a GridPanel. (Inherited from ComponentBase.)

setGridRow

Sets the index of the grid row this component will be associated with when added to a GridPanel. (Inherited from ComponentBase.)

setHeight

Sets the explicit height of this component. (Inherited from ComponentBase.)

setHorizontalAlignment

Sets the horizontal alignment of this component relative to its parent. (Inherited from ComponentBase.)

setIsEnabled

Sets a value indicating whether the component is enabled. (Inherited from ComponentBase.)

setIsFocused

Sets a value indicating whether this component currently holds the input focus. (Inherited from ComponentBase.)

setIsHitTestVisible

Sets a value indicating whether this component and all its children are subject to hit-testing operations. (Inherited from ComponentBase.)

setIsInteractive

Sets a value indicating whether this component can be interacted with. (Inherited from ComponentBase.)

setIsSpinning

Sets a value indicating whether the spinner should revolve when the value passes beyond the Minimum or Maximum value.

setLargeStep

Sets the amount to add or subtract from the spinner value when the page up or page down keys are pressed while the spinner has focus.

setMaximum

Sets the maximum value of the spinner.

setMinimum

Sets the minimum value of the spinner.

setName

Sets the name of the component. (Inherited from ComponentBase.)

setPadding

Sets the padding around this component's content. (Inherited from ContentComponent.)

setParent

For internal use. (Inherited from ComponentBase.)

setSmallStep

Sets the amount to add or subtract from the spinner value when the adjustment buttons are clicked or when the up or down arrow keys are pressed while the spinner has focus.

setTextColor

Sets the color of the spinner's text.

setValue

Sets the value displayed in the spinner.

setVerticalAlignment

Sets the vertical alignment of this component relative to its parent. (Inherited from ComponentBase.)

setVisible

Sets a value indicating whether the component is visible. (Inherited from ComponentBase.)

setWidth

Sets the explicit width of this component. (Inherited from ComponentBase.)

toDocument

Converts a point from local to document coordinates. (Inherited from ComponentBase.)

toLocal

Converts a point from document to local coordinates. (Inherited from ComponentBase.)

toParent

Converts a point from local coordinates to the specified parent's coordinates. (Inherited from ComponentBase.)

writeExternal

ContentComponent.writeExternal override.

 Protected Methods

  Name Description

getThickness

Gets the space around the component's content. This space includes padding by default but can be subsequently adjusted as necessary by the deriving classes. (Inherited from ContentComponent.)

loadFromJson

Deserializes the component from a JsonObject.

loadFromXml

ContentComponent.loadFromXml override.

onAddedToParent

Invoked when the component is added to a parent component. (Inherited from ComponentBase.)

onGotFocus

Overloaded.   (Inherited from ComponentBase.)

onLostFocus

Overloaded.   (Inherited from ComponentBase.)

onMouseDown

Overloaded.   (Inherited from ComponentBase.)

onRemovedFromParent

Invoked when the component is removed from a parent component. (Inherited from ComponentBase.)

onValidated

Raises the Validated event. (Inherited from ComponentBase.)

onValidating

Raises the Validating event. (Inherited from ComponentBase.)

onZoomChanged

Invoked when the zoom factor of the document containing the component has changed. (Inherited from ComponentBase.)

saveToJson

Serializes the component into a JsonObject

saveToXml

ContentComponent.saveToXml override.

serializeSubcomponents

ComponentBase.serializeSubcomponents override.

 See Also

SpinnerComponent Class
com.mindfusion.diagramming.components Namespace