standup.clouds
Class ShapeDetails

java.lang.Object
  extended by standup.clouds.ShapeDetails

public class ShapeDetails
extends Object


Field Summary
private  double canvasHeightRatio
          The height of the BubbleLabel canvas area, defined as a ratio of the image height.
private  double canvasWidthRatio
          The width of the BubbleLabel canvas area, defined as a ratio of the image width.
private  double canvasXOffset
          The horizontal offset, starting from the top left corner (0,0) of the image, where the BubbleLabel canvas area starts.
private  double canvasYOffset
          The vertical offset, starting from the top left corner (0,0) of the image, where the BubbleLabel canvas area starts.
private  float fontSizeFirstGuess
           
private  String imageFile
           
private  String imageFileHighlighted
           
private  double locusXOffset
           
private  double locusYOffset
           
 
Constructor Summary
ShapeDetails(String i, String ih, double lxo, double lyo, double cwr, double chr, double cxo, double cyo, float fsfg)
           
ShapeDetails(String i, String ih, double cwr, double chr, double cxo, double cyo, float fsfg)
          constructor with default image locus: at the centre point
 
Method Summary
 double getCanvasHeightRatio()
           
 double getCanvasWidthRatio()
           
 double getCanvasXOffset()
           
 double getCanvasYOffset()
           
 float getFontSizeFirstGuess()
           
 String getImageFile()
           
 String getImageFileHighlighted()
           
 double getLocusXOffset()
           
 double getLocusYOffset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imageFile

private final String imageFile

imageFileHighlighted

private final String imageFileHighlighted

locusXOffset

private final double locusXOffset

locusYOffset

private final double locusYOffset

canvasWidthRatio

private final double canvasWidthRatio
The width of the BubbleLabel canvas area, defined as a ratio of the image width.


canvasHeightRatio

private final double canvasHeightRatio
The height of the BubbleLabel canvas area, defined as a ratio of the image height.


canvasXOffset

private final double canvasXOffset
The horizontal offset, starting from the top left corner (0,0) of the image, where the BubbleLabel canvas area starts. This value is defined as a ratio of the image width.


canvasYOffset

private final double canvasYOffset
The vertical offset, starting from the top left corner (0,0) of the image, where the BubbleLabel canvas area starts. This value is defined as a ratio of the image height.


fontSizeFirstGuess

private final float fontSizeFirstGuess
Constructor Detail

ShapeDetails

ShapeDetails(String i,
             String ih,
             double lxo,
             double lyo,
             double cwr,
             double chr,
             double cxo,
             double cyo,
             float fsfg)

ShapeDetails

ShapeDetails(String i,
             String ih,
             double cwr,
             double chr,
             double cxo,
             double cyo,
             float fsfg)
constructor with default image locus: at the centre point

Parameters:
i - image filename
ih - image filename (highlighted)
cwr - canvas width ratio (in terms of image width)
chr - canvas height ratio (in terms of image height)
cxo - canvas x=0 offset (in terms of image width)
cyo - canvas y=0 offset (in terms of image height)
fsfg -
Method Detail

getCanvasHeightRatio

public double getCanvasHeightRatio()

getCanvasWidthRatio

public double getCanvasWidthRatio()

getCanvasXOffset

public double getCanvasXOffset()

getCanvasYOffset

public double getCanvasYOffset()

getImageFile

public String getImageFile()

getImageFileHighlighted

public String getImageFileHighlighted()

getFontSizeFirstGuess

public float getFontSizeFirstGuess()

getLocusXOffset

public double getLocusXOffset()

getLocusYOffset

public double getLocusYOffset()