public class MSTAnnotation
extends javax.swing.JPanel
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
MSTAnnotation() |
Modifier and Type | Method and Description |
---|---|
void |
addTextArea()
This method add TextArea Component for editing text Annotation
|
void |
CalculateWingPoints()
calculate arrow wing points co-ordinates w.r.t.
|
void |
CreatePenPoints() |
void |
drawAngleAnnotationOnImagePanel(java.awt.Graphics g)
This method draw angle annotation.
|
void |
drawPenOnImagePanel(java.awt.Graphics g)
This method draw pen annotation.
|
void |
drawPolygonOnImagePanel(java.awt.Graphics g)
This method will draw polygon annotation.
|
void |
drawPolyLineOnImagePanel(java.awt.Graphics g)
This method draw polyLine annotation.
|
MSTAnnotation |
finalizeAngleAnnotation()
This method finalize angle annotation
|
MSTAnnotation |
finalizePen()
This method finalize pen annotation
|
MSTAnnotation |
finalizePolygon()
This method finalize polygon annotation
|
MSTAnnotation |
finalizePolyLine()
This method finalize polyLine annotation
|
int |
getAngle()
get current roation value of annotation
|
int |
getBorderColor()
Get border color value of Annotation
|
int |
getBounderyBorderWidth()
Get annotation border width
|
static MST.Annotations.MSNoteDialog |
getDefaultNoteDialog()
This method display Note dialog drawing component
|
java.awt.Rectangle |
getDrawRect() |
java.awt.Point |
getEndPoint()
Get annotation End point
|
int |
getFillColor()
Get fill color value of Annotation
|
int |
getPageNumber()
Get Page number on which annotation exist
|
java.util.Vector |
getPenPoints()
This method get pen annotation drawing points
|
java.awt.Rectangle |
getRectangle()
Get Annotation containing Rectangle
|
java.awt.Point |
getStartPoint()
Get annotation starting point
|
boolean |
getStrikeout()
Get strikeOut property for annotation
|
java.awt.Rectangle |
getTempRect()
Get annotation containing Rectangle
|
java.lang.String |
getText()
get Text of the annotation
|
int |
getType()
Get Annotation type
|
boolean |
getUnderline()
Get underline property for annotation
|
int |
getWingAngle()
Get arrow wing ratio
|
float |
getWingRatio()
Get arrow wing ratio
|
boolean |
isInvertHorizontal() |
boolean |
isInvertVertical() |
boolean |
isNoFill()
This method keeps information of background color of Text Annotation
|
boolean |
isTransparent()
This method keeps information of transparency of annotation
|
void |
RotateAnnotation(int nRotation,
int nWidth,
int nHeight)
This method rotates annotation
|
long |
SetAll(MST.Annotations.ANNOTATIONVALUES stAnnValues) |
void |
setBorderColor(java.awt.Color borderColor)
Set border color of Annotation
|
void |
setBorderWidth(int nBorderWidth)
Set annotation border width
|
void |
setDraggedPoints(int nXDiff,
int nYDiff,
int nBoundaryType)
Set points of Annotation while resizing annotation
|
void |
setEndPoint(java.awt.Point p)
Set annotation end point
|
void |
setFillColor(java.awt.Color fillColor)
Set Fill color of Annotation
|
void |
setFont(java.lang.String font)
set Font of Annotation Drawing (Text,Stamp,Note Annotation)
|
void |
setHorizontal(boolean flag)
Set horizontal
|
void |
setMovedRect()
This method will set annotation panel while moving annotation
|
void |
setPageNumber(int pageNumber)
set Page Number w.r.t.
|
void |
setPoints_Arrow(int nXStart,
int nYStart,
int nXEnd,
int nYEnd)
set Arrow annotation points
|
void |
setPoints(int nXStart,
int nYStart,
int nXEnd,
int nYEnd)
set Annotaiton start and end point for panel
|
void |
setPresentValues()
store annotation co-ordinates after releasing
annotation while resizing the annotation
|
void |
setStartPoint(java.awt.Point p)
Set annotation starting point
|
void |
setStrikeout(boolean isStrikeout)
Set strikeOut property for annotation
|
void |
setText(java.lang.String txt)
Set text of annotations(e.g.
|
void |
setType(int type)
Set annotation type
|
void |
setUnderline(boolean isUnderline)
Set underline property for annotation
|
void |
setVertical(boolean flag)
Set vertical
|
void |
setWingAngle(int nAngle)
Set arrow wing angle
|
void |
setWingRatio(int nRatio)
Set arrow wing ratio
|
void |
ZoomAnnotation(double scale)
This method will zoom annotations
|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public java.awt.Point startPoint
public java.awt.Point endPoint
public int startX
public int startY
public int endX
public int endY
public int height
public int width
public int m_nColor
public int m_nFillColor
public java.awt.Rectangle rect
public int m_nBorderWidth
public int m_nBorderTolerance
public int m_nOBorderWidth
public int m_nOBorderTolerance
public double mZoomFactor
public int m_nXStart
public int m_nYStart
public int m_nXEnd
public int m_nYEnd
public int m_nXXStart
public int m_nYYStart
public int m_nWidth
public int m_nHeight
public boolean m_bTransparent
public int m_nPageNo
public boolean bInvertHorizontal
public boolean bHorizontal
public boolean bOHorizontal
public boolean bInvertVertical
public boolean bVertical
public boolean bOVertical
public java.awt.Rectangle ORect
public java.awt.Rectangle tempORect
public int m_nOXStart
public int m_nOYStart
public int m_nOXEnd
public int m_nOYEnd
public int m_nXtempstart1
public int m_nYtempstart1
public int m_nXtempend1
public int m_nYtempend1
public int m_nOWidth
public int m_nOHeight
public int m_nStartOX
public int m_nStartOY
public int m_nEndOX
public int m_nEndOY
public boolean checkdecoding
public java.util.Vector vOPenSegments
public static MST.Annotations.MSTPenStroke objStroke
public static java.util.Vector vctrStroke
public static java.awt.Point collinearPoint1
public static java.awt.Point collinearPoint2
public static java.lang.Object annBoundary
public boolean ISANNSELECTED
public int SELECTEDINDEX
public java.awt.Rectangle oldRect
public boolean oldbHorizontal
public boolean oldbVertical
public boolean m_bRotateWithImg
public static MST.Annotations.MSAnnotationTextField m_TextField
public int nAnnIndex
public int m_nRotation
public int m_nAngle
public int m_nTotAnnotations
public char[] m_pchObjectName
public int m_nCurAnnNum
public int m_nPrevColor
public int m_nPrevWidth
public int m_nPenColor
public int m_nPenWidth
public java.awt.Shape shape
public boolean m_bNOFill
public static MST.Annotations.MSNoteDialog m_NoteDialog
public static java.util.Vector stampImageIndex
public java.util.ArrayList xPolyCordsList
public java.util.ArrayList yPolyCordsList
public int totalNoOfPoints
public int polym_nWidth
public java.lang.Object multiPointAnnBoundary
public MSTAnnotation m_pNext
public MSTAnnotation m_pPrevious
public MSTAnnotation m_pNextPage
public java.lang.String userID
public java.lang.String annUserName
public java.lang.String timeStamp
public boolean isFilenetAnnotation
public MST.Annotations.ANTAnnotation antAnnotation
public java.lang.String textLine
public void addTextArea() throws MST.Annotations.MSTException
MST.Annotations.MSTException
public java.lang.String getText()
public static MST.Annotations.MSNoteDialog getDefaultNoteDialog() throws MST.Annotations.MSTException
MST.Annotations.MSTException
public void drawPenOnImagePanel(java.awt.Graphics g) throws MST.Annotations.MSTException
g
- MST.Annotations.MSTException
public MSTAnnotation finalizePen() throws MST.Annotations.MSTException
MST.Annotations.MSTException
public void drawPolyLineOnImagePanel(java.awt.Graphics g) throws MST.Annotations.MSTException
g
- java.awt.GraphicsMST.Annotations.MSTException
public MSTAnnotation finalizePolyLine() throws MST.Annotations.MSTException
MST.Annotations.MSTException
public void drawPolygonOnImagePanel(java.awt.Graphics g) throws MST.Annotations.MSTException
g
- java.awt.GraphicsMST.Annotations.MSTException
public MSTAnnotation finalizePolygon() throws MST.Annotations.MSTException
MST.Annotations.MSTException
public void drawAngleAnnotationOnImagePanel(java.awt.Graphics g) throws MST.Annotations.MSTException
g
- java.awt.GraphicsMST.Annotations.MSTException
public MSTAnnotation finalizeAngleAnnotation() throws MST.Annotations.MSTException
MST.Annotations.MSTException
public java.awt.Rectangle getDrawRect()
public boolean isInvertHorizontal()
public boolean isInvertVertical()
public boolean isTransparent()
public boolean isNoFill()
public int getBounderyBorderWidth()
public int getBorderColor()
public int getFillColor()
public java.util.Vector getPenPoints()
public java.awt.Rectangle getRectangle()
public int getPageNumber()
public java.awt.Rectangle getTempRect()
public void setPoints_Arrow(int nXStart, int nYStart, int nXEnd, int nYEnd)
nXStart
- Start X positionnYStart
- Start Y positionnXEnd
- end X positionnYEnd
- end Y positionpublic void setWingRatio(int nRatio)
nRatio
- ratio valuepublic void setWingAngle(int nAngle)
nAngle
- public float getWingRatio()
public int getWingAngle()
public void setUnderline(boolean isUnderline)
isUnderline
- true or falsepublic void setStrikeout(boolean isStrikeout)
isStrikeout
- true or falsepublic boolean getUnderline()
public boolean getStrikeout()
public long SetAll(MST.Annotations.ANNOTATIONVALUES stAnnValues)
public void CreatePenPoints()
public void setType(int type)
type
- Annotation typepublic int getType()
public void setBorderColor(java.awt.Color borderColor) throws MST.Annotations.MSTException
borderColor
- java.awt.ColorMST.Annotations.MSTException
public void setFillColor(java.awt.Color fillColor) throws MST.Annotations.MSTException
fillColor
- java.awt.ColorMST.Annotations.MSTException
public void setBorderWidth(int nBorderWidth) throws MST.Annotations.MSTException
nBorderWidth
- intMST.Annotations.MSTException
public void setPageNumber(int pageNumber) throws MST.Annotations.MSTException
pageNumber
- intMST.Annotations.MSTException
public void setHorizontal(boolean flag)
flag
- booleanpublic void setVertical(boolean flag)
flag
- booleanpublic void setStartPoint(java.awt.Point p) throws MST.Annotations.MSTException
p
- java.awt.PointMST.Annotations.MSTException
public java.awt.Point getStartPoint() throws MST.Annotations.MSTException
MST.Annotations.MSTException
public void setEndPoint(java.awt.Point p) throws MST.Annotations.MSTException
p
- java.awt.PointMST.Annotations.MSTException
public java.awt.Point getEndPoint() throws MST.Annotations.MSTException
MST.Annotations.MSTException
public void setPoints(int nXStart, int nYStart, int nXEnd, int nYEnd)
nXStart
- Start X pointnYStart
- Ytart Y pointnXEnd
- End X pointnYEnd
- End Y pointpublic void setMovedRect()
public void setDraggedPoints(int nXDiff, int nYDiff, int nBoundaryType)
nXDiff
- Difference in x-PositionnYDiff
- Difference in y-PositionnBoundaryType
- Annotation selection index numberpublic void CalculateWingPoints()
public int getAngle()
public void RotateAnnotation(int nRotation, int nWidth, int nHeight)
nRotation
- rotation value (possible values 1[clockwise] or 3[Anti-Clockwise] )nWidth
- Page width on which annotation existnHeight
- Page height on which annotation existpublic void ZoomAnnotation(double scale)
scale
- scale of documentpublic void setFont(java.lang.String font) throws MST.Annotations.MSTException
font
- java.lang.String font- Font String (e.g. “1,Arial,20”)MST.Annotations.MSTException
public void setText(java.lang.String txt) throws MST.Annotations.MSTException
txt
- MST.Annotations.MSTException
public void setPresentValues()