java.lang.Object
com.xerox.VTM.glyphs.Glyph
com.xerox.VTM.glyphs.VTriangle
com.xerox.VTM.glyphs.VTriangleOr
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- VTriangleOrST
- public class VTriangleOr
- extends VTriangle
- implements java.lang.Cloneable
Triangle - 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.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 |
|
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.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 |
xcoords
int[] xcoords
- vertex x coords
ycoords
int[] ycoords
- vertex y coords
VTriangleOr
public VTriangleOr()
VTriangleOr
public VTriangleOr(long x,
long y,
float z,
long h,
java.awt.Color c,
float or)
getOrient
public float getOrient()
- get orientation
- Overrides:
getOrient in class VTriangle
orientTo
public void orientTo(float angle)
- set orientation (absolute)
- Overrides:
orientTo in class VTriangle
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 VTriangle
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 VTriangle
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 VTriangle
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 VTriangle