Package com.biglybt.ui.swt.views.stats
Class TagStatsView.ValueSourceImpl
- java.lang.Object
-
- com.biglybt.ui.swt.views.stats.TagStatsView.ValueSourceImpl
-
- All Implemented Interfaces:
ValueSource
- Enclosing class:
- TagStatsView
private static class TagStatsView.ValueSourceImpl extends java.lang.Object implements ValueSource
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.eclipse.swt.graphics.Color[]
colours
(package private) int
index
private boolean
is_hover
private boolean
is_invisible
(package private) boolean
is_up
(package private) java.lang.String
name
(package private) TagFeatureRateLimit
tag
-
Fields inherited from interface com.biglybt.ui.swt.components.graphics.ValueSource
STYLE_BLOB, STYLE_BOLD, STYLE_DOTTED, STYLE_DOWN, STYLE_HIDE_LABEL, STYLE_INVISIBLE, STYLE_NAMED, STYLE_NONE, STYLE_UP
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ValueSourceImpl(TagFeatureRateLimit _tag, java.lang.String _name, int _index, org.eclipse.swt.graphics.Color[] _colours, boolean _is_up)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAlpha()
org.eclipse.swt.graphics.Color
getLineColor()
java.lang.String
getName()
int
getStyle()
int
getValue()
boolean
isTrimmable()
private void
setHover(boolean h)
private void
setVisible(boolean visible)
-
-
-
Field Detail
-
tag
TagFeatureRateLimit tag
-
name
java.lang.String name
-
index
int index
-
colours
org.eclipse.swt.graphics.Color[] colours
-
is_up
boolean is_up
-
is_hover
private boolean is_hover
-
is_invisible
private boolean is_invisible
-
-
Constructor Detail
-
ValueSourceImpl
private ValueSourceImpl(TagFeatureRateLimit _tag, java.lang.String _name, int _index, org.eclipse.swt.graphics.Color[] _colours, boolean _is_up)
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceValueSource
-
getLineColor
public org.eclipse.swt.graphics.Color getLineColor()
- Specified by:
getLineColor
in interfaceValueSource
-
isTrimmable
public boolean isTrimmable()
- Specified by:
isTrimmable
in interfaceValueSource
-
setHover
private void setHover(boolean h)
-
getAlpha
public int getAlpha()
- Specified by:
getAlpha
in interfaceValueSource
-
setVisible
private void setVisible(boolean visible)
-
getStyle
public int getStyle()
- Specified by:
getStyle
in interfaceValueSource
-
getValue
public int getValue()
- Specified by:
getValue
in interfaceValueSource
-
-