gui
Class MultiCertOverview

java.lang.Object
  extended by gui.dialog.JAPDialog
      extended by gui.MultiCertOverview
All Implemented Interfaces:
IDialogOptions, java.awt.event.MouseListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

public class MultiCertOverview
extends JAPDialog
implements java.awt.event.MouseListener

Author:
Robert Hirschberger

Nested Class Summary
 
Nested classes/interfaces inherited from class gui.dialog.JAPDialog
JAPDialog.AbstractLinkedURLAdapter, JAPDialog.ILinkedInformation, JAPDialog.LinkedCheckBox, JAPDialog.LinkedHelpContext, JAPDialog.LinkedInformation, JAPDialog.LinkedInformationAdapter, JAPDialog.LinkedURLCheckBox, JAPDialog.Options
 
Field Summary
private static java.lang.String EXPLANATION
           
private static java.lang.String HINT_ARROW
           
private static java.lang.String HINT_CERT_DETAILS
           
private static java.lang.String HINT_IS
           
private static java.lang.String HINT_MIX
           
private static java.lang.String HINT_OP
           
private static java.lang.String HINT_ROOT_CERTS
           
private static java.lang.String IMG_ARROW_NORTH
           
private static java.lang.String IMG_ARROW_NORTH_EAST
           
private static java.lang.String IMG_ARROW_NORTH_EAST_NOK
           
private static java.lang.String IMG_ARROW_NORTH_NOK
           
private static java.lang.String IMG_ARROW_NORTH_WEST
           
private static java.lang.String IMG_ARROW_NORTH_WEST_NOK
           
private static java.lang.String IMG_BOX_BLUE
           
private static java.lang.String IMG_BOX_ORANGE
           
private static java.lang.String IMG_BOX_PURPLE
           
private static java.lang.String IMG_CERT_BLUE_INVALID
           
private static java.lang.String IMG_CERT_BLUE_INVALID_DARK
           
private static java.lang.String IMG_CERT_BLUE_NOK
           
private static java.lang.String IMG_CERT_BLUE_NOK_DARK
           
private static java.lang.String IMG_CERT_BLUE_OK
           
private static java.lang.String IMG_CERT_BLUE_OK_DARK
           
private static java.lang.String IMG_CERT_ORANGE_INVALID
           
private static java.lang.String IMG_CERT_ORANGE_INVALID_DARK
           
private static java.lang.String IMG_CERT_ORANGE_NOK
           
private static java.lang.String IMG_CERT_ORANGE_NOK_DARK
           
private static java.lang.String IMG_CERT_ORANGE_OK
           
private static java.lang.String IMG_CERT_ORANGE_OK_DARK
           
private static java.lang.String IMG_CERT_PURPLE_INVALID
           
private static java.lang.String IMG_CERT_PURPLE_INVALID_DARK
           
private static java.lang.String IMG_CERT_PURPLE_NOK
           
private static java.lang.String IMG_CERT_PURPLE_NOK_DARK
           
private static java.lang.String IMG_CERT_PURPLE_OK
           
private static java.lang.String IMG_CERT_PURPLE_OK_DARK
           
static java.lang.String IMG_INVALID
           
static java.lang.String IMG_NOT_TRUSTED
           
private static java.lang.String IMG_PATH
          Images
static java.lang.String IMG_TRUSTED
           
static java.lang.String IMG_TRUSTED_DOUBLE
           
static java.lang.String IMG_TRUSTED_THREE_CERTS
           
private  java.util.Hashtable m_buttonsAndNodes
           
private  MultiCertTrustGraph m_graph
           
private  JAPHtmlMultiLineLabel m_lblSummary
           
private  MultiCertPath m_multiCertPath
           
private  java.lang.String m_name
           
private  CertPathInfo[] m_pathInfos
           
private static java.lang.String MSG_IDENTITY
           
private static java.lang.String MSG_IDENTITY_ONE
           
private static java.lang.String MSG_INVALID
           
private static java.lang.String MSG_IS_CERTS
           
private static java.lang.String MSG_MIX_CERTS
           
private static java.lang.String MSG_NOT_TRUSTED
           
private static java.lang.String MSG_NUMBER_OF_CERTS
           
private static java.lang.String MSG_NUMBER_OF_CERTS_ONE
           
private static java.lang.String MSG_NUMBER_OF_CERTS_ONE_EXPIRED
           
private static java.lang.String MSG_NUMBER_OF_CERTS_ONE_NOT_TRUSTED
           
private static java.lang.String MSG_NUMBER_OF_TRUSTED_CERTS
           
