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) booleanprivate float(package private) longprivate floatprivate floatprivate floatprivate float(package private) boolean(package private) booleanprivate doubleprivate floatprivate floatprivate floatprivate floatprivate doubleprivate floatprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()floatgetMaxX()floatgetMaxY()floatgetMinX()floatgetMinY()intgetReverseHeight(float h) intgetReverseWidth(float w) intgetX(float x, float y) int[]getXY(float x, float y) intgetY(float x, float y) voidmouseDown(org.eclipse.swt.events.MouseEvent event) booleanmouseMove(org.eclipse.swt.events.MouseEvent event) voidmouseUp(org.eclipse.swt.events.MouseEvent event) voidmouseWheel(org.eclipse.swt.widgets.Event event) voidreset()voidsetScale(float min_x, float max_x, float min_y, float max_y) voidsetScaleAndRotation(float min_x, float max_x, float min_y, float max_y, double rot) voidsetSize(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)
-