Package zleurtor.scanmanager.view
Class SlaveInformation
java.lang.Object
zleurtor.scanmanager.view.SlaveInformation
- All Implemented Interfaces:
Comparable<SlaveInformation>
The model object containing the slave information.
- Author:
- Zleurtor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The default color balance (100%). -
Constructor Summary
ConstructorsConstructorDescriptionSlaveInformation
(String theName, String theIp, Image theThumbnail) Constructs a new slave information with specified information. -
Method Summary
Modifier and TypeMethodDescriptionfinal int
compareTo
(SlaveInformation other) final int[]
Returns the slave color balance.final String
getIp()
Returns the slave IP.final String
getName()
Returns the slave name(usually mac address).final String
Returns the slave options.final String
Returns the slave snapshot file name.final Image
Returns the slave thumbnail image.final String
Returns the slave version.final void
setColorBalance
(int[] newColorBalance) Sets a new slave color balance.final void
setOptions
(String newOptions) Sets new slave options.final void
setSnapshotFilename
(String newSnapshotFilename) Sets a new slave snapshot file name.final void
setThumbnail
(Image theThumbnail) Sets a new slave thumbnail image.final void
setVersion
(String newVersion) Sets new slave version.
-
Field Details
-
DEFAULT_COLOR_BALANCE
public static final int DEFAULT_COLOR_BALANCEThe default color balance (100%).- See Also:
-
-
Constructor Details
-
SlaveInformation
Constructs a new slave information with specified information.- Parameters:
theName
- The slave name.theIp
- The slave IP.theThumbnail
- The slave thumbnail image.
-
-
Method Details
-
getName
Returns the slave name(usually mac address).- Returns:
- The slave name.
-
getVersion
Returns the slave version.- Returns:
- The slave version.
-
setVersion
Sets new slave version.- Parameters:
newVersion
- The new slave version.
-
getIp
Returns the slave IP.- Returns:
- The slave IP.
-
getOptions
Returns the slave options.- Returns:
- The slave options.
-
setOptions
Sets new slave options.- Parameters:
newOptions
- The new slave options.
-
getSnapshotFilename
Returns the slave snapshot file name.- Returns:
- The slave snapshot file name.
-
setSnapshotFilename
Sets a new slave snapshot file name.- Parameters:
newSnapshotFilename
- The new slave snapshot file name.
-
getThumbnail
Returns the slave thumbnail image.- Returns:
- The slave thumbnail image.
-
setThumbnail
Sets a new slave thumbnail image.- Parameters:
theThumbnail
- The new slave thumbnail image.
-
getColorBalance
public final int[] getColorBalance()Returns the slave color balance.- Returns:
- The slave color balance.
-
setColorBalance
public final void setColorBalance(int[] newColorBalance) Sets a new slave color balance.- Parameters:
newColorBalance
- The new slave color balance.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SlaveInformation>
- Throws:
ClassCastException
-