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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.xerox.VTM.glyphs.Glyph
      extended bycom.xerox.VTM.glyphs.VImage
          extended bycom.xerox.VTM.glyphs.VImageOr
All Implemented Interfaces:
java.lang.Cloneable, RectangularShape

public class VImageOr
extends VImage
implements java.lang.Cloneable

Image (rectangular) - can be reoriented


Field Summary
 
Fields inherited from class com.xerox.VTM.glyphs.VImage
ar, at, DRAW_BORDER_ALWAYS, DRAW_BORDER_MOUSE_INSIDE, DRAW_BORDER_NEVER, drawBorder, image, pc, scaleFactor, trueCoef, vh, vw, zoomSensitive
 
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
VImageOr(java.awt.Image img, float or)
           
VImageOr(long x, long y, float z, java.awt.Image img, 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)
          set orientation (absolute)
 boolean coordInside(int x, int y, int camIndex)
          detects whether the given point is inside this glyph or not
 void draw(java.awt.Graphics2D g, int vW, int vH, int i, java.awt.Stroke stdS, java.awt.geom.AffineTransform stdT)
          draw glyph
 void orientTo(float angle)
          set orientation (absolute) - NOT STABLE (causes the VTM to hang sometimes) USE AT YOUR OWN RISK!
 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.VImage
addCamera, computeSize, fillsView, getHeight, getImage, getOrient, getSize, getWidth, initCams, isZoomSensitive, mouseInOut, removeCamera, resetMouseIn, reSize, setDrawBorderPolicy, setHeight, setImage, setWidth, setZoomSensitive, sizeTo
 
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
 

Constructor Detail

VImageOr

public VImageOr(java.awt.Image img,
                float or)

VImageOr

public VImageOr(long x,
                long y,
                float z,
                java.awt.Image img,
                float or)
Method Detail

orientTo

public void orientTo(float angle)
set orientation (absolute) - NOT STABLE (causes the VTM to hang sometimes) USE AT YOUR OWN RISK!

Overrides:
orientTo in class VImage

computeOrientCoords

void computeOrientCoords(int i)
set orientation (absolute)


coordInside

public boolean coordInside(int x,
                           int y,
                           int camIndex)
detects whether the given point is inside this glyph or not

Overrides:
coordInside in class VImage

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 VImage

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 VImage

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 VImage