private static java.lang.String MSG_NUMBER_OF_TRUSTED_CERTS_ONE
           
private static java.lang.String MSG_OP_CERTS
           
private static java.lang.String MSG_ROOT_CERTS
           
private static java.lang.String MSG_SHOW_DETAILS
           
private static java.lang.String MSG_SYMBOLS
           
private static java.lang.String MSG_TRUSTED
           
private static java.lang.String MSG_VALID
           
private static java.lang.String SUMMARY
           
private static java.lang.String TITLE
          Messages
 
Fields inherited from class gui.dialog.JAPDialog
FORMAT_DEFAULT_SCREEN, FORMAT_GOLDEN_RATIO_PHI, FORMAT_WIDE_SCREEN, MSG_BTN_PROCEED, MSG_BTN_RETRY, MSG_ERROR_UNDISPLAYABLE, MSG_ERROR_UNKNOWN, MSG_TITLE_CONFIRMATION, MSG_TITLE_ERROR, MSG_TITLE_INFO, MSG_TITLE_WARNING, XML_ATTR_OPTIMIZED_FORMAT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Fields inherited from interface gui.dialog.IDialogOptions
MESSAGE_TYPE_ERROR, MESSAGE_TYPE_INFORMATION, MESSAGE_TYPE_PLAIN, MESSAGE_TYPE_QUESTION, MESSAGE_TYPE_WARNING, OPTION_TYPE_CANCEL, OPTION_TYPE_DEFAULT, OPTION_TYPE_EMPTY, OPTION_TYPE_OK_CANCEL, OPTION_TYPE_YES_NO, OPTION_TYPE_YES_NO_CANCEL, RETURN_VALUE_CANCEL, RETURN_VALUE_CLOSED, RETURN_VALUE_NO, RETURN_VALUE_OK, RETURN_VALUE_UNINITIALIZED, RETURN_VALUE_YES
 
Constructor Summary
MultiCertOverview(java.awt.Component a_parent, MultiCertPath a_multiCertPath, java.lang.String a_name, boolean isInfoService)
           
 
Method Summary
private  void drawArrow(javax.swing.JPanel parent, int gridx, int gridy, int orientation, boolean trusted)
           
private  void drawCertPanel(javax.swing.JPanel parent, int gridx, int gridy, int gridwidth, MultiCertTrustGraph.Node node)
           
private  javax.swing.JPanel drawExplanationPanel()
           
private  javax.swing.JPanel drawOverviewPanel(boolean isInfoService)
           
private  int drawSubGraph(javax.swing.JPanel parent, MultiCertTrustGraph.Node node, int x, int y)
           
private  javax.swing.JPanel drawSummaryPanel(boolean isInfoService)
           
private  void drawTrustGraph(javax.swing.JPanel parent)
           
private  void finishSummaryPanel(javax.swing.JPanel a_summary)
           
private  java.lang.String getToolTipText(JAPCertificate a_cert)
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 
Methods inherited from class gui.dialog.JAPDialog
addComponentListener, addWindowListener, dispose, doClosingOnContentPaneCancel, getAccessibleContext, getContentPane, getDefaultCloseOperation, getFont, getGlassPane, getInsets, getJMenuBar, getLayeredPane, getLocation, getName, getOptimizedFormat, getOptimizedFormatDelta, getOptimizedFormatDelta, getOptimizedFormatInternal, getOwner, getParentComponent, getPreferredSize, getRootPane, getScreenBounds, getSize, getTitle, imageUpdate, isClosingOnContentPaneCancel, isConsoleOnly, isDisposed, isEnabled, isModal, isResizable, isVisible, moveToUpRightCorner, pack, postEvent, remove, removeComponentListener, removeWindowListener, requestFocus, resetAutomaticLocation, restoreLocation, restoreSize, retrieveErrorMessage, setAlwaysOnTop, setConsoleOnly, setContentPane, setDefaultCloseOperation, setDockable, setEnabled, setGlassPane, setJMenuBar, setLayeredPane, setLocation, setLocation, setLocationCenteredOn, setLocationCenteredOnOwner, setLocationCenteredOnParent, setLocationCenteredOnScreen, setLocationRelativeToOwner, setModal, setName, setOptimizedFormat, setResizable, setSize, setSize, setTitle, setVisible, setVisible, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showConfirmDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showErrorDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showMessageDialog, showWarningDialog, showWarningDialog, showWarningDialog, showWarningDialog, showWarningDialog, showWarningDialog, showWarningDialog, showWarningDialog, showYesNoDialog, showYesNoDialog, showYesNoDialog, showYesNoDialog, showYesNoDialog, showYesNoDialog, showYesNoDialog, showYesNoDialog, toBack, toFront, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TITLE

