|
Enterprise Information Portal APIs |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mm.viewer.annotation.CMBPageAnnotation | +--com.ibm.mm.viewer.annotation.CMBPenAnnotation
Deriving from CMBPageAnnotation, this class specializes to draw a pen annotation.
Fields inherited from class com.ibm.mm.viewer.annotation.CMBPageAnnotation |
allowedToDraw, applyPropertiesNow, canHide, canShow, canUpdate, creationIndex, currentIndex, DEFAULT_BORDER_WIDTH, DEFAULT_TRANSPARENCY, invertedHorz, invertedVert, isInMotion, isVisibleWhileDragging, pageAnnotationFlavor, pageNumber, showHandles, type |
Constructor Summary | |
CMBPenAnnotation()
|
|
CMBPenAnnotation(java.util.Vector strokes,
int pageNumber)
|
Method Summary | |
void |
addPropertyComponent(java.lang.String propertyName,
javax.swing.JComponent component)
|
void |
dispose()
|
void |
draw(java.awt.Graphics2D g2)
Draws the annotation on the supplied graphics. |
protected void |
drawHandles(java.awt.Graphics2D g)
Draws the handles on the given graphics |
void |
drawOutline(java.awt.Graphics2D g2)
Draws the dashed outline of the annotation. |
void |
eraseSegment(java.awt.Point point)
|
CMBPropertiesPanel |
getAnnotationPropertiesPanel()
|
java.util.Vector |
getPenStrokes()
|
javax.swing.JPanel |
getPropertiesPanel()
Returns the custom properties panel that is used to build the custom properties dialog for the annotation. |
void |
growBy(int dx,
int dy)
Override of the parent class GrowBy method, as Pen is not resizable, do nothing |
void |
handlePropertyChange(java.lang.String propName,
javax.swing.JComponent comp,
int action)
|
void |
init()
|
boolean |
pointInHandle(java.awt.Point p)
Override pointInHandle to prevent cursor change |
void |
translateBy(int dx,
int dy)
Overide of the parent class TranslateBy method, as Pen requires special handling |
void |
translateTo(java.awt.Point p)
Override of the parent class TranslateTo method, as Pen requires special handling |
void |
updateValues(int action)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CMBPenAnnotation()
public CMBPenAnnotation(java.util.Vector strokes, int pageNumber)
Method Detail |
public void init()
public java.util.Vector getPenStrokes()
public void draw(java.awt.Graphics2D g2)
CMBPageAnnotation
draw
in class CMBPageAnnotation
com.ibm.mm.viewer.annotation.CMBPageAnnotation
g2
- - Graphics to draw onpublic void drawOutline(java.awt.Graphics2D g2)
CMBPageAnnotation
drawOutline
in class CMBPageAnnotation
com.ibm.mm.viewer.annotation.CMBPageAnnotation
g2
- - Graphics to draw onprotected void drawHandles(java.awt.Graphics2D g)
drawHandles
in class CMBPageAnnotation
g
- public boolean pointInHandle(java.awt.Point p)
pointInHandle
in class CMBPageAnnotation
com.ibm.mm.viewer.annotation.CMBPageAnnotation
p
- A point to checkpublic void translateBy(int dx, int dy)
translateBy
in class CMBPageAnnotation
com.ibm.mm.viewer.annotation.CMBPageAnnotation
x
- How far to translate on the x axisy
- How much to translate on y axispublic void translateTo(java.awt.Point p)
public void growBy(int dx, int dy)
growBy
in class CMBPageAnnotation
com.ibm.mm.viewer.annotation.CMBPageAnnotation
dx
- how much to grow on the x axisdy
- how much to grow on the y axispublic void eraseSegment(java.awt.Point point)
public CMBPropertiesPanel getAnnotationPropertiesPanel()
public javax.swing.JPanel getPropertiesPanel()
CMBAnnotationPropertiesInterface
getPropertiesPanel
in class CMBPageAnnotation
com.ibm.mm.viewer.annotation.CMBPageAnnotation
public void handlePropertyChange(java.lang.String propName, javax.swing.JComponent comp, int action)
handlePropertyChange
in class CMBPageAnnotation
com.ibm.mm.viewer.annotation.CMBAnnotationPropertiesInterface
String
- JComponent
- int
- public void updateValues(int action)
updateValues
in class CMBPageAnnotation
com.ibm.mm.viewer.annotation.CMBAnnotationPropertiesInterface
int
- public void addPropertyComponent(java.lang.String propertyName, javax.swing.JComponent component)
addPropertyComponent
in class CMBPageAnnotation
com.ibm.mm.viewer.annotation.CMBAnnotationPropertiesInterface
String
- JComponent
- public void dispose()
dispose
in class CMBPageAnnotation
|
EIP JavaBeans | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |