public class PwHistogram extends PjWorkshop
PuHistogram
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
ITEM_EDGE_LENGTH |
static int |
ITEM_ELEMENT_AREA |
static int |
ITEM_NORM_VECTOR_FIELD |
static int |
ITEM_SCALAR_FIELD |
static int |
ITEM_VERTEX_ANGLE |
HAS_BOUNDARY_PANEL, HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_LABEL_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, HAS_VECTOR_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_FOCUSSED, IS_PICKED, IS_SELECTED, IS_USED, NUM_TAGS
MODE_BUG, MODE_STANDARD, MODE_VALIDATE
Constructor and Description |
---|
PwHistogram()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close workshop and remove workshop from geometry as update listener.
|
int |
getItemType()
Get the item type which determines the displayed data.
|
void |
init()
Initialization
|
void |
reset()
Reset workshop and geometry to original state.
|
void |
setGeometry(PgElementSet geom)
Assign geometry to be analyzed.
|
void |
setItemType(int itemType)
Set the item type which determines the displayed data.
|
boolean |
update(java.lang.Object event)
Updates the geometry if this workshop has changed,
i.e. if the event is
this or null . |
cancel, getDisplay, getDisplays, getGeometry, getMode, getSavedGeometry, getViewer, isModal, isStandalone, ok, openDialog, removeGeometry, setDisplay, setDisplays, setGeometry, setModal, setMode, setStandalone, setViewer
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, toString, updatePanels
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFather, getName, setParent
public static final int ITEM_EDGE_LENGTH
public static final int ITEM_ELEMENT_AREA
public static final int ITEM_VERTEX_ANGLE
public static final int ITEM_SCALAR_FIELD
public static final int ITEM_NORM_VECTOR_FIELD
public void init()
init
in class PjWorkshop
public void reset()
reset
in class PjWorkshop
public void close()
close
in class PjWorkshop
public void setGeometry(PgElementSet geom)
geom
- geometry for analysispublic boolean update(java.lang.Object event)
PjWorkshop
this
or null
.
Also propagates update() to superclass with the original argument event.
Some subclasses may register themselves as update listener of the geometry of this workshop. In order to prevent an update loop, this method safely uses isUpdateSender() when updating the geometry.
update
in interface PsUpdateIf
update
in class PjWorkshop
event
- sender of this update.PsObject.setParent(PsUpdateIf)
,
PsObject.getFather()
,
PsObject.addUpdateListener(PsUpdateIf)
public int getItemType()
PwHistogram#ITEM_EDGE_LENGTH
etc.public void setItemType(int itemType)
PwHistogram#ITEM_EDGE_LENGTH
etc.itemType
- the new item type"