public class IlvFontMarker extends IlvGraphic
IlvGraphic which can display a specified character with a
specified font.
An IllegalArgumentException is thrown if the character
cannot be displayed by the specified font.| Constructor and Description |
|---|
IlvFontMarker(IlvFontMarker source)
Creates an
IlvFontMarker by copying an existing
one. |
IlvFontMarker(IlvInputStream stream)
Reads an
IlvFontMarker from the specified stream. |
IlvFontMarker(IlvPoint point,
Font font,
char car)
Creates a new
IlvFontMarker specifying its position,
font and character. |
| Modifier and Type | Method and Description |
|---|---|
void |
applyTransform(IlvTransformer t)
Applies a transformation to the shape of the object.
|
IlvRect |
boundingBox(IlvTransformer t)
Returns the bounding rectangle of the object.
|
IlvGraphic |
copy()
Returns a copy of this object.
|
void |
draw(Graphics dst,
IlvTransformer t)
Draws this object.
|
char |
getChar()
Retrieves the character displayed by this object.
|
Paint |
getFillPaint()
Retrieves the Paint used to fill the character.
|
Font |
getFont()
Retrieves the font used by this object.
|
IlvPoint |
getPoint()
Retrieves the position point.
|
double |
getRotation()
Retrieves the rotation angle.
|
Paint |
getStrokePaint()
Retrieves the Paint used to draw the outline of the character.
|
boolean |
isAntialiasing()
Returns the anti-aliased status.
|
IlvSelection |
makeSelection()
Creates a selection object for this graphic object.
|
void |
setAntialiasing(boolean antialiased)
Specifies if the drawing of the character is anti-aliased
or not.
|
void |
setChar(char car)
Sets the character to be displayed.
|
void |
setFillPaint(Paint paint)
Sets the paint used to fill the character.
|
void |
setFont(Font font)
Sets a new font for this marker.
|
void |
setPoint(IlvPoint point)
Sets a new position point for this marker.
|
void |
setRotation(double angle)
Sets the rotation angle.
|
void |
setStrokePaint(Paint paint)
Sets the paint used to draw the outline of the character.
|
void |
write(IlvOutputStream stream)
Writes this object in an
IlvOutputStream. |
boolean |
zoomable()
Returns
false because this object is not zoomable. |
addActionListener, addNamedPropertyListener, allViewsRemoved, baseTextDirectionChanged, blinkingStateOn, boundingBox, callDraw, componentOrientationChanged, contains, getAndAssociateObjectInteractor, getBaseTextDirection, getBlinkingAction, getBlinkingObjectOwner, getBlinkingOffPeriod, getBlinkingOnPeriod, getCenter, getComponentOrientation, getDefaultInteractor, getGraphicBag, GetGraphicObject, getIntersectionWithOutline, getLocale, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenu, getPopupMenuName, getProperty, getResolvedBaseTextDirection, getToolTipBaseTextDirection, getToolTipText, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, getULocale, getZOrderIndex, hasProperty, inside, intersects, invalidateBBoxCache, invalidateBidiCache, isBaseTextDirectionSensitive, isComponentOrientationSensitive, isDataFlavorSupported, isEditable, isInApplyToObject, isLocaleSensitive, isMovable, isPersistent, isSelectable, isVisible, localeChanged, move, move, moveResize, needsViewNotification, notifyObjectInteractorToManager, processActionEvent, reDraw, registerBlinkingResource, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, resize, rotate, scale, setBackground, setBaseTextDirection, setBaseTextDirectionDuringConstruction, setBlinkingAction, setBlinkingOffPeriod, setBlinkingOnPeriod, setEditable, setFillOn, setForeground, setGraphicBag, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setStrokeOn, setToolTipBaseTextDirection, setToolTipText, setVisible, setZOrderIndex, toString, translate, updateNeedsViewNotification, usesBidiMarkers, viewAddedOrRemovedpublic IlvFontMarker(IlvPoint point, Font font, char car) throws IllegalArgumentException
IlvFontMarker specifying its position,
font and character. The character will be positioned with
the reference point as center.point - The anchor point.font - The font.car - The character to display.IllegalArgumentException - If the character
cannot be displayed by the font.public IlvFontMarker(IlvFontMarker source)
IlvFontMarker by copying an existing
one.source - The IlvFontMarker to copy.public IlvFontMarker(IlvInputStream stream) throws IlvReadFileException
IlvFontMarker from the specified stream.stream - The stream from which the object is read.IlvReadFileExceptionpublic void setPoint(IlvPoint point)
point - The new position.public IlvPoint getPoint()
IlvFontMarker. The returned
point should not be modified.public void setFont(Font font) throws IllegalArgumentException
font - The new font.IllegalArgumentException - If the character
cannot be displayed by the font.public Font getFont()
public void setChar(char car)
car - The new character.IllegalArgumentException - If the character
cannot be displayed by the font.public char getChar()
public void setAntialiasing(boolean antialiased)
antialiased - The character will be
drawn anti-aliased or not according to the value of the
antialiased parameter.public boolean isAntialiasing()
true if the character is drawn anti-aliased, false
otherwise.public void write(IlvOutputStream stream) throws IOException
IlvOutputStream.write in interface IlvPersistentObjectwrite in class IlvGraphicstream - The stream to write in.IOException - If a write problem occurs.public IlvGraphic copy()
copy in class IlvGraphicIlvGraphicpublic void draw(Graphics dst, IlvTransformer t)
draw in class IlvGraphicdst - The destination Graphics.t - The transformation used to draw the object.IlvGraphic.callDraw(Graphics,IlvTransformer),
IlvGraphic.boundingBox(IlvTransformer),
IlvGraphic.zoomable(),
IlvGraphicpublic void applyTransform(IlvTransformer t)
applyTransform in class IlvGraphict - The transformer to be applied.IlvGraphicpublic void setStrokePaint(Paint paint)
IlvBlinkingPaint.paint - the Paint.public Paint getStrokePaint()
public void setFillPaint(Paint paint)
IlvBlinkingPaint.paint - The Paint.public Paint getFillPaint()
public void setRotation(double angle)
public double getRotation()
public IlvRect boundingBox(IlvTransformer t)
boundingBox in class IlvGraphict - The transformer used to draw the object.IlvGraphic.draw(java.awt.Graphics, ilog.views.IlvTransformer),
IlvGraphic.zoomable(),
IlvGraphicpublic IlvSelection makeSelection()
IlvUnresizeableDrawSelection.makeSelection in class IlvGraphicIlvDrawSelectionpublic boolean zoomable()
false because this object is not zoomable.zoomable in class IlvGraphicfalse because this object is not zoomable.IlvGraphic,
IlvGraphic.draw(java.awt.Graphics, ilog.views.IlvTransformer),
IlvGraphic.boundingBox(IlvTransformer),
IlvManager© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.