Package com.biglybt.ui.swt.views.stats
Class BasePanel.Scale
- java.lang.Object
-
- com.biglybt.ui.swt.views.stats.BasePanel.Scale
-
- All Implemented Interfaces:
java.lang.Cloneable
- Enclosing class:
- BasePanel
static class BasePanel.Scale extends java.lang.Object implements java.lang.Cloneable
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
disableAutoScale
private float
height
(package private) long
lastAutoScale
private float
maxX
private float
maxY
private float
minX
private float
minY
(package private) boolean
mouseLeftDown
(package private) boolean
mouseRightDown
private double
rotation
private float
saveMaxX
private float
saveMaxY
private float
saveMinX
private float
saveMinY
private double
saveRotation
private float
width
private int
xDown
private int
yDown
-
Constructor Summary
Constructors Constructor Description Scale()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BasePanel.Scale
clone()
float
getMaxX()
float
getMaxY()
float
getMinX()
float
getMinY()
int
getReverseHeight(float h)
int
getReverseWidth(float w)
int
getX(float x, float y)
int[]
getXY(float x, float y)
int
getY(float x, float y)
void
mouseDown(org.eclipse.swt.events.MouseEvent event)
boolean
mouseMove(org.eclipse.swt.events.MouseEvent event)
void
mouseUp(org.eclipse.swt.events.MouseEvent event)
void
mouseWheel(org.eclipse.swt.widgets.Event event)
void
reset()
void
setScale(float min_x, float max_x, float min_y, float max_y)
void
setScaleAndRotation(float min_x, float max_x, float min_y, float max_y, double rot)
void
setSize(org.eclipse.swt.graphics.Rectangle size)
-
-
-
Field Detail
-
width
private float width
-
height
private float height
-
minX
private float minX
-
maxX
private float maxX
-
minY
private float minY
-
maxY
private float maxY
-
rotation
private double rotation
-
saveMinX
private float saveMinX
-
saveMaxX
private float saveMaxX
-
saveMinY
private float saveMinY
-
saveMaxY
private float saveMaxY
-
saveRotation
private double saveRotation
-
disableAutoScale
boolean disableAutoScale
-
lastAutoScale
long lastAutoScale
-
mouseLeftDown
boolean mouseLeftDown
-
mouseRightDown
boolean mouseRightDown
-
xDown
private int xDown
-
yDown
private int yDown
-
-
Method Detail
-
clone
public BasePanel.Scale clone()
- Overrides:
clone
in classjava.lang.Object
-
setSize
public void setSize(org.eclipse.swt.graphics.Rectangle size)
-
setScale
public void setScale(float min_x, float max_x, float min_y, float max_y)
-
setScaleAndRotation
public void setScaleAndRotation(float min_x, float max_x, float min_y, float max_y, double rot)
-
getMinX
public float getMinX()
-
getMaxX
public float getMaxX()
-
getMinY
public float getMinY()
-
getMaxY
public float getMaxY()
-
reset
public void reset()
-
getX
public int getX(float x, float y)
-
getY
public int getY(float x, float y)
-
getXY
public int[] getXY(float x, float y)
-
getReverseWidth
public int getReverseWidth(float w)
-
getReverseHeight
public int getReverseHeight(float h)
-
mouseDown
public void mouseDown(org.eclipse.swt.events.MouseEvent event)
-
mouseUp
public void mouseUp(org.eclipse.swt.events.MouseEvent event)
-
mouseWheel
public void mouseWheel(org.eclipse.swt.widgets.Event event)
-
mouseMove
public boolean mouseMove(org.eclipse.swt.events.MouseEvent event)
-
-