org.jmol.shape

Class Object2d

public abstract class Object2d extends Object

Field Summary
protected static intALIGN_CENTER
static intALIGN_LEFT
protected static intALIGN_NONE
protected static intALIGN_RIGHT
protected booleanadjustForWindow
protected intalign
protected shortbgcolix
protected floatboxHeight
protected floatboxWidth
protected floatboxX
protected float[]boxXY
protected floatboxY
protected shortcolix
protected JmolRendererInterfaceg3d
protected static String[]hAlignNames
booleanhidden
protected booleanisLabelOrHover
intmodelIndex
protected intmovableX
protected intmovableXPercent
protected intmovableY
protected intmovableYPercent
protected intmovableZ
protected intmovableZPercent
protected intoffsetX
protected intoffsetY
protected intpointer
static intPOINTER_BACKGROUND
static intPOINTER_NONE
static intPOINTER_ON
protected floatscalePixelsPerMicron
protected Stringscript
Stringtarget
protected static String[]vAlignNames
intvalign
protected Viewerviewer
booleanvisible
protected static intVALIGN_BOTTOM
protected static intVALIGN_MIDDLE
protected static intVALIGN_TOP
static intVALIGN_XY
static intVALIGN_XYZ
protected intwindowHeight
protected intwindowWidth
Point3fxyz
protected intz
protected intzSlab
Constructor Summary
protected Object2d()
protected Object2d(Viewer viewer, Graphics3D g3d, String target, short colix, int valign, int align, float scalePixelsPerMicron)
Method Summary
booleancheckObjectClicked(int x, int y, BitSet bsVisible)
protected voiddrawPointer(JmolRendererInterface g3d)
static StringgetAlignment(int align)
static StringgetPointer(int pointer)
floatgetScalePixelsPerMicron()
StringgetScript()
static intgetXOffset(int offset)
static intgetYOffset(int offset)
protected abstract voidrecalc()
voidsetAdjustForWindow(boolean TF)
booleansetAlignment(String align)
booleansetAlignment(int align)
voidsetBgColix(short colix)
voidsetBgColix(Object value)
protected voidsetBoxOffsetsInWindow(float margin, float vMargin, float vTop)
voidsetColix(short colix)
voidsetColix(Object value)
voidsetModel(int modelIndex)
voidsetMovableX(int x)
voidsetMovableXPercent(int x)
voidsetMovableY(int y)
voidsetMovableYPercent(int y)
voidsetMovableZ(int z)
voidsetMovableZPercent(int z)
voidsetOffset(int offset)
voidsetPointer(int pointer)
static booleansetProperty(String propertyName, Object value, Object2d currentObject)
voidsetScalePixelsPerMicron(float scalePixelsPerMicron)
voidsetScript(String script)
voidsetTranslucent(float level, boolean isBackground)
voidsetVisibility(boolean TF)
protected voidsetWindow(JmolRendererInterface g3d, float scalePixelsPerMicron)
voidsetXY(int x, int y)
voidsetXYZ(Point3f xyz)
voidsetXYZs(int x, int y, int z, int zSlab)
voidsetZs(int z, int zSlab)

Field Detail

ALIGN_CENTER

protected static final int ALIGN_CENTER

ALIGN_LEFT

public static final int ALIGN_LEFT

ALIGN_NONE

protected static final int ALIGN_NONE

ALIGN_RIGHT

protected static final int ALIGN_RIGHT

adjustForWindow

protected boolean adjustForWindow

align

protected int align

bgcolix

protected short bgcolix

boxHeight

protected float boxHeight

boxWidth

protected float boxWidth

boxX

protected float boxX

boxXY

protected final float[] boxXY

boxY

protected float boxY

colix

protected short colix

g3d

protected JmolRendererInterface g3d

hAlignNames

protected static final String[] hAlignNames

hidden

boolean hidden

isLabelOrHover

protected boolean isLabelOrHover

modelIndex

int modelIndex

movableX

protected int movableX

movableXPercent

protected int movableXPercent

movableY

protected int movableY

movableYPercent

protected int movableYPercent

movableZ

protected int movableZ

movableZPercent

protected int movableZPercent

offsetX

protected int offsetX

offsetY

protected int offsetY

pointer

protected int pointer

POINTER_BACKGROUND

public static final int POINTER_BACKGROUND

POINTER_NONE

public static final int POINTER_NONE

POINTER_ON

public static final int POINTER_ON

scalePixelsPerMicron

protected float scalePixelsPerMicron

script

protected String script

target

String target

vAlignNames

protected static final String[] vAlignNames

valign

public int valign

viewer

protected Viewer viewer

visible

boolean visible

VALIGN_BOTTOM

protected static final int VALIGN_BOTTOM

VALIGN_MIDDLE

protected static final int VALIGN_MIDDLE

VALIGN_TOP

protected static final int VALIGN_TOP

VALIGN_XY

public static final int VALIGN_XY

VALIGN_XYZ

public static final int VALIGN_XYZ

windowHeight

protected int windowHeight

windowWidth

protected int windowWidth

xyz

public Point3f xyz

z

protected int z

zSlab

protected int zSlab

Constructor Detail

Object2d

protected Object2d()

Object2d

protected Object2d(Viewer viewer, Graphics3D g3d, String target, short colix, int valign, int align, float scalePixelsPerMicron)

Method Detail

checkObjectClicked

public boolean checkObjectClicked(int x, int y, BitSet bsVisible)

drawPointer

protected void drawPointer(JmolRendererInterface g3d)

getAlignment

static String getAlignment(int align)

getPointer

static String getPointer(int pointer)

getScalePixelsPerMicron

float getScalePixelsPerMicron()

getScript

public String getScript()

getXOffset

static int getXOffset(int offset)

getYOffset

static int getYOffset(int offset)

recalc

protected abstract void recalc()

setAdjustForWindow

public void setAdjustForWindow(boolean TF)

setAlignment

boolean setAlignment(String align)

setAlignment

boolean setAlignment(int align)

setBgColix

void setBgColix(short colix)

setBgColix

void setBgColix(Object value)

setBoxOffsetsInWindow

protected void setBoxOffsetsInWindow(float margin, float vMargin, float vTop)

setColix

void setColix(short colix)

setColix

void setColix(Object value)

setModel

void setModel(int modelIndex)

setMovableX

public void setMovableX(int x)

setMovableXPercent

public void setMovableXPercent(int x)

setMovableY

public void setMovableY(int y)

setMovableYPercent

public void setMovableYPercent(int y)

setMovableZ

public void setMovableZ(int z)

setMovableZPercent

public void setMovableZPercent(int z)

setOffset

void setOffset(int offset)

setPointer

void setPointer(int pointer)

setProperty

public static boolean setProperty(String propertyName, Object value, Object2d currentObject)

setScalePixelsPerMicron

public void setScalePixelsPerMicron(float scalePixelsPerMicron)

setScript

public void setScript(String script)

setTranslucent

void setTranslucent(float level, boolean isBackground)

setVisibility

public void setVisibility(boolean TF)

setWindow

protected void setWindow(JmolRendererInterface g3d, float scalePixelsPerMicron)

setXY

void setXY(int x, int y)

setXYZ

public void setXYZ(Point3f xyz)

setXYZs

public void setXYZs(int x, int y, int z, int zSlab)

setZs

void setZs(int z, int zSlab)