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.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, 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.
|
hep.graphics.heprep.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) |
void |
paintComponent(org.freehep.graphics2d.VectorGraphics graphics)
Paints the HepRep into this panel.
|
void |
repaint() |
Object |
reset(Object newState) |
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) |
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) |
boolean |
supports(Class featureClass) |
getBufferedGraphics, invalidate, isDisplaying, isExporting, isPrinting, paintComponent
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, 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, update
add, 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, validateTree
action, 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, transferFocusUpCycle
public HepRepPanel(HepRepGraphicsMode mode)
public HepRepPanel(HepRepGraphicsMode mode, HepRepPanelModel model)
public HepRepPanel(HepRepGraphicsMode mode, ViewPort viewPort, HepRepPanelModel model)
public HepRepPanelModel getModel()
public hep.graphics.heprep.HepRep getRecord()
getRecord
in interface GraphicsPanel
public void setModel(HepRepPanelModel model)
public void setHepRepInstanceListener(HepRepPanel.InstanceListener listener)
public HepRepPanel clone()
public HepRepPanel copy()
copy
in interface GraphicsPanel
public void setRecord(Object object)
setRecord
in interface GraphicsPanel
public void setProjection(Projection projection)
public void setBounds(int x, int y, int width, int height)
setBounds
in class org.freehep.graphics2d.BufferedPanel
public void setFastMode(boolean fast)
setFastMode
in interface GraphicsPanel
public void setSelected(RecordPlot plot, boolean selected)
setSelected
in interface GraphicsPanel
public JPopupMenu modifyPopupMenu(JPopupMenu menu, RecordPlot plot)
modifyPopupMenu
in interface GraphicsPanel
public void setGraphicsMode(HepRepGraphicsMode mode)
public Set getVisibleTypes()
public Set getVisibleInstances()
public boolean supports(Class featureClass)
supports
in interface GraphicsPanel
public Feature getFeature(Class featureClass)
getFeature
in interface GraphicsPanel
public Projection getProjection()
public Rectangle2D getBoundingBoxForPlot()
getBoundingBoxForPlot
in interface HasBoundingBox
public Point2D getNearestPoint(Point2D p)
getNearestPoint
in interface HasNearestPoint
public ViewPort getViewPort()
getViewPort
in interface GraphicsPanel
public HepRepGraphicsMode getGraphicsMode()
public Set getMissingDrawAsValues()
public void repaint()
repaint
in class org.freehep.graphics2d.BufferedPanel
public void paintComponent(org.freehep.graphics2d.VectorGraphics graphics)
paintComponent
in class org.freehep.graphics2d.BufferedPanel
public 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.XMLIO
public void restore(org.freehep.xml.io.XMLIOManager xmlioManager, org.jdom.Element nodeEl)
restore
in interface org.freehep.xml.io.XMLIO
Copyright © 1996-2014 FreeHEP. All Rights Reserved.