1
package org.herac.tuxguitar.song.models;
3
import org.herac.tuxguitar.song.factory.TGFactory;
5
public abstract class TGMarker {
6
private static final TGColor DEFAULT_COLOR = TGColor.RED;
7
private static final String DEFAULT_TITLE = "Untitled";
11
private TGColor color;
13
public TGMarker(TGFactory factory) {
15
this.title = DEFAULT_TITLE;
16
this.color = DEFAULT_COLOR.clone(factory);
19
public int getMeasure() {
23
public void setMeasure(int measure) {
24
this.measure = measure;
27
public String getTitle() {
31
public void setTitle(String title) {
35
public TGColor getColor() {
39
public void setColor(TGColor color) {
43
public TGMarker clone(TGFactory factory){
44
TGMarker marker = factory.newMarker();
45
marker.setMeasure(getMeasure());
46
marker.setTitle(getTitle());
47
getColor().copy(marker.getColor());