|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectapollo.config.Style
public class Style
A Style is basically config options for a particular data adapter
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
logger
|
protected java.util.Hashtable |
parameters
General way to store config variables. |
| Constructor Summary | |
|---|---|
Style(java.lang.String styleFileString)
|
|
| Method Summary | |
|---|---|
void |
addAnnotationComment(java.lang.String comment)
Add a canned annotation comment. |
void |
addParameter(java.lang.String name,
java.lang.String value)
Whenever we add a new parameter to the style file, we've been adding methods in Style.java to set/get some variable--it's getting annoying. |
boolean |
addSyntenyResultMenuItem()
Whether to add a menu item to the result popup menu that will bring up the selected feature as the other species in synteny |
boolean |
addSyntenySpeciesNumDropdown()
Whether to add link query radio buttons to synteny adap gui |
void |
addTranscriptComment(java.lang.String comment)
Add a canned transcript comment. |
static void |
askRenameGameConfig(java.lang.String oldname,
java.lang.String newname)
7/2005: Special backwards-compatibility hand-holding: game.style and game.tiers were recently renamed fly.style (which imports game.style) and fly.tiers, but some users may still have a private game.style or game.tiers in their .apollo directory. |
boolean |
checkBoolean(java.lang.String value,
java.lang.String variableName)
|
boolean |
checkValidColor(java.lang.String colorStr,
java.lang.String variableName)
|
boolean |
colorAllAnnotsByOwner()
|
void |
complain(java.lang.String message)
Print message to stderr |
boolean |
databaseHasStyle(java.lang.String db)
Returns true if have style for db |
boolean |
doUserTranscriptColouring()
|
java.lang.String |
getAllStyleFilesString()
Returns a string of all the style files used to create this file |
java.awt.Color |
getAnnotationBackground()
|
java.awt.Color |
getAnnotationColor(java.lang.String username)
Retrieve color for user name; if no color use defaultAnnotationColor. |
java.util.Vector |
getAnnotationComments()
|
java.awt.Color |
getAnnotationLabelColor()
|
java.lang.String |
getBandUrl()
|
java.lang.String |
getBlixemLocation()
|
java.util.Vector |
getChromosomes()
Returns a vector of chromosome names as strings, null if none given |
java.awt.Color |
getCoordBackground()
|
java.awt.Color |
getCoordForeground()
|
java.awt.Color |
getCoordRevcompColor()
|
boolean |
getDashSets()
|
java.util.Vector |
getDatabaseList()
If no DatabaseList set in style, defaults to a list of just the DatabaseDefault (which defaults to gadfly if not set) |
java.util.Vector |
getDatabaseList(java.lang.String queryType)
Get list of databases with changes possible based on queryType. |
java.lang.String |
getDatabaseURLField()
Field in url to replace with database selection |
java.lang.String |
getDefaultDatabase()
Used for navigation bar db (for game), also if no database list is provided, getDatabaseList defaults to a list of default db. |
int |
getDefaultPadding()
|
java.lang.String |
getDefaultSyntenyDataAdapterString()
String of class name for default synteny data adapter to use if none are specified in style file - default is null |
protected DisplayPrefsI |
getDisplayPrefs()
|
boolean |
getDraw3D()
|
boolean |
getDrawOutline()
|
java.awt.Color |
getEdgematchColor()
|
int |
getEdgematchWidth()
|
java.lang.String |
getErrors()
|
int |
getEvidencePanelHeight()
|
java.awt.Font |
getExonDetailEditorSequenceFont()
Font for amino and dna sequence in EDE |
java.awt.Color |
getFeatureBackground()
|
java.awt.Color |
getFeatureLabelColor()
|
int |
getFeatureLoadSize()
|
java.lang.String |
getFileName()
|
int |
getGeneticCodeNumber()
|
java.lang.String |
getGeneUrl()
|
java.awt.Color |
getHighlightColor()
|
boolean |
getInitialSitesVisibility()
Initial state for sites visibility (view menu item) |
java.lang.String |
getLayoutIniFile()
|
int |
getLinkPanelSize()
|
boolean |
getNaiveCrossSpeciesDataLoading()
This indicates whether a composite adapter UI is to load cross-species data simply - that is, just read the adapters for each species & the compara sets in turn, and not propagate information from one read to the other. |
java.lang.String |
getNameAdapter()
|
boolean |
getNoStripes()
|
int |
getNumberOfSpecies()
How many species to display in synteny - default is 1 |
int |
getNumberOfSyntenySpecies()
|
java.awt.Color |
getOutlineColor()
Edgematch color is also used for generic outlines around features |
java.lang.String |
getOverlapDefinition()
|
java.lang.String |
getPadLeftURLField()
Field in url to replace with padding int |
java.lang.String |
getPadRightURLField()
|
java.lang.String |
getParameter(java.lang.String name)
Returns the last value (even if there are many) |
java.util.Vector |
getParameterMulti(java.lang.String name)
Returns the whole vector of values for this parameter |
java.util.Hashtable |
getParameters()
Returns hash with only one string for each key. |
java.util.Hashtable |
getParametersMulti()
Returns hash of Parameter vectors. |
java.lang.String |
getProjectName(java.lang.String username)
|
PropertyScheme |
getPropertyScheme()
|
java.lang.String |
getRangeUrl()
|
java.util.Vector |
getResultTag(java.lang.String result_type)
|
java.util.Hashtable |
getResultTags()
|
java.lang.String |
getScaffoldUrl()
|
java.awt.Color |
getSelectionColor()
|
java.awt.Color |
getSeqErrorColor()
Return color for showing genomic sequencing errors or frameshifts |
java.awt.Color |
getSeqGapColor()
|
java.awt.Color |
getSequenceColor()
|
java.lang.String |
getSeqUrl()
|
boolean |
getShowAnnotations()
|
boolean |
getShowResults()
|
int |
getSingleSpeciesPanelSize()
|
Style |
getStyleForDb(java.lang.String db)
Returns null if cant make style for db |
java.lang.String |
getSyntenyDatabaseForSpecies(java.lang.String species)
Database species maps to as proscribed by SpeciesToDatabase entries. |
java.util.List |
getSyntenyLinkOrder()
|
java.util.List |
getSyntenySpeciesAndLinkOrder()
List of Strings which are the species/names/tags of sub-adapters. |
java.util.HashMap |
getSyntenySpeciesNames()
Maps names (Name.Mouse) to adapter label/logical name (Mus Musculus). |
java.util.List |
getSyntenySpeciesOrder()
Same as syntenySpeciesAndLinkOrder(Strings) minus links(denoted by "Compara") eg "Name.Mouse", "Name.Human" If synteny species names not explicitly set(ensj,gff), and useGenericSyntenySpecies is true, make a generic list up to getNumberOfSpecies (Species1,Species2,...SpeciesN) (game) |
java.util.HashMap |
getSyntenySpeciesProperties()
This maps these kinds of strings from the style file: "Species.Mouse.DataAdapter" -> "apollo.dataadapter.ensj.AnnotationEnsJAdapter" So basically its where the dataadapter is |
java.lang.String |
getSyntenySpeciesString(int i)
|
java.awt.Color |
getTaggedColor()
Return color for boxing tagged results |
java.lang.String |
getTiersFile()
|
java.util.Vector |
getTranscriptComments()
|
boolean |
getTranscriptSymbolEditable()
Whether transcript symbol/name is editable in annot info, default true |
boolean |
igbHttpConnectionEnabled()
|
boolean |
initialLockedScrolling()
Whether synteny's initial state is to lock scrolling. |
boolean |
initialShiftForLockedZooming()
Whether synteny should lock zooming with a shift or vice versa, initially. |
boolean |
internalMode()
|
boolean |
isEditingEnabled()
|
boolean |
isSuperUser(java.lang.String name)
|
boolean |
queryForNamesOnSplit()
added BY TAIR someday we may need to change this to something more fitting than a boolean, but for now it is binary |
void |
readStyle(java.io.File styleFile)
Saves error messages for later checking |
void |
readStyle(java.lang.String styleFilename)
|
void |
removeParameter(java.lang.String key)
|
void |
replaceParameter(java.lang.String key,
java.lang.String value)
|
boolean |
seqErrorEditingIsEnabled()
|
void |
setAnnotationBackground(java.awt.Color color)
|
void |
setAnnotationLabelColor(java.awt.Color col)
|
void |
setCoordBackground(java.awt.Color col)
|
void |
setCoordForeground(java.awt.Color col)
|
void |
setCoordRevcompColor(java.awt.Color col)
|
void |
setDraw3D(boolean state)
|
void |
setDrawOutline(boolean state)
|
void |
setEdgematchColor(java.awt.Color col)
|
void |
setEditingEnabled(boolean editingEnabled)
|
void |
setFeatureBackground(java.awt.Color col)
|
void |
setFeatureLabelColor(java.awt.Color col)
|
void |
setLocalNavigationManagerEnabled(java.lang.Boolean enable)
|
void |
setSequenceColor(java.awt.Color col)
|
void |
setShowAnnotations(boolean showAnnotations)
|
void |
setShowResults(boolean showResults)
|
void |
setStyleFile(java.lang.String name)
|
void |
setTiersFile(java.lang.String tiersFile)
|
boolean |
showDbXRefTable()
Whether to show db cross reference table in annot info |
boolean |
showEvalOfPeptide()
|
boolean |
showFinishedCheckbox()
Whether to show/use finished checkbox in annot info transcript panel |
boolean |
showIdField()
Whether gene id field is displayed in annot info |
boolean |
showIsDicistronicCheckbox()
Whether to show, and therefore use, the "Is Dicistronic?" checkbox in annot info editor |
boolean |
showIsProbCheckbox()
|
boolean |
showOwnershipAnnotMenuItem()
|
boolean |
showReplaceStopCheckbox()
|
boolean |
showTranscriptFinishedAnnotMenuItem()
|
boolean |
syntenyLinksAreGeneToGene()
|
java.lang.String |
toString()
|
boolean |
transactionsAreInGameFile()
|
boolean |
translationalFrameShiftEditingIsEnabled()
|
boolean |
useOpaqueLinks()
If the links between individual species' features are drawn opaquely then rendering of the panels as a whole will be faster. |
boolean |
writeStyle(java.io.File styleFile)
Writes the style data to a file. |
void |
writeStyle(java.lang.String styleFilename)
Writes the style data to a file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger logger
protected java.util.Hashtable parameters
| Constructor Detail |
|---|
public Style(java.lang.String styleFileString)
| Method Detail |
|---|
public void setStyleFile(java.lang.String name)
public java.lang.String getAllStyleFilesString()
public void readStyle(java.lang.String styleFilename)
public void readStyle(java.io.File styleFile)
public void writeStyle(java.lang.String styleFilename)
styleFilename - - String for the name of the style file to write topublic boolean writeStyle(java.io.File styleFile)
styleFile - - File for the style file to write to
public void complain(java.lang.String message)
public java.lang.String getErrors()
public boolean queryForNamesOnSplit()
public static void askRenameGameConfig(java.lang.String oldname,
java.lang.String newname)
public boolean checkValidColor(java.lang.String colorStr,
java.lang.String variableName)
public java.lang.String getBlixemLocation()
public boolean checkBoolean(java.lang.String value,
java.lang.String variableName)
public java.lang.String getTiersFile()
public void setTiersFile(java.lang.String tiersFile)
public java.lang.String getLayoutIniFile()
public boolean getShowAnnotations()
public void setShowAnnotations(boolean showAnnotations)
public boolean getShowResults()
public void setShowResults(boolean showResults)
public int getEdgematchWidth()
public boolean doUserTranscriptColouring()
public boolean colorAllAnnotsByOwner()
public boolean getDraw3D()
public void setDraw3D(boolean state)
public boolean getNoStripes()
public int getEvidencePanelHeight()
public boolean isEditingEnabled()
public void setEditingEnabled(boolean editingEnabled)
public void setLocalNavigationManagerEnabled(java.lang.Boolean enable)
public java.util.Vector getChromosomes()
public boolean getDrawOutline()
public void setDrawOutline(boolean state)
public java.util.Vector getDatabaseList()
public java.util.Vector getDatabaseList(java.lang.String queryType)
public java.lang.String getDefaultDatabase()
public java.util.Vector getAnnotationComments()
public java.util.Vector getTranscriptComments()
public void addAnnotationComment(java.lang.String comment)
comment - - String to be addedpublic void addTranscriptComment(java.lang.String comment)
comment - - String to be addedpublic boolean internalMode()
public java.lang.String getProjectName(java.lang.String username)
public java.awt.Color getAnnotationColor(java.lang.String username)
public java.awt.Color getTaggedColor()
public java.awt.Color getSeqErrorColor()
public int getFeatureLoadSize()
public java.lang.String getGeneUrl()
public java.lang.String getBandUrl()
public java.lang.String getScaffoldUrl()
public java.lang.String getSeqUrl()
public java.lang.String getRangeUrl()
public boolean getDashSets()
public java.awt.Color getAnnotationBackground()
public void setAnnotationBackground(java.awt.Color color)
public java.awt.Color getFeatureBackground()
public void setFeatureBackground(java.awt.Color col)
public java.awt.Color getEdgematchColor()
public void setEdgematchColor(java.awt.Color col)
public java.awt.Color getOutlineColor()
public java.awt.Color getFeatureLabelColor()
public void setFeatureLabelColor(java.awt.Color col)
public java.awt.Color getAnnotationLabelColor()
public void setAnnotationLabelColor(java.awt.Color col)
public java.awt.Color getCoordBackground()
public void setCoordBackground(java.awt.Color col)
public java.awt.Color getCoordForeground()
public void setCoordForeground(java.awt.Color col)
public java.awt.Color getCoordRevcompColor()
public void setCoordRevcompColor(java.awt.Color col)
public java.awt.Color getSequenceColor()
public void setSequenceColor(java.awt.Color col)
public java.awt.Color getHighlightColor()
public java.awt.Color getSelectionColor()
public java.awt.Color getSeqGapColor()
protected DisplayPrefsI getDisplayPrefs()
public java.lang.String getNameAdapter()
public java.lang.String getOverlapDefinition()
public java.lang.String getFileName()
public java.awt.Font getExonDetailEditorSequenceFont()
public java.util.Vector getResultTag(java.lang.String result_type)
public java.util.Hashtable getResultTags()
public java.lang.String getDatabaseURLField()
public java.lang.String getPadLeftURLField()
public java.lang.String getPadRightURLField()
public int getDefaultPadding()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isSuperUser(java.lang.String name)
public PropertyScheme getPropertyScheme()
public int getSingleSpeciesPanelSize()
public int getLinkPanelSize()
public boolean getInitialSitesVisibility()
public boolean addSyntenySpeciesNumDropdown()
public boolean addSyntenyResultMenuItem()
public boolean syntenyLinksAreGeneToGene()
public boolean initialShiftForLockedZooming()
public boolean initialLockedScrolling()
public boolean getNaiveCrossSpeciesDataLoading()
public boolean useOpaqueLinks()
public java.lang.String getDefaultSyntenyDataAdapterString()
public int getNumberOfSpecies()
public java.util.HashMap getSyntenySpeciesNames()
public java.util.HashMap getSyntenySpeciesProperties()
public java.util.List getSyntenySpeciesOrder()
public java.util.List getSyntenyLinkOrder()
public java.lang.String getSyntenySpeciesString(int i)
public int getNumberOfSyntenySpecies()
public java.util.List getSyntenySpeciesAndLinkOrder()
public java.lang.String getSyntenyDatabaseForSpecies(java.lang.String species)
public boolean databaseHasStyle(java.lang.String db)
public Style getStyleForDb(java.lang.String db)
public boolean showIdField()
public boolean getTranscriptSymbolEditable()
public boolean showIsDicistronicCheckbox()
public boolean showEvalOfPeptide()
public boolean showIsProbCheckbox()
public boolean showFinishedCheckbox()
public boolean showDbXRefTable()
public boolean showReplaceStopCheckbox()
public boolean translationalFrameShiftEditingIsEnabled()
public boolean seqErrorEditingIsEnabled()
public boolean showOwnershipAnnotMenuItem()
public boolean showTranscriptFinishedAnnotMenuItem()
public boolean igbHttpConnectionEnabled()
public boolean transactionsAreInGameFile()
public int getGeneticCodeNumber()
public void addParameter(java.lang.String name,
java.lang.String value)
public void removeParameter(java.lang.String key)
public void replaceParameter(java.lang.String key,
java.lang.String value)
public java.lang.String getParameter(java.lang.String name)
public java.util.Vector getParameterMulti(java.lang.String name)
public java.util.Hashtable getParameters()
public java.util.Hashtable getParametersMulti()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||