org.openxri.admin.resources
Class AuthorityImageResource

java.lang.Object
  extended by org.apache.wicket.Resource
      extended by org.apache.wicket.markup.html.WebResource
          extended by org.apache.wicket.markup.html.DynamicWebResource
              extended by org.apache.wicket.markup.html.image.resource.DynamicImageResource
                  extended by org.apache.wicket.markup.html.image.resource.RenderedDynamicImageResource
                      extended by org.openxri.admin.resources.AuthorityImageResource
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.IClusterable, org.apache.wicket.IRequestListener, org.apache.wicket.IResourceListener

public class AuthorityImageResource
extends org.apache.wicket.markup.html.image.resource.RenderedDynamicImageResource

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.wicket.markup.html.DynamicWebResource
org.apache.wicket.markup.html.DynamicWebResource.ResourceState
 
Field Summary
protected static java.awt.Color AUTHORITY_COLOR
           
protected static int AUTHORITY_HEIGHT
           
protected static int AUTHORITY_WIDTH
           
protected static int BOTTOM
           
protected static java.awt.Color CENTER_AUTHORITY_COLOR
           
protected static int CENTER_AUTHORITY_HEIGHT
           
protected static int CENTER_AUTHORITY_WIDTH
           
protected static int CENTER_X
           
protected static int CENTER_Y
           
protected  java.lang.String[] childSubSegmentNames
           
protected static int HEIGHT
           
protected static int IMAGE_HEIGHT
           
protected static int IMAGE_PADDING_X
           
protected static int IMAGE_PADDING_Y
           
protected static int IMAGE_WIDTH
           
protected static int LEFT
           
protected static java.awt.Color LINE_COLOR
           
protected static java.awt.Stroke LINE_STROKE
           
protected static int RIGHT
           
protected  java.lang.String[] subSegmentNames
           
protected static java.awt.Color TEXT_COLOR
           
protected static java.awt.Font TEXT_FONT
           
protected static int TOP
           
protected static int WIDTH
           
 
Fields inherited from interface org.apache.wicket.IResourceListener
INTERFACE
 
Constructor Summary
AuthorityImageResource(Authority authority)
           
 
Method Summary
 org.apache.wicket.markup.html.link.ImageMap createImageMap(java.lang.String id)
           
protected  boolean render(java.awt.Graphics2D graphics)
           
protected  void renderAuthority(java.awt.Graphics2D graphics, int x, int y, java.lang.String name)
           
protected  void renderCenterAuthority(java.awt.Graphics2D graphics)
           
protected  void renderChildren(java.awt.Graphics2D graphics)
           
protected  void renderParents(java.awt.Graphics2D graphics)
           
 
Methods inherited from class org.apache.wicket.markup.html.image.resource.RenderedDynamicImageResource
getHeight, getImageData, getType, getWidth, invalidate, render, setHeight, setType, setWidth
 
Methods inherited from class org.apache.wicket.markup.html.image.resource.DynamicImageResource
getFormat, getResourceState, setFormat, setLastModifiedTime, toImageData
 
Methods inherited from class org.apache.wicket.markup.html.DynamicWebResource
getLocale, getResourceStream, setHeaders
 
Methods inherited from class org.apache.wicket.markup.html.WebResource
configureResponse, getCacheDuration
 
Methods inherited from class org.apache.wicket.Resource
getParameters, isCacheable, onResourceRequested, setCacheable, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMAGE_WIDTH

protected static final int IMAGE_WIDTH
See Also:
Constant Field Values

IMAGE_HEIGHT

protected static final int IMAGE_HEIGHT
See Also:
Constant Field Values

IMAGE_PADDING_X

protected static final int IMAGE_PADDING_X
See Also:
Constant Field Values

IMAGE_PADDING_Y

protected static final int IMAGE_PADDING_Y
See Also:
Constant Field Values

LEFT

protected static final int LEFT
See Also:
Constant Field Values

TOP

protected static final int TOP
See Also:
Constant Field Values

RIGHT

protected static final int RIGHT
See Also:
Constant Field Values

BOTTOM

protected static final int BOTTOM
See Also:
Constant Field Values

WIDTH

protected static final int WIDTH
See Also:
Constant Field Values

HEIGHT

protected static final int HEIGHT
See Also:
Constant Field Values

CENTER_X

protected static final int CENTER_X
See Also:
Constant Field Values

CENTER_Y

protected static final int CENTER_Y
See Also:
Constant Field Values

CENTER_AUTHORITY_WIDTH

protected static final int CENTER_AUTHORITY_WIDTH
See Also:
Constant Field Values

CENTER_AUTHORITY_HEIGHT

protected static final int CENTER_AUTHORITY_HEIGHT
See Also:
Constant Field Values

AUTHORITY_WIDTH

protected static final int AUTHORITY_WIDTH
See Also:
Constant Field Values

AUTHORITY_HEIGHT

protected static final int AUTHORITY_HEIGHT
See Also:
Constant Field Values

CENTER_AUTHORITY_COLOR

protected static final java.awt.Color CENTER_AUTHORITY_COLOR

AUTHORITY_COLOR

protected static final java.awt.Color AUTHORITY_COLOR

LINE_COLOR

protected static final java.awt.Color LINE_COLOR

LINE_STROKE

protected static final java.awt.Stroke LINE_STROKE

TEXT_COLOR

protected static final java.awt.Color TEXT_COLOR

TEXT_FONT

protected static final java.awt.Font TEXT_FONT

subSegmentNames

protected java.lang.String[] subSegmentNames

childSubSegmentNames

protected java.lang.String[] childSubSegmentNames
Constructor Detail

AuthorityImageResource

public AuthorityImageResource(Authority authority)
                       throws StoreException
Throws:
StoreException
Method Detail

render

protected boolean render(java.awt.Graphics2D graphics)
Specified by:
render in class org.apache.wicket.markup.html.image.resource.RenderedDynamicImageResource

renderParents

protected void renderParents(java.awt.Graphics2D graphics)

renderChildren

protected void renderChildren(java.awt.Graphics2D graphics)

renderCenterAuthority

protected void renderCenterAuthority(java.awt.Graphics2D graphics)

renderAuthority

protected void renderAuthority(java.awt.Graphics2D graphics,
                               int x,
                               int y,
                               java.lang.String name)

createImageMap

public org.apache.wicket.markup.html.link.ImageMap createImageMap(java.lang.String id)


Copyright © 2005-2012. All Rights Reserved.