|
ej-technologies | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.gjt.jclasslib.browser.detail.attributes.code.ByteCodeDisplay
Bytecode renderer.
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
static Border |
BORDER
Border for the renderer. |
static int |
MARGIN_X
Horizontal margin. |
static int |
MARGIN_Y
Vertical margin. |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, 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 | |
ByteCodeDisplay(ByteCodeDetailPane detailPane)
Constructor. |
Method Summary | |
void |
copyToClipboard()
Copy the view text to the clipboard. |
int |
getAscent()
Get the curent line ascent. |
CodeAttribute |
getCodeAttribute()
Get the currently displayed code attribute. |
int |
getLineCount()
Get the current line count. |
int |
getLineHeight()
Get the current line height. |
static String |
getPaddedValue(int number,
int width)
Get the left-padded value for a number. |
Dimension |
getPreferredScrollableViewportSize()
|
int |
getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction)
|
boolean |
getScrollableTracksViewportHeight()
|
boolean |
getScrollableTracksViewportWidth()
|
int |
getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
|
boolean |
isLink(Point point)
Returns whether there is a link below the given point. |
void |
link(Point point)
Perform a link operation at a given point. |
protected void |
paintComponent(Graphics graphics)
|
void |
scrollToOffset(int offset)
Scroll the view to a given bytecode offset. |
void |
setCodeAttribute(CodeAttribute codeAttribute,
ClassFile classFile)
Set the code attribute that is to be displayed. |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int MARGIN_X
public static final int MARGIN_Y
public static final Border BORDER
Constructor Detail |
public ByteCodeDisplay(ByteCodeDetailPane detailPane)
detailPane
- the parent detail pane.Method Detail |
public static String getPaddedValue(int number, int width)
number
- the numberwidth
- the total width.
public Dimension getPreferredScrollableViewportSize()
getPreferredScrollableViewportSize
in interface Scrollable
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
getScrollableUnitIncrement
in interface Scrollable
public int getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
getScrollableBlockIncrement
in interface Scrollable
public boolean getScrollableTracksViewportWidth()
getScrollableTracksViewportWidth
in interface Scrollable
public boolean getScrollableTracksViewportHeight()
getScrollableTracksViewportHeight
in interface Scrollable
public CodeAttribute getCodeAttribute()
public int getLineCount()
public int getLineHeight()
public int getAscent()
public void setCodeAttribute(CodeAttribute codeAttribute, ClassFile classFile)
codeAttribute
- the code attribute.classFile
- the class file of the code attribute.public void link(Point point)
point
- the point.public boolean isLink(Point point)
point
- the point.
public void scrollToOffset(int offset)
offset
- the bytecode offset.public void copyToClipboard()
protected void paintComponent(Graphics graphics)
|
ej-technologies | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |