public class IlvApp6aGraphic extends IlvGraphic implements IlvDefinitionRectInterface
setSymbol(Object)
must be called to set the renderer parameters.Modifier and Type | Field and Description |
---|---|
static int |
DIRECTION_COMPATIBILITY
Constant that defines that the direction arrow should behave the same as for previous versions of JViews Maps. 0 is towards East and angles turn clockwise.
|
static int |
DIRECTION_GEOGRAPHIC
Constant that defines that the direction arrow should use a Geometric system. 0 is towards North and angles turn clockwise.
|
static int |
DIRECTION_TRIGONOMETRIC
Constant that defines that the direction arrow should use a Trigonometric system. 0 is towards East and angles turn counter-clockwise.
|
Constructor and Description |
---|
IlvApp6aGraphic()
Creates an
IlvApp6aGraphic . |
IlvApp6aGraphic(IlvApp6aGraphic source)
Creates an
IlvApp6aGraphic by copying the source. |
IlvApp6aGraphic(IlvInputStream stream)
Reads an
IlvApp6aGraphic from a stream. |
Modifier and Type | Method and Description |
---|---|
void |
applyTransform(IlvTransformer t)
Applies a transformation to the shape of the object.
|
IlvRect |
boundingBox(IlvTransformer t)
Delegates the bounding box computation to the renderer and adapts it to the transformer passed.
|
IlvGraphic |
copy()
Creates a new instance of
IlvApp6aGraphic by copy. |
void |
draw(Graphics dst,
IlvTransformer t)
The draw method sets the correct transformation for this graphic and delegates the actual drawing to the internal app6a renderer.
|
IlvRect |
getDefinitionRect()
This implementation of
IlvDefinitionRectInterface returns the
transformed boundaries of the symbol icon. |
IlvTransformer |
getDefinitionTransformer()
This implementation of
IlvDefinitionRectInterface returns a
null transformer. |
static int |
getDirectionRotationSystem()
Returns the rotation system of the direction of movement arrow.
|
Object |
getSymbol()
Returns the
IlvApp6aSymbol displayed. |
IlvTransformer |
getTransformer()
Returns the transformer that is currently applied to the
IlvApp6aGraphic . |
boolean |
isDisplayColor()
Returns the indication whether the symbol color, if available, will be displayed.
|
boolean |
isDisplayDirection()
Returns the indication whether direction is displayed.
|
boolean |
isDisplayFill()
Returns the indication whether the symbol fill , if available, will be displayed.
|
boolean |
isDisplayFrame()
Returns the indication whether the symbol frame, if available, will be displayed.
|
boolean |
isDisplayIcon()
Returns the indication whether the symbol icon, if available, will be displayed.
|
boolean |
isDisplayModifiers()
Returns the indication whether modifiers are displayed.
|
boolean |
isHighContrast()
Returns the indication whether high contrast is used.
|
boolean |
isIconAntialiasing()
Returns the indication whether antialiasing is used.
|
boolean |
isIconRasterizing()
Returns the indication whether rasterizing is used.
|
void |
setDefinitionRect(IlvRect rect)
Changes the location and size of the icon and transforms the rest of the
symbol accordingly.
|
static void |
setDirectionRotationSystem(int directionRotationSystem)
Changes the rotation system of the direction of movement arrow.
|
void |
setDisplayColor(boolean display)
Indicates whether the symbol color, if available, will be displayed.
|
void |
setDisplayDirection(boolean displayDirection)
Indicates if the icon will display direction arrow.
|
void |
setDisplayFill(boolean display)
Indicates whether the symbol fill, if available, will be displayed.
|
void |
setDisplayFrame(boolean display)
Indicates whether the symbol frame, if available, will be displayed.
|
void |
setDisplayIcon(boolean display)
Indicates whether the symbol icon, if available, will be displayed.
|
void |
setDisplayModifiers(boolean displayModifiers)
Indicates if the icon will display app6a modifiers.
|
void |
setHighContrast(boolean highContrast)
Indicates if the icon will be rendered using high contrast techniques.
|
void |
setIconAntialiasing(boolean antialiasing)
Sets the antialiasing rendering hint used when drawing symbol's icon.
|
void |
setIconRasterizing(boolean rasterized)
Sets the rasterizing rendering hint used when drawing symbol's icon.
|
static void |
setIconSize(int size)
Override the size of the octagon containing the symbol icon and the length of the headquarters line.
|
void |
setSymbol(Object symbol)
Sets the APP6a symbol.
|
void |
write(IlvOutputStream stream)
Writes the object to an
IlvOutputStream . |
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, makeSelection, 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, viewAddedOrRemoved, zoomable
public static final int DIRECTION_COMPATIBILITY
public static final int DIRECTION_TRIGONOMETRIC
public static final int DIRECTION_GEOGRAPHIC
public IlvApp6aGraphic()
IlvApp6aGraphic
.public IlvApp6aGraphic(IlvApp6aGraphic source)
IlvApp6aGraphic
by copying the source.source
- source object to copypublic IlvApp6aGraphic(IlvInputStream stream) throws IlvReadFileException
IlvApp6aGraphic
from a stream.stream
- stream to read from.IlvReadFileException
public IlvGraphic copy()
IlvApp6aGraphic
by copy.copy
in class IlvGraphic
IlvGraphic
instance.IlvGraphic.copy()
public void draw(Graphics dst, IlvTransformer t)
draw
in class IlvGraphic
dst
- The destination Graphics
instance.t
- The transformation used to draw the object.IlvGraphic.draw(java.awt.Graphics, ilog.views.IlvTransformer)
public IlvRect boundingBox(IlvTransformer t)
boundingBox
in class IlvGraphic
t
- The transformer used to draw the object. If the
transformer is null
, the bounding box for the
identity transformer is returned.IlvGraphic.boundingBox(ilog.views.IlvTransformer)
public void applyTransform(IlvTransformer t)
Note that the method must never be called with a null
argument.
applyTransform
in class IlvGraphic
t
- The transformation to be applied.IlvGraphic.applyTransform(ilog.views.IlvTransformer)
public IlvTransformer getTransformer()
IlvApp6aGraphic
.IlvApp6aGraphic
.public void write(IlvOutputStream stream) throws IOException
IlvOutputStream
.
You must not call this
method directly; instead, you must use the write
methods of the manager.write
in interface IlvPersistentObject
write
in class IlvGraphic
stream
- The output stream.IOException
public Object getSymbol()
IlvApp6aSymbol
displayed.IlvApp6aSymbol
displayed.public void setSymbol(Object symbol)
symbol
- The symbol to set - must be an instance of IlvApp6aSymbol
.public void setIconAntialiasing(boolean antialiasing)
antialiasing
- booleanpublic boolean isIconAntialiasing()
public void setIconRasterizing(boolean rasterized)
rasterized
- the indication whether rasterizing is used.public boolean isIconRasterizing()
public boolean isHighContrast()
public void setHighContrast(boolean highContrast)
highContrast
- The highContrast to set.public boolean isDisplayModifiers()
true
if the modifiers are displayed.public void setDisplayModifiers(boolean displayModifiers)
displayModifiers
- If true
the modifiers will be displayed.public boolean isDisplayDirection()
true
if the direction is displayed.public void setDisplayFrame(boolean display)
display
- If true
, the symbol frame will be displayed.public boolean isDisplayFrame()
true
if the symbol frame will be displayed.
See MIL-STD-2525B: TABLE VIII. Tactical symbol display option hierarchy.
Default is true
public void setDisplayFill(boolean display)
display
- true
if the symbol fill will be displayed.
Default is true.public boolean isDisplayFill()
true
if the symbol fill will be displayed.
See MIL-STD-2525B: TABLE VIII. Tactical symbol display option hierarchy.
Default is true.public void setDisplayIcon(boolean display)
display
- true
if the symbol icon will be displayed.
Default is true.public boolean isDisplayIcon()
true
if the symbol icon will be displayed.
See MIL-STD-2525B: TABLE VIII. Tactical symbol display option hierarchy.public void setDisplayColor(boolean display)
display
- true
if the symbol color will be displayed.public boolean isDisplayColor()
true
if the symbol color will be displayed.
See MIL-STD-2525B: TABLE VIII. Tactical symbol display option hierarchy.public void setDisplayDirection(boolean displayDirection)
displayDirection
- true
to display direction.public IlvRect getDefinitionRect()
IlvDefinitionRectInterface
returns the
transformed boundaries of the symbol icon.getDefinitionRect
in interface IlvDefinitionRectInterface
public IlvTransformer getDefinitionTransformer()
IlvDefinitionRectInterface
returns a
null transformer.getDefinitionTransformer
in interface IlvDefinitionRectInterface
public void setDefinitionRect(IlvRect rect)
setDefinitionRect
in interface IlvDefinitionRectInterface
rect
- The new size and location.public static void setIconSize(int size)
size
- Size of the central symbol part.public static void setDirectionRotationSystem(int directionRotationSystem)
directionRotationSystem
- One of the following values:
IlvApp6aGraphic.DIRECTION_COMPATIBILITY
: Same as previous versions of JViews Maps. 0 is towards East and angles turn clockwise.
IlvApp6aGraphic.DIRECTION_TRIGONOMETRIC
: Trigonometric direction. 0 is towards East and angles turn counter-clockwise.
IlvApp6aGraphic.DIRECTION_GEOGRAPHIC
: Geometric direction. 0 is towards North and angles turn clockwise.
IlvApp6aGraphic.DIRECTION_COMPATIBILITY
.public static int getDirectionRotationSystem()
IlvApp6aGraphic.DIRECTION_COMPATIBILITY
: Same as previous versions of JViews Maps. 0 is towards East and angles turn clockwise.
IlvApp6aGraphic.DIRECTION_TRIGONOMETRIC
: Trigonometric direction. 0 is towards East and angles turn counter-clockwise.
IlvApp6aGraphic.DIRECTION_GEOGRAPHIC
: Geometric direction. 0 is towards North and angles turn clockwise.
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.