Class ScaledGraphic
- java.lang.Object
-
- com.biglybt.ui.swt.components.graphics.BackGroundGraphic
-
- com.biglybt.ui.swt.components.graphics.ScaledGraphic
-
- All Implemented Interfaces:
Graphic
- Direct Known Subclasses:
MultiPlotGraphic
,PingGraphic
,SpeedGraphic
public class ScaledGraphic extends BackGroundGraphic
-
-
Field Summary
Fields Modifier and Type Field Description protected org.eclipse.swt.graphics.Image
bufferScale
protected ValueFormater
formater
private int
lastMax
protected Scale
scale
private int
update_divider_width
-
Fields inherited from class com.biglybt.ui.swt.components.graphics.BackGroundGraphic
bufferBackground, colorWhite, drawCanvas, lightGrey, lightGrey2, this_mon
-
-
Constructor Summary
Constructors Constructor Description ScaledGraphic(Scale scale, ValueFormater formater)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
protected void
drawScale(boolean sizeChanged)
void
setUpdateDividerWidth(int width)
-
Methods inherited from class com.biglybt.ui.swt.components.graphics.BackGroundGraphic
addMenuItems, drawBackGround, initialize, refresh, setColors, setSIIECSensitive
-
-
-
-
Field Detail
-
scale
protected Scale scale
-
formater
protected ValueFormater formater
-
bufferScale
protected org.eclipse.swt.graphics.Image bufferScale
-
lastMax
private int lastMax
-
update_divider_width
private int update_divider_width
-
-
Constructor Detail
-
ScaledGraphic
public ScaledGraphic(Scale scale, ValueFormater formater)
-
-
Method Detail
-
setUpdateDividerWidth
public void setUpdateDividerWidth(int width)
-
drawScale
protected void drawScale(boolean sizeChanged)
-
dispose
public void dispose()
- Overrides:
dispose
in classBackGroundGraphic
-
-