Save This Page
Home » openjdk-7 » net.claribole.zvtm » glyphs » [javadoc | source]
net.claribole.zvtm.glyphs
public class: SGlyph [javadoc | source]
java.lang.Object
   net.claribole.zvtm.glyphs.SGlyph
Class to be used to create new components for a composite glyphs (secondary glyphs)
Use this to change the nature or offset (position) of this secondary glyph
Field Summary
public static  short FULL_ROTATION    when rotating the composite glyph, rotate this component and change its position w.r.t the primary glyph to match the rotation (so that it keeps the same relative position inside its parent) 
public static  short NO_ROTATION    when rotating the composite glyph, do not modify the position or the orientation of this glyph 
public static  short ROTATION_POSITION_ONLY    when rotating the composite glyph, change its position w.r.t the primary glyph to match the rotation (so that it keeps the same relative position inside its parent) but do not rotate this component 
public static  short ROTATION_ANGLE_ONLY    when rotating the composite glyph, rotate this component but do not change its position w.r.t the primary glyph (its relative position inside its parent will change) 
public static  short RESIZE    when resizing the composite glyph, resize this component and change its position w.r.t the primary glyph to keep the same aspect (i.e. the same relative position inside its parent) 
public static  short NO_RESIZE    when resizing the composite glyph, do not resize this component but do change its position w.r.t the primary glyph to keep the same aspect (i.e. the same relative position inside its parent) 
 Glyph g     
 long xoffset     
 long yoffset     
 short rotationPolicy     
 float aoffset     
 short sizePolicy     
Constructor:
 public SGlyph(Glyph gl,
    long x,
    long y) 
    Constructs a new SGlyph with default values (angle offset=0)
 public SGlyph(Glyph gl,
    long x,
    long y,
    short rotPol,
    short szPol) 
    Constructs a new SGlyph
    Parameters:
    gl - glyph that will be made a component of the CGlyph (it must manually be added to the virtual space)
    x - horizontal distance between the center of the CGlyph's primary glyph and this glyph's center
    y - vertical distance between the center of the CGlyph's primary glyph and this glyph's center
    rotPol - rotation policy for this component (should be one of NO_ROTATION, ROTATION_ANGLE_ONLY, FULL_ROTATION, ROTATION_POSITION_ONLY)
    szPol - resizing policy for this component (should be one of NO_RESIZE, RESIZE)
Method from net.claribole.zvtm.glyphs.SGlyph Summary:
getAngleOffset,   getGlyph,   getOffset,   setAngleOffset,   setGlyph,   setHorizontalOffset,   setOffset,   setVerticalOffset
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from net.claribole.zvtm.glyphs.SGlyph Detail:
 public float getAngleOffset() 
 public Glyph getGlyph() 
    get Glyph that constitutes this CGlyph component
 public LongPoint getOffset() 
 public  void setAngleOffset(float angle) 
    the angle offset is initialized with the glyph's own orientation at SGlyph creation time, but it can be changed afterwards
 public  void setGlyph(Glyph gl) 
    change the glyph that constitues this CGlyph component
 public  void setHorizontalOffset(long x) 
    change horizontal position of this component w.r.t the position of the CGlyph's primary glyph (relative coordinates)
 public  void setOffset(LongPoint p) 
    change position of this component w.r.t the position of the CGlyph's primary glyph (relative coordinates)
 public  void setVerticalOffset(long y) 
    change vertical position of this component w.r.t the position of the CGlyph's primary glyph (relative coordinates)