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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.xerox.VTM.glyphs.Glyph
      extended bycom.xerox.VTM.glyphs.VDiamond
          extended bycom.xerox.VTM.glyphs.VDiamondOr
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
VDiamondOrST

public class VDiamondOr
extends VDiamond
implements java.lang.Cloneable

Diamond (losange with height equal to width) - can be reoriented


Field Summary
(package private)  int[] xcoords
          vertex x coords
(package private)  int[] ycoords
          vertex y coords
 
Fields inherited from class com.xerox.VTM.glyphs.VDiamond
pc, vs
 
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
 
Constructor Summary
VDiamondOr()
           
VDiamondOr(long x, long y, float z, long s, 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)
(package private)  void computeOrientCoords(int i)
           
 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 getOrient()
          get orientation
 void orientTo(float angle)
          set orientation (absolute)
 void project(com.xerox.VTM.engine.Camera c, com.xerox.VTM.engine.ViewPanel v)
          project shape in camera coord sys prior to actual painting
 
Methods inherited from class com.xerox.VTM.glyphs.VDiamond
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

xcoords

int[] xcoords
vertex x coords


ycoords

int[] ycoords
vertex y coords

Constructor Detail

VDiamondOr

public VDiamondOr()

VDiamondOr

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

getOrient

public float getOrient()
get orientation

Overrides:
getOrient in class VDiamond

orientTo

public void orientTo(float angle)
set orientation (absolute)

Overrides:
orientTo in class VDiamond

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 VDiamond

computeOrientCoords

void computeOrientCoords(int i)

project

public void project(com.xerox.VTM.engine.Camera c,
                    com.xerox.VTM.engine.ViewPanel v)
project shape in camera coord sys prior to actual painting

Overrides:
project in class VDiamond

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 VDiamond

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 VDiamond