Skip to content

Commit

Permalink
add javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
xzel23 committed Jul 18, 2024
1 parent 97687c7 commit 1c8f1c2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public void refresh() {

/**
* Disposes the PinBoardSkin instance.
* Stops the refresher and disposes the super class.
* Stops the refresher and disposes the superclass.
*/
public void dispose() {
if (getSkin() instanceof PinBoardSkin skin) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,26 +149,57 @@ public String toString() {
return iconIdentifier.get();
}

/**
* Returns the icon identifier.
* The icon identifier is a String value that represents the unique identifier of the icon.
*
* @return the icon identifier
*/
public String getIconIdentifier() {
return iconIdentifier.getValue();
}

/**
* Sets the identifier of the icon to be displayed in the IconView.
*
* @param icon the identifier of the icon
*/
public void setIconIdentifier(String icon) {
iconIdentifier.set(icon);
}

/**
* Returns the color of the icon.
*
* @return the color of the icon
*/
public Paint getIconColor() {
return iconColor.getValue();
}

/**
* Sets the color of the icon.
*
* @param color the color to set
*/
public void setIconColor(Paint color) {
iconColor.set(color);
}

/**
* Get the size of the icon.
*
* @return the size of the icon in pixels
*/
public int getIconSize() {
return iconSize.get();
}

/**
* Sets the size of the icon.
*
* @param size the new size of the icon
*/
public void setIconSize(int size) {
iconSize.set(size);
}
Expand Down

0 comments on commit 1c8f1c2

Please sign in to comment.