de.jreality.ui
Class AppearanceInspector

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by de.jreality.ui.AppearanceInspector
All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener

public class AppearanceInspector
extends JPanel
implements ActionListener, ChangeListener

The gui component of the ContentAppearance plugin.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Field Summary
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
AppearanceInspector()
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 Appearance getAppearance()
           
 Color getFaceColor()
           
 Color getFaceLabelColor()
           
 int getFaceLabelResolution()
           
 double getFaceLabelSize()
           
 double getFaceReflection()
           
 Color getLineColor()
           
 Color getLineLabelColor()
           
 int getLineLabelResolution()
           
 double getLineLabelSize()
           
 double getLineReflection()
           
 int getLogarithmicRange()
           
 double getMaximalRadius()
           
 double getObjectScale()
           
 Color getPointColor()
           
 Color getPointLabelColor()
           
 int getPointLabelResolution()
           
 double getPointLabelSize()
           
 double getPointRadius()
           
 double getPointReflection()
           
 String getTexture()
           
 Matrix getTextureMatrix()
           
 Map<String,String> getTextures()
           
 double getTextureScale()
           
 double getTransparency()
           
 double getTubeRadius()
           
 boolean isFacesFlat()
           
 boolean isFacesReflecting()
           
 boolean isLinesReflecting()
           
 boolean isPointsReflecting()
           
 boolean isShowFaceLabels()
           
 boolean isShowFaces()
           
 boolean isShowLineLabels()
           
 boolean isShowLines()
           
 boolean isShowPointLabels()
           
 boolean isShowPoints()
           
 boolean isSpheres()
           
 boolean isTransparencyEnabled()
           
 boolean isTubes()
           
 void setAppearance(Appearance appearance)
           
 void setColorPickerMode(int mode)
           
 void setFaceColor(Color c)
           
 void setFaceLabelColor(Color color)
           
 void setFaceLabelResolution(int res)
           
 void setFaceLabelSize(double size)
           
 void setFaceReflection(double d)
           
 void setFacesFlat(boolean b)
           
 void setFacesReflecting(boolean b)
           
 void setLineColor(Color c)
           
 void setLineLabelColor(Color color)
           
 void setLineLabelResolution(int res)
           
 void setLineLabelSize(double size)
           
 void setLineReflection(double d)
           
 void setLinesReflecting(boolean b)
           
 void setLogarithmicRange(int logarithmicRange)
           
 void setMaximalRadius(double maximalRadius)
           
 void setObjectScale(double d)
           
 void setPointColor(Color c)
           
 void setPointLabelColor(Color color)
           
 void setPointLabelResolution(int res)
           
 void setPointLabelSize(double size)
           
 void setPointRadius(double d)
           
 void setPointReflection(double d)
           
 void setPointsReflecting(boolean b)
           
 void setShowFaceLabels(boolean show)
           
 void setShowFaces(boolean selected)
           
 void setShowLineLabels(boolean show)
           
 void setShowLines(boolean selected)
           
 void setShowPointLabels(boolean show)
           
 void setShowPoints(boolean selected)
           
 void setSpheres(boolean b)
           
 void setTexture(String texture)
           
 void setTextures(HashMap<String,String> textures)
           
 void setTextureScale(double scale)
           
 void setTransparency(double d)
           
 void setTransparencyEnabled(boolean b)
           
 void setTubeRadius(double d)
           
 void setTubes(boolean b)
           
 void stateChanged(ChangeEvent e)
           
 void updateAll()
           
 void updateEnabledStates()
           
 void updateUI()
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, hide, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AppearanceInspector

public AppearanceInspector()
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

updateAll

public void updateAll()

stateChanged

public void stateChanged(ChangeEvent e)
Specified by:
stateChanged in interface ChangeListener

getTextures

public Map<String,String> getTextures()

setTextures

public void setTextures(HashMap<String,String> textures)

updateEnabledStates

public void updateEnabledStates()

setColorPickerMode

public void setColorPickerMode(int mode)

getAppearance

public Appearance getAppearance()

setAppearance

public void setAppearance(Appearance appearance)

