|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.utgenome.gwt.utgb.client.track.impl.TrackGroupPropertyImpl
public class TrackGroupPropertyImpl
TrackGroupPropertyImpl
is a set of (key, value) pairs shared within a TrackGroup
Instead of directly
access TrackGroupPropertyImpl
, you must read and write values through the TrackGroupProperty
and
TrackGroupPropertyWriter
, respectively. This indirection is necessary for broadcasting
Track.onChangeTrackGroupProperty(TrackGroupPropertyChange)
and Track.onChangeTrackWindow(TrackWindow)
events to all tracks in a group.
Constructor Summary | |
---|---|
TrackGroupPropertyImpl(TrackGroup trackGroup)
|
Method Summary | |
---|---|
void |
addTrackGroupPropertyChangeListener(TrackGroupPropertyChangeListener listener)
|
void |
apply(TrackGroupPropertyChange change)
Apply the property changes to this writer |
void |
clear()
|
String |
getProperty(String key)
get a property value of a given key |
String |
getProperty(String key,
String defaultValue)
get a property value of a given key. |
TrackWindow |
getTrackWindow()
|
Set<String> |
keySet()
|
protected void |
notifyTheChange(TrackGroupPropertyChange change,
TrackWindow newWindow)
Notify the change to the track group and listeners |
void |
removeTrackGroupPropertyChangeListener(TrackGroupPropertyChangeListener listener)
|
void |
scaleDownTrackWindow()
|
void |
scaleUpTrackWindow()
|
void |
scrollTrackWindow(double scrollPercentage)
|
void |
setProperty(Map<String,String> property)
Set a set of properties specified in the given Map of properties. |
void |
setProperty(Map<String,String> properties,
TrackWindow newWindow)
|
void |
setProperty(String key,
String value)
Set a property (key, value) |
void |
setProperyChangeNotifaction(boolean enable)
|
void |
setTrackWindow(int startOnGenome,
int endOnGenome)
set a genome location displayed in the current TrackWindowImpl |
void |
setTrackWindow(TrackWindow newWindow)
|
void |
setTrackWindowSize(int windowWidth)
|
static XMLWriter |
toXML(TrackWindow w,
XMLWriter writer)
|
void |
toXML(XMLWriter xmlWriter)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrackGroupPropertyImpl(TrackGroup trackGroup)
Method Detail |
---|
public void setProperyChangeNotifaction(boolean enable)
setProperyChangeNotifaction
in interface TrackGroupPropertyWriter
public String getProperty(String key)
TrackGroupProperty
getProperty
in interface TrackGroupProperty
public String getProperty(String key, String defaultValue)
TrackGroupProperty
getProperty
in interface TrackGroupProperty
public TrackWindow getTrackWindow()
getTrackWindow
in interface TrackGroupProperty
public void clear()
protected void notifyTheChange(TrackGroupPropertyChange change, TrackWindow newWindow)
change
- public void setProperty(String key, String value)
TrackGroupPropertyWriter
setProperty
in interface TrackGroupPropertyWriter
public void setProperty(Map<String,String> property)
TrackGroupPropertyWriter
setProperty
in interface TrackGroupPropertyWriter
public void setProperty(Map<String,String> properties, TrackWindow newWindow)
setProperty
in interface TrackGroupPropertyWriter
public void setTrackWindow(int startOnGenome, int endOnGenome)
TrackGroupPropertyWriter
setTrackWindow
in interface TrackGroupPropertyWriter
public void setTrackWindowSize(int windowWidth)
setTrackWindowSize
in interface TrackGroupPropertyWriter
public Set<String> keySet()
keySet
in interface TrackGroupProperty
public void setTrackWindow(TrackWindow newWindow)
setTrackWindow
in interface TrackGroupPropertyWriter
public void apply(TrackGroupPropertyChange change)
TrackGroupPropertyWriter
apply
in interface TrackGroupPropertyWriter
public void addTrackGroupPropertyChangeListener(TrackGroupPropertyChangeListener listener)
public void removeTrackGroupPropertyChangeListener(TrackGroupPropertyChangeListener listener)
public void toXML(XMLWriter xmlWriter)
toXML
in interface TrackGroupProperty
public static XMLWriter toXML(TrackWindow w, XMLWriter writer)
public void scrollTrackWindow(double scrollPercentage)
scrollTrackWindow
in interface TrackGroupPropertyWriter
public void scaleDownTrackWindow()
scaleDownTrackWindow
in interface TrackGroupPropertyWriter
public void scaleUpTrackWindow()
scaleUpTrackWindow
in interface TrackGroupPropertyWriter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |