Top Fields Constructors Methods
org.apache.pdfbox.debugger.ui

public Class HighResolutionImageIcon

extends Object
implements Icon
Class Inheritance
All Implemented Interfaces
javax.swing.Icon
Imports
java.awt.Component, .Graphics, .Image, javax.swing.Icon

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final Image

Constructor Summary

AccessConstructor and Description
public
HighResolutionImageIcon(Image image, int baseWidth, int baseHeight)

Method Summary

Modifier and TypeMethod and Description
public int
getIconHeight()

Implements javax.swing.Icon.getIconHeight.

Returns the icon's height.

public int
getIconWidth()

Implements javax.swing.Icon.getIconWidth.

Returns the icon's width.

public void
paintIcon(Component
a Component to get properties useful for painting
c
,
Graphics
the graphics context
g
,
int
the X coordinate of the icon's top-left corner
x
,
int
the Y coordinate of the icon's top-left corner
y
)

Implements javax.swing.Icon.paintIcon.

Draw the icon at the specified location.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

baseHeightback to summary
private final int baseHeight
baseWidthback to summary
private final int baseWidth
imageback to summary
private final Image image

Constructor Detail

HighResolutionImageIconback to summary
public HighResolutionImageIcon(Image image, int baseWidth, int baseHeight)

Method Detail

getIconHeightback to summary
public int getIconHeight()

Implements javax.swing.Icon.getIconHeight.

Doc from javax.swing.Icon.getIconHeight.

Returns the icon's height.

Returns:int

an int specifying the fixed height of the icon.

Annotations
@Override
getIconWidthback to summary
public int getIconWidth()

Implements javax.swing.Icon.getIconWidth.

Doc from javax.swing.Icon.getIconWidth.

Returns the icon's width.

Returns:int

an int specifying the fixed width of the icon.

Annotations
@Override
paintIconback to summary
public void paintIcon(Component c, Graphics g, int x, int y)

Implements javax.swing.Icon.paintIcon.

Doc from javax.swing.Icon.paintIcon.

Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.

Parameters
c:Component

a Component to get properties useful for painting

g:Graphics

the graphics context

x:int

the X coordinate of the icon's top-left corner

y:int

the Y coordinate of the icon's top-left corner

Annotations
@Override