public class HepRepPanel extends org.freehep.graphics2d.BufferedPanel implements GraphicsPanel, Resetable, HasBoundingBox, HasNearestPoint, org.freehep.xml.io.XMLIO
| Modifier and Type | Class and Description |
|---|---|
static interface |
HepRepPanel.InstanceListener |
JPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
HepRepPanel(HepRepGraphicsMode mode)
Creates a HepRep panel of dimension 800x600.
|
HepRepPanel(HepRepGraphicsMode mode,
HepRepPanelModel model)
Creates a HepRep panel of dimension 800x600.
|
HepRepPanel(HepRepGraphicsMode mode,
ViewPort viewPort,
HepRepPanelModel model)
Creates a HepRep panel of dimension 800x600 with the specified ViewPort.
|
| Modifier and Type | Method and Description |
|---|---|
HepRepPanel |
clone()
Returns a copy of this panel, attached to this panel's model.
|
HepRepPanel |
copy()
Returns a deep copy of this panel.
|
void |
draw(org.freehep.graphics2d.VectorGraphics graphics,
boolean fast,
List layers,
Set types,
boolean pick) |
Rectangle2D |
getBoundingBoxForPlot()
Returns the bounding box for this plot in its current
projection/viewpoint.
|
Feature |
getFeature(Class featureClass)
Returns the feature for a specific featureClass, or null if that
featureClass if not in the projection of this panel.
|
HepRepGraphicsMode |
getGraphicsMode()
Returns the GraphicsMode.
|
Set |
getMissingDrawAsValues()
Returns a set of DrawAs values for which no DrawAs service was available.
|
HepRepPanelModel |
getModel() |
Point2D |
getNearestPoint(Point2D p) |
Projection |
getProjection()
Returns the projection for this panel.
|
HepRep |
getRecord()
Returns the HepRep instance currently displayed in this panel.
|
ViewPort |
getViewPort()
Returns the viewport for this panel.
|
Set |
getVisibleInstances() |
Set |
getVisibleTypes() |
JPopupMenu |
modifyPopupMenu(JPopupMenu menu,
RecordPlot plot)
Allows for modification of the popup menu
|
void |
paintComponent(org.freehep.graphics2d.VectorGraphics graphics)
Paints the HepRep into this panel.
|
void |
repaint() |
Object |
reset(Object newState)
Resets graphics panel to a new state or its initial state.
|
void |
restore(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl) |
void |
save(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl) |
void |
setBounds(int x,
int y,
int width,
int height) |
void |
setFastMode(boolean fast)
Switches to a fast mode for drawing (optional).
|
void |
setGraphicsMode(HepRepGraphicsMode mode) |
void |
setHepRepInstanceListener(HepRepPanel.InstanceListener listener) |
void |
setModel(HepRepPanelModel model) |
void |
setProjection(Projection projection)
Sets the projection for this panel.
|
void |
setRecord(Object object)
Sets the HepRep to be displayed in this panel and repaints.
|
void |
setSelected(RecordPlot plot,
boolean selected)
Designates the panel as selected.
|
boolean |
supports(Class featureClass)
Return true if feature is available
|
getBufferedGraphics, invalidate, isDisplaying, isExporting, isPrinting, paintComponentgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic HepRepPanel(HepRepGraphicsMode mode)
public HepRepPanel(HepRepGraphicsMode mode, HepRepPanelModel model)
public HepRepPanel(HepRepGraphicsMode mode, ViewPort viewPort, HepRepPanelModel model)
public HepRepPanelModel getModel()
public HepRep getRecord()
getRecord in interface GraphicsPanelpublic void setModel(HepRepPanelModel model)
public void setHepRepInstanceListener(HepRepPanel.InstanceListener listener)
public HepRepPanel clone()
public HepRepPanel copy()
copy in interface GraphicsPanelpublic void setRecord(Object object)
setRecord in interface GraphicsPanelpublic Object reset(Object newState)
Resetablepublic void setProjection(Projection projection)
public void setBounds(int x,
int y,
int width,
int height)
setBounds in class org.freehep.graphics2d.BufferedPanelpublic void setFastMode(boolean fast)
GraphicsPanelsetFastMode in interface GraphicsPanelpublic void setSelected(RecordPlot plot, boolean selected)
GraphicsPanelsetSelected in interface GraphicsPanelpublic JPopupMenu modifyPopupMenu(JPopupMenu menu, RecordPlot plot)
GraphicsPanelmodifyPopupMenu in interface GraphicsPanelpublic void setGraphicsMode(HepRepGraphicsMode mode)
public Set getVisibleTypes()
public Set getVisibleInstances()
public boolean supports(Class featureClass)
GraphicsPanelsupports in interface GraphicsPanelpublic Feature getFeature(Class featureClass)
getFeature in interface GraphicsPanelpublic Projection getProjection()
public Rectangle2D getBoundingBoxForPlot()
getBoundingBoxForPlot in interface HasBoundingBoxpublic Point2D getNearestPoint(Point2D p)
getNearestPoint in interface HasNearestPointpublic ViewPort getViewPort()
getViewPort in interface GraphicsPanelpublic HepRepGraphicsMode getGraphicsMode()
public Set getMissingDrawAsValues()
public void repaint()
repaint in class org.freehep.graphics2d.BufferedPanelpublic void paintComponent(org.freehep.graphics2d.VectorGraphics graphics)
paintComponent in class org.freehep.graphics2d.BufferedPanelpublic void draw(org.freehep.graphics2d.VectorGraphics graphics,
boolean fast,
List layers,
Set types,
boolean pick)
public void save(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl)
save in interface org.freehep.xml.io.XMLIOpublic void restore(org.freehep.xml.io.XMLIOManager xmlioManager,
org.jdom.Element nodeEl)
restore in interface org.freehep.xml.io.XMLIOCopyright © 1996-2014 FreeHEP. All Rights Reserved.