#90 [WIP] on redesigning the channel processing gui components and backing model. Simplifies channel state by introducing a new Metadata class that tracks all metadata for all decoders.

This commit is contained in:
Denny
2017-01-14 11:21:53 -05:00
parent 6a9e522d77
commit 7115b4feb1
57 changed files with 1534 additions and 298 deletions

View File

@@ -117,9 +117,9 @@ public class Alias
mColor = color;
}
public Color getMapColor()
public Color getDisplayColor()
{
return new Color( mColor );
return new Color( getColor() );
}
@XmlAttribute

View File

@@ -148,7 +148,7 @@ public class AliasNameEditor extends Editor<Alias>
Color newColor = JColorChooser.showDialog(
AliasNameEditor.this,
"Choose color for this alias",
(hasItem() ? getItem().getMapColor() : null));
(hasItem() ? getItem().getDisplayColor() : null));
if(newColor != null)
{
@@ -264,7 +264,7 @@ public class AliasNameEditor extends Editor<Alias>
mGroupCombo.setSelectedItem(alias.getGroup());
Color color = alias.getMapColor();
Color color = alias.getDisplayColor();
mButtonColor.setBackground(color);
mButtonColor.setForeground(color);

View File

@@ -47,6 +47,17 @@ public class PatchGroupAlias extends Alias
{
}
@Override
public int getColor()
{
if(mPatchGroupAlias != null)
{
return mPatchGroupAlias.getColor();
}
return super.getColor();
}
/**
* Sets an alias for this patch group ID
*/