private static final java.lang.String TITLE
Messages


SUMMARY

private static final java.lang.String SUMMARY

EXPLANATION

private static final java.lang.String EXPLANATION

MSG_NUMBER_OF_CERTS_ONE

private static final java.lang.String MSG_NUMBER_OF_CERTS_ONE

MSG_NUMBER_OF_CERTS_ONE_NOT_TRUSTED

private static final java.lang.String MSG_NUMBER_OF_CERTS_ONE_NOT_TRUSTED

MSG_NUMBER_OF_CERTS_ONE_EXPIRED

private static final java.lang.String MSG_NUMBER_OF_CERTS_ONE_EXPIRED

MSG_NUMBER_OF_CERTS

private static final java.lang.String MSG_NUMBER_OF_CERTS

MSG_NUMBER_OF_TRUSTED_CERTS_ONE

private static final java.lang.String MSG_NUMBER_OF_TRUSTED_CERTS_ONE

MSG_NUMBER_OF_TRUSTED_CERTS

private static final java.lang.String MSG_NUMBER_OF_TRUSTED_CERTS

MSG_IDENTITY_ONE

private static final java.lang.String MSG_IDENTITY_ONE

MSG_IDENTITY

private static final java.lang.String MSG_IDENTITY

MSG_SHOW_DETAILS

private static final java.lang.String MSG_SHOW_DETAILS

MSG_SYMBOLS

private static final java.lang.String MSG_SYMBOLS

MSG_TRUSTED

private static final java.lang.String MSG_TRUSTED

MSG_NOT_TRUSTED

private static final java.lang.String MSG_NOT_TRUSTED

MSG_VALID

private static final java.lang.String MSG_VALID

MSG_INVALID

private static final java.lang.String MSG_INVALID

MSG_ROOT_CERTS

private static final java.lang.String MSG_ROOT_CERTS

HINT_ROOT_CERTS

private static final java.lang.String HINT_ROOT_CERTS

MSG_OP_CERTS

private static final java.lang.String MSG_OP_CERTS

HINT_OP

private static final java.lang.String HINT_OP

MSG_MIX_CERTS

private static final java.lang.String MSG_MIX_CERTS

HINT_MIX

private static final java.lang.String HINT_MIX

MSG_IS_CERTS

private static final java.lang.String MSG_IS_CERTS

HINT_IS

private static final java.lang.String HINT_IS

HINT_ARROW

private static final java.lang.String HINT_ARROW

HINT_CERT_DETAILS

private static final java.lang.String HINT_CERT_DETAILS

IMG_PATH

private static final java.lang.String IMG_PATH
Images

See Also:
Constant Field Values

IMG_CERT_ORANGE_OK

private static final java.lang.String IMG_CERT_ORANGE_OK
See Also:
Constant Field Values

IMG_CERT_ORANGE_NOK

private static final java.lang.String IMG_CERT_ORANGE_NOK
See Also:
Constant Field Values

IMG_CERT_ORANGE_INVALID

private static final java.lang.String IMG_CERT_ORANGE_INVALID
See Also:
Constant Field Values

IMG_CERT_ORANGE_OK_DARK

private static final java.lang.String IMG_CERT_ORANGE_OK_DARK
See Also:
Constant Field Values

IMG_CERT_ORANGE_NOK_DARK

private static final java.lang.String IMG_CERT_ORANGE_NOK_DARK
See Also:
Constant Field Values

IMG_CERT_ORANGE_INVALID_DARK

private static final java.lang.String IMG_CERT_ORANGE_INVALID_DARK
See Also:
Constant Field Values

IMG_CERT_PURPLE_OK

private static final java.lang.String IMG_CERT_PURPLE_OK
See Also:
Constant Field Values

IMG_CERT_PURPLE_NOK

private static final java.lang.String IMG_CERT_PURPLE_NOK
See Also:
Constant Field Values

IMG_CERT_PURPLE_INVALID

private static final java.lang.String IMG_CERT_PURPLE_INVALID
See Also:
Constant Field Values

IMG_CERT_PURPLE_OK_DARK

private static final java.lang.String IMG_CERT_PURPLE_OK_DARK
See Also:
Constant Field Values

IMG_CERT_PURPLE_NOK_DARK

private static final java.lang.String IMG_CERT_PURPLE_NOK_DARK
See Also:
Constant Field Values

IMG_CERT_PURPLE_INVALID_DARK