getMaximalRadius

public double getMaximalRadius()

getObjectScale

public double getObjectScale()

setObjectScale

public void setObjectScale(double d)

setMaximalRadius

public void setMaximalRadius(double maximalRadius)

getLogarithmicRange

public int getLogarithmicRange()

setLogarithmicRange

public void setLogarithmicRange(int logarithmicRange)

isShowPoints

public boolean isShowPoints()

setShowPoints

public void setShowPoints(boolean selected)

isSpheres

public boolean isSpheres()

setSpheres

public void setSpheres(boolean b)

isPointsReflecting

public boolean isPointsReflecting()

setPointsReflecting

public void setPointsReflecting(boolean b)

getPointReflection

public double getPointReflection()

setPointReflection

public void setPointReflection(double d)

getPointRadius

public double getPointRadius()

setPointRadius

public void setPointRadius(double d)

getPointColor

public Color getPointColor()

setPointColor

public void setPointColor(Color c)

isShowLines

public boolean isShowLines()

setShowLines

public void setShowLines(boolean selected)

isTubes

public boolean isTubes()

setTubes

public void setTubes(boolean b)

getLineReflection

public double getLineReflection()

setLineReflection

public void setLineReflection(double d)

getTubeRadius

public double getTubeRadius()

setTubeRadius

public void setTubeRadius(double d)

getLineColor

public Color getLineColor()

setLineColor

public void setLineColor(Color c)

isLinesReflecting

public boolean isLinesReflecting()

setLinesReflecting

public void setLinesReflecting(boolean b)

isShowFaces

public boolean isShowFaces()

setShowFaces

public void setShowFaces(boolean selected)

isFacesFlat

public boolean isFacesFlat()

setFacesFlat

public void setFacesFlat(boolean b)

isTransparencyEnabled

public boolean isTransparencyEnabled()

setTransparencyEnabled

public void setTransparencyEnabled(boolean b)

isFacesReflecting

public boolean isFacesReflecting()

setFacesReflecting

public void setFacesReflecting(boolean b)

getFaceReflection

public double getFaceReflection()

setFaceReflection

public void setFaceReflection(double d)

getTransparency

public double getTransparency()

setTransparency

public void setTransparency(double d)

getFaceColor

public Color getFaceColor()

setFaceColor

public void setFaceColor(Color c)

getTexture

public String getTexture()

setTexture

public void setTexture(String texture)

getTextureScale

public double getTextureScale()

setTextureScale

public void setTextureScale(double scale)

getTextureMatrix

public Matrix getTextureMatrix()

setShowPointLabels

public void setShowPointLabels(boolean show)

setShowLineLabels

public void setShowLineLabels(boolean show)

setShowFaceLabels

public void setShowFaceLabels(boolean show)

isShowPointLabels

public boolean isShowPointLabels()

isShowLineLabels

public boolean isShowLineLabels()

isShowFaceLabels

public boolean isShowFaceLabels()

setPointLabelColor

public void setPointLabelColor(Color color)

setLineLabelColor

public void setLineLabelColor(Color color)

setFaceLabelColor

public void setFaceLabelColor(Color color)

getPointLabelColor

public Color getPointLabelColor()

getLineLabelColor

public Color getLineLabelColor()

getFaceLabelColor

public Color getFaceLabelColor()

getPointLabelSize

public double getPointLabelSize()

getLineLabelSize

public double getLineLabelSize()

getFaceLabelSize

public double getFaceLabelSize()

setPointLabelSize

public void setPointLabelSize(double size)

setLineLabelSize

public void setLineLabelSize(double size)

setFaceLabelSize

public void setFaceLabelSize(double size)

getPointLabelResolution

public int getPointLabelResolution()

getLineLabelResolution

public int getLineLabelResolution()

getFaceLabelResolution

public int getFaceLabelResolution()

setPointLabelResolution

public void setPointLabelResolution(int res)

setLineLabelResolution

public void setLineLabelResolution(int res)

setFaceLabelResolution

public void setFaceLabelResolution(int res)

updateUI

public void updateUI()
Overrides:
updateUI in class JPanel