DroidDiagram Programmer's Guide
ComponentBase Members
Constructors Fields Methods
 


Represents the abstract base of all components.

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

 Protected Constructors

  Name Description

ComponentBase

Initializes a new instance of the ComponentBase class.

 Protected Fields

  Name Description

eventListenerList

 

 Public Methods

  Name Description

addComponentEventListener

Adds the specified component listener to receive events from this component.

addComponentMouseEventListener

Adds the specified component listener to receive events from this component.

addComponentValidationEventListener

Adds the specified component listener to receive events from this component.

arrangeComponents

Recursively arranges the child components, within the specified space and using the specified graphics for measurement purposes.

contains

Checks if the specified component is contained in the hierarchy defined by the current component.

createOutlinePath

For internal use.

draw

Renders the component in the specified Graphics2D.

find

Returns the component with the specified name within the hierarchy defined by the current component.

getBounds

Gets the calculated bounds of this component relative to its parent.

getChildCount

Gets the number of child components of this component.

getCursor

Gets the cursor to display when the mouse is at the specified position.

getDesiredSize

Gets the desired size of this component in case the width and/or height have not been explicitly specified.

getDocumentBounds

For internal use.

getFocusable

Gets a value indicating whether the component can receive the input focus.

getGridColumn

Gets the index of the grid column this component will be associated with when added to a GridPanel.

getGridRow

Gets the index of the grid row this component will be associated with when added to a GridPanel.

getHeight

Gets the explicit height of this component.

getHorizontalAlignment

Gets the horizontal alignment of this component relative to its parent.

getIsEnabled

Gets a value indicating whether the component is enabled.

getIsFocused

Gets a value indicating whether this component currently holds the input focus.

getIsHitTestVisible

Gets a value indicating whether this component and all its children are subject to hit-testing operations.

getIsInteractive

Gets a value indicating whether this component can be interacted with.

getName

Gets the name of the component.

getParent

Gets the parent component, if the current component is hosted.

getParentHost

For internal use.

getVerticalAlignment

Gets the vertical alignment of this component relative to its parent.

getVisible

Gets a value indicating whether the component is visible.

getWidth

Gets the explicit width of this component.

invalidate

Invalidates the visual appearance of the component.

invalidateLayout

Invalidates the layout of this component and all its children.

onContextChanged

 

onKeyPress

Called when a character key is pressed when this component has the input focus.

onMouseMove

Overloaded.  

onMouseUp

Overloaded.  

onUnitChanged

Invoked when the measure unit of the document containing the component has changed.

readExternal

Implements Externalizable

removeComponentEventListener

Removes the specified component listener to not receive events from this component.

removeComponentMouseEventListener

Removes the specified component listener to not receive events from this component.

removeComponentValidationEventListener

Removes the specified component listener to not receive events from this component.

setBounds

Sets the calculated bounds of this component relative to its parent.

setFocusable

Sets a value indicating whether the component can receive the input focus.

setGridColumn

Sets the index of the grid row this component will be associated with when added to a GridPanel.

setGridRow

Sets the index of the grid row this component will be associated with when added to a GridPanel.

setHeight

Sets the explicit height of this component.

setHorizontalAlignment

Sets the horizontal alignment of this component relative to its parent.

setIsEnabled

Sets a value indicating whether the component is enabled.

setIsFocused

Sets a value indicating whether this component currently holds the input focus.

setIsHitTestVisible

Sets a value indicating whether this component and all its children are subject to hit-testing operations.

setIsInteractive

Sets a value indicating whether this component can be interacted with.

setName

Sets the name of the component.

setParent

For internal use.

setVerticalAlignment

Sets the vertical alignment of this component relative to its parent.

setVisible

Sets a value indicating whether the component is visible.

setWidth

Sets the explicit width of this component.

toDocument

Converts a point from local to document coordinates.

toLocal

Converts a point from document to local coordinates.

toParent

Converts a point from local coordinates to the specified parent's coordinates.

writeExternal

Implements Externalizable

 Protected Methods

  Name Description

loadFromXml

Deserializes the component from an XML element.

onAddedToParent

Invoked when the component is added to a parent component.

onGotFocus

Overloaded.  

onLostFocus

Overloaded.  

onMouseDown

Overloaded.  

onRemovedFromParent

Invoked when the component is removed from a parent component.

onValidated

Raises the Validated event.

onValidating

Raises the Validating event.

onZoomChanged

Invoked when the zoom factor of the document containing the component has changed.

saveToXml

Serializes the component into an XML element.

serializeSubcomponents

Invoked to query whether the underlying component structure should be automatically serialized or serialized by the user.

 See Also

ComponentBase Class
com.mindfusion.diagramming.components Namespace