private static final java.lang.String IMG_CERT_PURPLE_INVALID_DARK
See Also:
Constant Field Values

IMG_CERT_BLUE_OK

private static final java.lang.String IMG_CERT_BLUE_OK
See Also:
Constant Field Values

IMG_CERT_BLUE_NOK

private static final java.lang.String IMG_CERT_BLUE_NOK
See Also:
Constant Field Values

IMG_CERT_BLUE_INVALID

private static final java.lang.String IMG_CERT_BLUE_INVALID
See Also:
Constant Field Values

IMG_CERT_BLUE_OK_DARK

private static final java.lang.String IMG_CERT_BLUE_OK_DARK
See Also:
Constant Field Values

IMG_CERT_BLUE_NOK_DARK

private static final java.lang.String IMG_CERT_BLUE_NOK_DARK
See Also:
Constant Field Values

IMG_CERT_BLUE_INVALID_DARK

private static final java.lang.String IMG_CERT_BLUE_INVALID_DARK
See Also:
Constant Field Values

IMG_ARROW_NORTH

private static final java.lang.String IMG_ARROW_NORTH
See Also:
Constant Field Values

IMG_ARROW_NORTH_NOK

private static final java.lang.String IMG_ARROW_NORTH_NOK
See Also:
Constant Field Values

IMG_ARROW_NORTH_EAST

private static final java.lang.String IMG_ARROW_NORTH_EAST
See Also:
Constant Field Values

IMG_ARROW_NORTH_EAST_NOK

private static final java.lang.String IMG_ARROW_NORTH_EAST_NOK
See Also:
Constant Field Values

IMG_ARROW_NORTH_WEST

private static final java.lang.String IMG_ARROW_NORTH_WEST
See Also:
Constant Field Values

IMG_ARROW_NORTH_WEST_NOK

private static final java.lang.String IMG_ARROW_NORTH_WEST_NOK
See Also:
Constant Field Values

IMG_NOT_TRUSTED

public static final java.lang.String IMG_NOT_TRUSTED
See Also:
Constant Field Values

IMG_TRUSTED

public static final java.lang.String IMG_TRUSTED
See Also:
Constant Field Values

IMG_TRUSTED_DOUBLE

public static final java.lang.String IMG_TRUSTED_DOUBLE
See Also:
Constant Field Values

IMG_TRUSTED_THREE_CERTS

public static final java.lang.String IMG_TRUSTED_THREE_CERTS
See Also:
Constant Field Values

IMG_INVALID

public static final java.lang.String IMG_INVALID
See Also:
Constant Field Values

IMG_BOX_ORANGE

private static final java.lang.String IMG_BOX_ORANGE
See Also:
Constant Field Values

IMG_BOX_PURPLE

private static final java.lang.String IMG_BOX_PURPLE
See Also:
Constant Field Values

IMG_BOX_BLUE

private static final java.lang.String IMG_BOX_BLUE
See Also:
Constant Field Values

m_multiCertPath

private MultiCertPath m_multiCertPath

m_name

private java.lang.String m_name

m_buttonsAndNodes

private java.util.Hashtable m_buttonsAndNodes

m_pathInfos

private CertPathInfo[] m_pathInfos

m_graph

private MultiCertTrustGraph m_graph

m_lblSummary

private JAPHtmlMultiLineLabel m_lblSummary
Constructor Detail

MultiCertOverview

public MultiCertOverview(java.awt.Component a_parent,
                         MultiCertPath a_multiCertPath,
                         java.lang.String a_name,
                         boolean isInfoService)
Method Detail

drawSummaryPanel

private javax.swing.JPanel drawSummaryPanel(boolean isInfoService)

finishSummaryPanel

private void finishSummaryPanel(javax.swing.JPanel a_summary)

drawExplanationPanel

private javax.swing.JPanel drawExplanationPanel()

drawOverviewPanel

private javax.swing.JPanel drawOverviewPanel(boolean isInfoService)

drawTrustGraph

private void drawTrustGraph(javax.swing.JPanel parent)

drawSubGraph

private int drawSubGraph(javax.swing.JPanel parent,
                         MultiCertTrustGraph.Node node,
                         int x,
                         int y)

drawCertPanel

private void drawCertPanel(javax.swing.JPanel parent,
                           int gridx,
                           int gridy,
                           int gridwidth,
                           MultiCertTrustGraph.Node node)

drawArrow

private void drawArrow(javax.swing.JPanel parent,
                       int gridx,
                       int gridy,
                       int orientation,
                       boolean trusted)

getToolTipText

private java.lang.String getToolTipText(JAPCertificate a_cert)

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener