Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
core
Commits
4ce0bb1f
Commit
4ce0bb1f
authored
5 years ago
by
Piotr Gawron
Browse files
Options
Downloads
Patches
Plain Diff
class allowing properties changed to properly reflect object properties
parent
f7c0f018
No related branches found
No related tags found
1 merge request
!768
Resolve "Custom images as overlay levels or background"
Pipeline
#10168
passed
5 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
converter-CellDesigner/src/main/java/lcsb/mapviewer/converter/model/celldesigner/annotation/NoteField.java
+192
-194
192 additions, 194 deletions
...er/converter/model/celldesigner/annotation/NoteField.java
with
192 additions
and
194 deletions
converter-CellDesigner/src/main/java/lcsb/mapviewer/converter/model/celldesigner/annotation/NoteField.java
+
192
−
194
View file @
4ce0bb1f
package
lcsb.mapviewer.converter.model.celldesigner.annotation
;
package
lcsb.mapviewer.converter.model.celldesigner.annotation
;
import
lcsb.mapviewer.converter.model.celldesigner.structure.CellDesignerElement
;
import
lcsb.mapviewer.converter.model.celldesigner.structure.CellDesignerSpecies
;
import
lcsb.mapviewer.model.map.BioEntity
;
import
lcsb.mapviewer.model.map.BioEntity
;
import
lcsb.mapviewer.model.map.Drawable
;
import
lcsb.mapviewer.model.map.Drawable
;
import
lcsb.mapviewer.model.map.MiriamType
;
import
lcsb.mapviewer.model.map.MiriamType
;
...
@@ -16,197 +14,197 @@ import lcsb.mapviewer.model.map.species.Species;
...
@@ -16,197 +14,197 @@ import lcsb.mapviewer.model.map.species.Species;
*
*
*/
*/
public
enum
NoteField
{
public
enum
NoteField
{
/**
/**
* List of {@link MiriamType#HGNC} identifiers.
* List of {@link MiriamType#HGNC} identifiers.
*/
*/
HGNC
(
"HGNC_ID"
,
BioEntity
.
class
,
MiriamType
.
HGNC
),
HGNC
(
"HGNC_ID"
,
BioEntity
.
class
,
MiriamType
.
HGNC
),
/**
/**
* List of {@link MiriamType#REFSEQ} identifiers.
* List of {@link MiriamType#REFSEQ} identifiers.
*/
*/
REFSEQ
(
"RefSeq_ID"
,
BioEntity
.
class
,
MiriamType
.
REFSEQ
),
REFSEQ
(
"RefSeq_ID"
,
BioEntity
.
class
,
MiriamType
.
REFSEQ
),
/**
/**
* List of {@link MiriamType#ENTREZ} identifiers.
* List of {@link MiriamType#ENTREZ} identifiers.
*/
*/
ENTREZ
(
"EntrezGene_ID"
,
BioEntity
.
class
,
MiriamType
.
ENTREZ
),
ENTREZ
(
"EntrezGene_ID"
,
BioEntity
.
class
,
MiriamType
.
ENTREZ
),
/**
/**
* List of {@link MiriamType#REACTOME} identifiers.
* List of {@link MiriamType#REACTOME} identifiers.
*/
*/
REACTOME
(
"Reactome_ID"
,
BioEntity
.
class
,
MiriamType
.
REACTOME
),
REACTOME
(
"Reactome_ID"
,
BioEntity
.
class
,
MiriamType
.
REACTOME
),
/**
/**
* List of {@link MiriamType#PUBMED} identifiers.
* List of {@link MiriamType#PUBMED} identifiers.
*/
*/
PUBMED
(
"Pubmed_ID"
,
BioEntity
.
class
,
MiriamType
.
PUBMED
),
PUBMED
(
"Pubmed_ID"
,
BioEntity
.
class
,
MiriamType
.
PUBMED
),
/**
/**
* List of {@link MiriamType#KEGG_GENES} identifiers.
* List of {@link MiriamType#KEGG_GENES} identifiers.
*/
*/
KEGG_GENES
(
"KEGG_ID"
,
BioEntity
.
class
,
MiriamType
.
KEGG_GENES
),
KEGG_GENES
(
"KEGG_ID"
,
BioEntity
.
class
,
MiriamType
.
KEGG_GENES
),
/**
/**
* List of {@link MiriamType#PANTHER} identifiers.
* List of {@link MiriamType#PANTHER} identifiers.
*/
*/
PANTHER
(
"PANTHER"
,
BioEntity
.
class
,
MiriamType
.
PANTHER
),
PANTHER
(
"PANTHER"
,
BioEntity
.
class
,
MiriamType
.
PANTHER
),
/**
/**
* {@link Element#symbol}.
* {@link Element#symbol}.
*/
*/
SYMBOL
(
"Symbol"
,
CellDesignerElement
.
class
,
null
),
SYMBOL
(
"Symbol"
,
BioEntity
.
class
,
null
),
/**
/**
* {@link Element#fullName}.
* {@link Element#fullName}.
*/
*/
NAME
(
"Name"
,
CellDesignerElement
.
class
,
null
),
NAME
(
"Name"
,
BioEntity
.
class
,
null
),
/**
/**
* {@link Element#notes} or {@link Reaction#notes} .
* {@link Element#notes} or {@link Reaction#notes} .
*/
*/
DESCRIPTION
(
"Description"
,
BioEntity
.
class
,
null
),
DESCRIPTION
(
"Description"
,
BioEntity
.
class
,
null
),
/**
/**
* {@link Element#formerSymbols}.
* {@link Element#formerSymbols}.
*/
*/
PREVIOUS_SYMBOLS
(
"Previous Symbols"
,
CellDesigner
Element
.
class
,
null
),
PREVIOUS_SYMBOLS
(
"Previous Symbols"
,
Element
.
class
,
null
),
/**
/**
* {@link Element#synonyms} or {@link Reaction#synonyms}.
* {@link Element#synonyms} or {@link Reaction#synonyms}.
*/
*/
SYNONYMS
(
"Synonyms"
,
BioEntity
.
class
,
null
),
SYNONYMS
(
"Synonyms"
,
BioEntity
.
class
,
null
),
/**
/**
* {@link Element#abbreviation} or {@link Reaction#abbreviation}.
* {@link Element#abbreviation} or {@link Reaction#abbreviation}.
*/
*/
ABBREVIATION
(
"Abbreviation"
,
BioEntity
.
class
,
null
),
ABBREVIATION
(
"Abbreviation"
,
BioEntity
.
class
,
null
),
/**
/**
* {@link Reaction#formula}.
* {@link Reaction#formula}.
*/
*/
FORMULA
(
"Formula"
,
Reaction
.
class
,
null
),
FORMULA
(
"Formula"
,
Reaction
.
class
,
null
),
/**
/**
* {@link Reaction#mechanicalConfidenceScore}.
* {@link Reaction#mechanicalConfidenceScore}.
*/
*/
MECHANICAL_CONFIDENCE_SCORE
(
"MechanicalConfidenceScore"
,
Reaction
.
class
,
null
),
MECHANICAL_CONFIDENCE_SCORE
(
"MechanicalConfidenceScore"
,
Reaction
.
class
,
null
),
/**
/**
* {@link Reaction#lowerBound}.
* {@link Reaction#lowerBound}.
*/
*/
LOWER_BOUND
(
"LowerBound"
,
Reaction
.
class
,
null
),
LOWER_BOUND
(
"LowerBound"
,
Reaction
.
class
,
null
),
/**
/**
* {@link Reaction#upperBound}.
* {@link Reaction#upperBound}.
*/
*/
UPPER_BOUND
(
"UpperBound"
,
Reaction
.
class
,
null
),
UPPER_BOUND
(
"UpperBound"
,
Reaction
.
class
,
null
),
/**
/**
* {@link Reaction#subsystem}.
* {@link Reaction#subsystem}.
*/
*/
SUBSYSTEM
(
"Subsystem"
,
Reaction
.
class
,
null
),
SUBSYSTEM
(
"Subsystem"
,
Reaction
.
class
,
null
),
/**
/**
* {@link Reaction#geneProteinReaction}.
* {@link Reaction#geneProteinReaction}.
*/
*/
GENE_PROTEIN_REACTION
(
"GeneProteinReaction"
,
Reaction
.
class
,
null
),
GENE_PROTEIN_REACTION
(
"GeneProteinReaction"
,
Reaction
.
class
,
null
),
/**
/**
* {@link Element#formula}.
* {@link Element#formula}.
*/
*/
CHARGED_FORMULA
(
"ChargedFormula"
,
CellDesigner
Element
.
class
,
null
),
CHARGED_FORMULA
(
"ChargedFormula"
,
Element
.
class
,
null
),
/**
/**
* {@link Species#charge}.
* {@link Species#charge}.
*/
*/
CHARGE
(
"Charge"
,
CellDesigner
Species
.
class
,
null
),
CHARGE
(
"Charge"
,
Species
.
class
,
null
),
/**
/**
* {@link Element#getSemanticZoomLevelVisibility()}.
* {@link Element#getSemanticZoomLevelVisibility()}.
*/
*/
SEMANTIC_ZOOM_LEVEL_VISIBILITY
(
"SemanticZoomLevelVisibility"
,
BioEntity
.
class
,
null
),
SEMANTIC_ZOOM_LEVEL_VISIBILITY
(
"SemanticZoomLevelVisibility"
,
BioEntity
.
class
,
null
),
/**
/**
* {@link Element#getSemanticZoomLevelVisibility()}.
* {@link Element#getSemanticZoomLevelVisibility()}.
*/
*/
TRANSPARENCY_ZOOM_LEVEL_VISIBILITY
(
"SemanticZoomLevelTransparency"
,
Element
.
class
,
null
),
TRANSPARENCY_ZOOM_LEVEL_VISIBILITY
(
"SemanticZoomLevelTransparency"
,
Element
.
class
,
null
),
/**
/**
* {@link Element#getSemanticZoomLevelVisibility()}.
* {@link Element#getSemanticZoomLevelVisibility()}.
*/
*/
@Deprecated
@Deprecated
TRANSPARENCY_ZOOM_LEVEL_VISIBILITY_OLD
(
"TransparencyZoomLevelVisibility"
,
Element
.
class
,
null
),
TRANSPARENCY_ZOOM_LEVEL_VISIBILITY_OLD
(
"TransparencyZoomLevelVisibility"
,
Element
.
class
,
null
),
@ImportOnly
@ImportOnly
Z_INDEX
(
"Z-Index"
,
Drawable
.
class
,
null
),
Z_INDEX
(
"Z-Index"
,
Drawable
.
class
,
null
),
;
;
/**
/**
* Name used in the notes to distinguish fields.
* Name used in the notes to distinguish fields.
*/
*/
private
String
commonName
;
private
String
commonName
;
/**
/**
* What object class can have this field.
* What object class can have this field.
*/
*/
private
Class
<?>
clazz
;
private
Class
<?
extends
Drawable
>
clazz
;
/**
/**
* What {@link MiriamType} is associated with the field.
* What {@link MiriamType} is associated with the field.
*/
*/
private
MiriamType
miriamType
;
private
MiriamType
miriamType
;
/**
/**
* Default constructor.
* Default constructor.
*
*
* @param name
* @param name
* {@link #commonName}
* {@link #commonName}
* @param clazz
* @param clazz
* {@link #clazz}
* {@link #clazz}
*/
*/
NoteField
(
String
name
,
Class
<?>
clazz
)
{
NoteField
(
String
name
,
Class
<?
extends
Drawable
>
clazz
)
{
this
.
commonName
=
name
;
this
.
commonName
=
name
;
this
.
clazz
=
clazz
;
this
.
clazz
=
clazz
;
}
}
/**
/**
* Default constructor.
* Default constructor.
*
*
* @param name
* @param name
* {@link #commonName}
* {@link #commonName}
* @param clazz
* @param clazz
* {@link #clazz}
* {@link #clazz}
* @param type
* @param type
* {@link #miriamType}
* {@link #miriamType}
*/
*/
NoteField
(
String
name
,
Class
<?>
clazz
,
MiriamType
type
)
{
NoteField
(
String
name
,
Class
<?
extends
Drawable
>
clazz
,
MiriamType
type
)
{
this
(
name
,
clazz
);
this
(
name
,
clazz
);
this
.
miriamType
=
type
;
this
.
miriamType
=
type
;
}
}
/**
/**
* @return the miriamType
* @return the miriamType
* @see #miriamType
* @see #miriamType
*/
*/
public
MiriamType
getMiriamType
()
{
public
MiriamType
getMiriamType
()
{
return
miriamType
;
return
miriamType
;
}
}
/**
/**
* @return the commonName
* @return the commonName
* @see #commonName
* @see #commonName
*/
*/
public
String
getCommonName
()
{
public
String
getCommonName
()
{
return
commonName
;
return
commonName
;
}
}
/**
/**
* @return the clazz
* @return the clazz
* @see #clazz
* @see #clazz
*/
*/
public
Class
<?>
getClazz
()
{
public
Class
<?>
getClazz
()
{
return
clazz
;
return
clazz
;
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment