JavaDocs API Reference
Online JavaDocsโ
The complete JavaDocs for Brobot are available online:
- Version 1.1.0 - Latest version documentation
- Version 1.0.7 - Previous stable release
Quick Linksโ
- API Overview - Main documentation page
- All Classes - Complete class listing
- Package Tree - Package hierarchy
Maven Central Integrationโ
Version 1.1.0 is now available on Maven Central! ๐
When you include Brobot in your project via Maven or Gradle, your IDE will automatically download and display the JavaDocs:
Mavenโ
<dependency>
<groupId>io.github.jspinak</groupId>
<artifactId>brobot</artifactId>
<version>1.1.0</version>
</dependency>
Gradleโ
implementation 'io.github.jspinak:brobot:1.1.0'
Previous Versionsโ
Previous versions remain available:
implementation 'io.github.jspinak:brobot:1.0.7' // Previous stable release
Generating JavaDocs Locallyโ
To generate JavaDocs locally from the source code:
# Clone the repository
git clone https://github.com/jspinak/brobot.git
cd brobot
# Generate JavaDocs
./gradlew :library:javadoc
# The JavaDocs will be generated in:
# library/build/docs/javadoc/
To generate JavaDocs with versioning (for GitHub Pages deployment):
# Generate versioned JavaDocs
./gradlew :library:javadocForGitHubPages
# Create latest symlink
./gradlew :library:createLatestSymlink
# The JavaDocs will be in:
# library/build/docs/javadoc/1.1.0/
# library/build/docs/javadoc/latest/
Key API Packagesโ
Core Packagesโ
- io.github.jspinak.brobot.actions - Action execution and management
- io.github.jspinak.brobot.datatypes - Core data types (State, StateImage, etc.)
- io.github.jspinak.brobot.config - Configuration and settings
Action Optionsโ
- io.github.jspinak.brobot.actions.options - Action configuration classes
PatternFindOptions
- Configure pattern matchingClickOptions
- Configure click actionsTypeOptions
- Configure typing actionsDragOptions
- Configure drag operations
State Managementโ
- io.github.jspinak.brobot.state - State machine implementation
- io.github.jspinak.brobot.transitions - State transitions
Image Processingโ
- io.github.jspinak.brobot.imageUtils - Image utilities and processing
- io.github.jspinak.brobot.mockObservations - Mock mode for testing
Important Classesโ
Action Classesโ
Action
- Main class for performing actionsActionBuilder
- Fluent API for building complex actionsConditionalActionChain
- Chain conditional actions
Data Typesโ
State
- Represents an application stateStateImage
- Pattern or image to findRegion
- Screen region definitionLocation
- Screen location/pointMatches
- Pattern match results
Configurationโ
FrameworkSettings
- Global framework settingsBrobotSettings
- Application-specific settings
IDE Integrationโ
Most modern IDEs will automatically:
- Download JavaDocs when you add Brobot as a dependency
- Show documentation on hover
- Provide auto-completion with documentation
- Allow navigation to source code (if sources are attached)
IntelliJ IDEAโ
JavaDocs are automatically downloaded and displayed. Press Ctrl+Q
(Windows/Linux) or F1
(Mac) to view quick documentation.
Eclipseโ
JavaDocs are downloaded with the dependency. Hover over any Brobot class or method to see documentation.
VS Codeโ
With Java extensions installed, JavaDocs will be displayed on hover and in auto-completion.
Contributing to Documentationโ
To improve the JavaDocs:
- Add JavaDoc comments to your code:
/**
* Performs a click action on the specified StateImage.
*
* @param stateImage The image pattern to click on
* @return ActionResult containing the result of the action
* @throws ActionException if the action fails
*/
public ActionResult click(StateImage stateImage) {
// Implementation
}
-
Follow JavaDoc conventions:
- Use
@param
for parameters - Use
@return
for return values - Use
@throws
for exceptions - Use
@see
for related classes/methods - Use
@since
for version information
- Use
-
Generate and review locally before submitting PR:
./gradlew :library:javadoc
# Open library/build/docs/javadoc/index.html in browser
Version Historyโ
- 1.1.0 - Latest release (September 2025)
- Enhanced API documentation with comprehensive Javadoc coverage
- Cross-platform build compatibility (Windows, Linux, macOS)
- Improved CI/CD pipeline with full test coverage
- Fixed Javadoc generation issues across all platforms
- 1.0.7 - Previous stable release
- Earlier versions available on Maven Central
For detailed release notes, see the GitHub Releases page.