oracle.cabo.ui.laf
Class ScoreImpl
java.lang.Object
|
+--oracle.cabo.ui.laf.Score
|
+--oracle.cabo.ui.laf.ScoreImpl
- public class ScoreImpl
- extends Score
Implementation of Score which provides storage for all component scores.
Constructor Summary |
ScoreImpl(int nameScore, int agentTypeScore, int agentApplicationScore, int agentVersionScore, int agentOSScore, int discriminantScore)
Creates a ScoreImpl object based on the specified component scores. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScoreImpl
public ScoreImpl(int nameScore,
int agentTypeScore,
int agentApplicationScore,
int agentVersionScore,
int agentOSScore,
int discriminantScore)
- Creates a ScoreImpl object based on the specified component scores.
Each component score must be one of the MATCH constants specified above.
-
- Parameters:
nameScore
- The score for the look and feel family name
agentTypeScore
- The score for the Agent type
agentApplicationScore
- The score for the Agent application
agentVersionScore
- The score for the Agent version
agentOSScore
- The score for the Agent operating system
discriminantScore
- A discriminant score that is used to resolve ties between multiple LookAndFeels.
getNameScore
public int getNameScore()
- Returns the score for the look and feel family name.
-
- Overrides:
getNameScore
in class Score
getAgentTypeScore
public int getAgentTypeScore()
- Returns the score for the Agent type.
-
- Overrides:
getAgentTypeScore
in class Score
getAgentApplicationScore
public int getAgentApplicationScore()
- Returns the score for the Agent application.
-
- Overrides:
getAgentApplicationScore
in class Score
getAgentVersionScore
public int getAgentVersionScore()
- Returns the score for the Agent version.
-
- Overrides:
getAgentVersionScore
in class Score
getAgentOSScore
public int getAgentOSScore()
- Returns the score for the Agent operating system.
-
- Overrides:
getAgentOSScore
in class Score
getDiscriminantScore
public int getDiscriminantScore()
- Returns a discriminant score that is used as a tie-breaker when multiple LookAndFeels produce the same score.
-
- Overrides:
getDiscriminantScore
in class Score