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.

Variable Index

 o cacheRequirements
Set this to false to stop Boxes from caching requirements.
 o resolutionIndependent
Set this to false if resolution independent graphics is not desired.

Constructor Index

 o Sgraphics()

Method Index

 o convertHorizontal(float)
 o convertHorizontal(int)
 o convertVertical(float)
 o convertVertical(int)

Variables

 o 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.
 o 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).

Constructors

 o Sgraphics
  public Sgraphics()

Methods

 o convertHorizontal
  public float convertHorizontal(int h)
 o convertVertical
  public float convertVertical(int v)
 o convertHorizontal
  public int convertHorizontal(float h)
 o convertVertical
  public int convertVertical(float v)

All Packages  Class Hierarchy  This Package  Previous  Next  Index