Class sgraphics.Sgraphics
All Packages Class Hierarchy This Package Previous Next Index
Class sgraphics.Sgraphics
java.lang.Object
|
+----sgraphics.Sgraphics
- public class Sgraphics
- extends Object
Utility to convert coordinates from awt ints to resolution independent
floats.
-
cacheRequirements
- Set this to false to stop Boxes from caching requirements.
-
resolutionIndependent
- Set this to false if resolution independent graphics is not desired.
-
Sgraphics()
-
-
convertHorizontal(float)
-
-
convertHorizontal(int)
-
-
convertVertical(float)
-
-
convertVertical(int)
-
resolutionIndependent
public static boolean resolutionIndependent
- Set this to false if resolution independent graphics is not desired.
Note: this will allow rounding errors that can effect tiling.
cacheRequirements
public static boolean cacheRequirements
- Set this to false to stop Boxes from caching requirements. This can
help in situations with widgets when requirements() is called
while they are hidden (like when using a card layout).
Sgraphics
public Sgraphics()
convertHorizontal
public float convertHorizontal(int h)
convertVertical
public float convertVertical(int v)
convertHorizontal
public int convertHorizontal(float h)
convertVertical
public int convertVertical(float v)
All Packages Class Hierarchy This Package Previous Next Index