Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.xerox.VTM.glyphs
Class VTriangleOrST  view VTriangleOrST download VTriangleOrST.java

java.lang.Object
  extended bycom.xerox.VTM.glyphs.Glyph
      extended bycom.xerox.VTM.glyphs.VTriangle
          extended bycom.xerox.VTM.glyphs.VTriangleOr
              extended bycom.xerox.VTM.glyphs.VTriangleOrST
All Implemented Interfaces:
java.lang.Cloneable, Transparent

public class VTriangleOrST
extends VTriangleOr
implements Transparent, java.lang.Cloneable

Triangle - can be reoriented - transparency


Field Summary
(package private)  java.awt.AlphaComposite acST
          semi transparency (default is 0.5)
(package private)  float alpha
          alpha channel
 
Fields inherited from class com.xerox.VTM.glyphs.VTriangleOr
xcoords, ycoords
 
Fields inherited from class com.xerox.VTM.glyphs.VTriangle
halfEdgeFactor, pc, thirdHeightFactor, vh
 
Fields inherited from class com.xerox.VTM.glyphs.Glyph
bColor, borderColor, cGlyph, coef, color, dashedContour, DEFAULT_STROKE_WIDTH, dependants, filled, font, fontSize, fontSizePolicy, HSV, HSVb, ID, mouseInsideColor, orient, owner, paintBorder, selected, selectedColor, sensit, size, stickedGlyphs, stickedTo, stroke, strokeWidth, text, textHeight, textPos, textWidth, type, visible, vsm, vx, vy, vz
 
Fields inherited from interface com.xerox.VTM.glyphs.Transparent
acO
 
Constructor Summary
VTriangleOrST()
           
VTriangleOrST(long x, long y, float z, long h, java.awt.Color c, float or)
           
 
Method Summary
 java.lang.Object clone()
          returns a clone of this object (only basic information is cloned for now: shape, orientation, position, size)
 void draw(java.awt.Graphics2D g, int vW, int vH, int i, java.awt.Stroke stdS, java.awt.geom.AffineTransform stdT)
          draw glyph
 boolean fillsView(long w, long h, int camIndex)
          used to find out if glyph completely fills the view (in which case it is not necessary to repaint objects at a lower altitude)
 float getTransparencyValue()
          get alpha value (transparency) for this glyph
 void setTransparencyValue(float a)
          set alpha channel value (transparency)
 
Methods inherited from class com.xerox.VTM.glyphs.VTriangleOr
computeOrientCoords, getOrient, orientTo, project
 
Methods inherited from class com.xerox.VTM.glyphs.VTriangle
addCamera, computeSize, coordInside, getSize, initCams, mouseInOut, removeCamera, resetMouseIn, reSize, sizeTo, textDraw
 
Methods inherited from class com.xerox.VTM.glyphs.Glyph
addDependant, addHSVbColor, addHSVColor, drawMe, getCGlyph, getColor, getColorb, getDependants, getFillStatus, getFont, getHSVbColor, getHSVColor, getID, getLocation, getOwner, getPaintBorderStatus, getStickedGlyphs, getStroke, getStrokeWidth, getText, getType, isSelected, isSensitive, isVisible, move, moveTo, propagateMove, removeDependant, select, setBorderColor, setCGlyph, setColor, setDashed, setFill, setFontSizePolicy, setHSVbColor, setHSVColor, setID, setMouseInsideColor, setOwner, setPaintBorder, setSelectedColor, setSensitivity, setSpecialFont, setStroke, setStrokeWidth, setText, setTextPos, setType, setVisible, setVSM, stick, toString, unstick, usesSpecialFont
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

acST

java.awt.AlphaComposite acST
semi transparency (default is 0.5)


alpha

float alpha
alpha channel

Constructor Detail

VTriangleOrST

public VTriangleOrST()

VTriangleOrST

public VTriangleOrST(long x,
                     long y,
                     float z,
                     long h,
                     java.awt.Color c,
                     float or)
Method Detail

setTransparencyValue

public void setTransparencyValue(float a)
set alpha channel value (transparency)

Specified by:
setTransparencyValue in interface Transparent

getTransparencyValue

public float getTransparencyValue()
get alpha value (transparency) for this glyph

Specified by:
getTransparencyValue in interface Transparent

fillsView

public boolean fillsView(long w,
                         long h,
                         int camIndex)
used to find out if glyph completely fills the view (in which case it is not necessary to repaint objects at a lower altitude)

Overrides:
fillsView in class VTriangleOr

draw

public void draw(java.awt.Graphics2D g,
                 int vW,
                 int vH,
                 int i,
                 java.awt.Stroke stdS,
                 java.awt.geom.AffineTransform stdT)
draw glyph

Overrides:
draw in class VTriangleOr

clone

public java.lang.Object clone()
returns a clone of this object (only basic information is cloned for now: shape, orientation, position, size)

Overrides:
clone in class VTriangleOr