Package com.biglybt.ui.swt.views.stats
Class BasePanel.Scale
java.lang.Object
com.biglybt.ui.swt.views.stats.BasePanel.Scale
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- BasePanel
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean
private float
(package private) long
private float
private float
private float
private float
(package private) boolean
(package private) boolean
private double
private float
private float
private float
private float
private double
private float
private int
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
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 Details
-
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
-
-
Constructor Details
-
Scale
Scale()
-
-
Method Details
-
clone
-
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)
-