public static class IltBTSAntennaBaseRenderer.Standard extends IltBTSAntennaBaseRenderer
IltBTSAntennaBaseRenderer.Offscreen, IltBTSAntennaBaseRenderer.Standard
DRAWING_THRESHOLD
Constructor and Description |
---|
Standard() |
Modifier and Type | Method and Description |
---|---|
IlvRect |
boundingBox(IlvTransformer t,
IlvRect rect,
boolean withSelection)
Returns the bounding box of the area that
draw(g,t,rect) draws into. |
protected boolean |
containsMain(IlvPoint p,
IlvPoint tp,
IlvTransformer t,
IlvRect rect)
Tests whether a point lies within the main part of the base of this object.
|
protected ilog.tgo.graphic.renderer.internal.IltBaseRendererState |
createBaseRendererState()
Creates the instance that stores all the base renderer
configuration.
|
protected void |
drawExtraBorder(Graphics g,
IlvTransformer t,
IlvRect rect,
IltPalette palette,
int distance,
int thickness)
Draws an extra border inside or outside the base depending
on the value returned by
isExtraBorderOutside() . |
void |
drawMain(Graphics g,
IlvTransformer t,
IlvRect rect)
Draws the main part of the base.
|
float |
getAlphaBeamWidth()
Returns the alpha value used to achieve transparency effects when
drawing the antenna beam width.
|
int |
getAntennaRadius()
Returns the antenna size when the power value is maximum.
|
float |
getBeam()
Returns the beam of the antenna.
|
int |
getBeamDirection()
Returns the direction of the antenna, in degrees.
|
int |
getBeamWidth()
Returns the beam width of the antenna, in degrees.
|
int |
getBeamWidthRadius()
Returns the antenna beam width radius when the power value
is maximum.
|
protected ilog.tgo.graphic.renderer.internal.IltBTSAntennaBaseRendererState |
getBTSAntennaBaseRendererState() |
float |
getPower()
Returns the power of the antenna.
|
int |
getPowerMaxValue()
Returns the maximum power possible value for the antenna.
|
IlvRect |
getRect(IlvPoint center)
Returns the preferred size of the base.
|
int |
getRotation()
Returns the antenna orientation, which is measured in degrees.
|
Shape |
getShape(IlvTransformer transf)
Returns the cached bounding shape of this element.
|
void |
initResources()
Initializes resources using the property values defined in
this base renderer.
|
boolean |
isAntennaVisible()
Returns if the antenna is visible or not.
|
boolean |
isAntialiasing()
Returns if anti-aliasing is used or not when drawing the
antenna.
|
boolean |
isBeamWidthBorderVisible()
Returns if the bean width is drawn with a border or not.
|
boolean |
isBeamWidthVisible()
Returns if the antenna beamwidth is visible or not.
|
void |
setAlphaBeamWidth(float v)
Sets the alpha value used to achieve transparency effects when
drawing the antenna beam width.
|
void |
setAntennaRadius(int r)
Sets the antenna size when the power value is maximum.
|
void |
setAntennaVisible(boolean v)
Sets if the antenna is visible or not.
|
void |
setAntialiasing(boolean antialiasing)
Sets if the anti-aliasing is used or not when drawing the
antenna.
|
void |
setBeam(float v)
Sets the beam of the antenna.
|
void |
setBeamDirection(int v)
Sets the direction of the antenna, in degrees.
|
void |
setBeamWidth(int w)
Sets the beam width of the antenna, in degrees.
|
void |
setBeamWidthBorderVisible(boolean v)
Sets if the bean width is drawn with a border or not.
|
void |
setBeamWidthRadius(int v)
Sets the antenna beam width radius when the power value
is maximum.
|
void |
setBeamWidthVisible(boolean v)
Sets if the antenna beamwidth is visible or not.
|
void |
setPower(float v)
Sets the power of the antenna.
|
void |
setPowerMaxValue(int v)
Sets the maximum power possible value for the antenna.
|
void |
setRotation(int r)
Sets the antenna orientation, which is measured in degrees.
|
draw, drawExtraBorders, isExtraBorderOutside
__isDottedBorderVisible, attach, boundingBoxWithTransformer, contains, containsExtraBorders, drawAlarmBorder, drawExtraBorder, drawSelectionBorder, dropResources, getAlarmBorderColor, getAlarmBorderWidth, getAlarmColorLevel, getBackground, getBaseRenderer, getBaseRendererState, getBorderColor, getBorderColor2, getBorderLineStyle, getBorderPalette, getBorderPattern, getBorderWidth, getBrightPalette, getDarkPalette, getDeprecatedBlinkingMode, getDetailLevel, getDottedBorderBackground, getDottedBorderForeground, getDottedBorderLineStyle, getDottedBorderPalette, getExtraBorders, getFillAngle, getFillEnd, getFillStart, getFillStyle, getFillTexture, getForeground, getPalette, getPattern, getRepresentationObject, getSelectionBorderBackground, getSelectionBorderForeground, getSelectionBorderLineStyle, getSelectionBorderWidth, getSourceImage, getView, initBaseRenderer, isAlarmBorderVisible, isAlarmColorVisible, isBaseSelectionBorderVisible, isDottedBorderVisible, isPolygonalBorder, isReliefBorders, isUsingBlinkingResources, setAlarmBorderColor, setAlarmBorderVisible, setAlarmBorderWidth, setAlarmColorLevel, setAlarmColorVisible, setBackground, setBaseRendererState, setBaseSelectionBorderVisible, setBorderColor, setBorderColor2, setBorderLineStyle, setBorderPattern, setBorderWidth, setDeprecatedBlinkingMode, setDetailLevel, setDottedBorderBackground, setDottedBorderForeground, setDottedBorderLineStyle, setDottedBorderVisible, setFillAngle, setFillEnd, setFillStart, setFillStyle, setFillTexture, setForeground, setPattern, setPolygonalBorder, setReliefBorders, setRepresentationObject, setSelectionBorderBackground, setSelectionBorderForeground, setSelectionBorderLineStyle, setSelectionBorderWidth, setSourceImage, setView
protected ilog.tgo.graphic.renderer.internal.IltBaseRendererState createBaseRendererState()
IltBaseRenderer
createBaseRendererState
in class IltBaseRenderer
protected final ilog.tgo.graphic.renderer.internal.IltBTSAntennaBaseRendererState getBTSAntennaBaseRendererState()
public void setRotation(int r)
setRotation
in class IltBTSAntennaBaseRenderer
public int getRotation()
public void setPowerMaxValue(int v)
setPowerMaxValue
in class IltBTSAntennaBaseRenderer
public int getPowerMaxValue()
public void setAntennaRadius(int r)
setAntennaRadius
in class IltBTSAntennaBaseRenderer
public int getAntennaRadius()
public void setBeamWidthRadius(int v)
setBeamWidthRadius
in class IltBTSAntennaBaseRenderer
public int getBeamWidthRadius()
public void setPower(float v)
setPower
in class IltBTSAntennaBaseRenderer
public float getPower()
public void setBeam(float v)
setBeam
in class IltBTSAntennaBaseRenderer
public float getBeam()
public void setBeamDirection(int v)
setBeamDirection
in class IltBTSAntennaBaseRenderer
public int getBeamDirection()
public void setBeamWidth(int w)
setBeamWidth
in class IltBTSAntennaBaseRenderer
public int getBeamWidth()
public void setBeamWidthVisible(boolean v)
setBeamWidthVisible
in class IltBTSAntennaBaseRenderer
public boolean isBeamWidthVisible()
public void setBeamWidthBorderVisible(boolean v)
setBeamWidthBorderVisible
in class IltBTSAntennaBaseRenderer
public boolean isBeamWidthBorderVisible()
public void setAntennaVisible(boolean v)
setAntennaVisible
in class IltBTSAntennaBaseRenderer
public boolean isAntennaVisible()
public void setAlphaBeamWidth(float v)
setAlphaBeamWidth
in class IltBTSAntennaBaseRenderer
public float getAlphaBeamWidth()
public void setAntialiasing(boolean antialiasing)
setAntialiasing
in class IltBTSAntennaBaseRenderer
public boolean isAntialiasing()
public IlvRect getRect(IlvPoint center)
IltBTSAntennaBaseRenderer
getRect
in class IltBTSAntennaBaseRenderer
public void initResources()
IltBaseRenderer
This method can be overridden if you want to modify the value of the properties that have been automatically set by JTGO.
If this method is overridden, super.initResources()
should be called after setting your own values.
initResources
in class IltBaseRenderer
public void drawMain(Graphics g, IlvTransformer t, IlvRect rect)
IltBaseRenderer
drawMain
in class IltBaseRenderer
g
- As in draw
.t
- As in draw
.rect
- As in draw
.protected boolean containsMain(IlvPoint p, IlvPoint tp, IlvTransformer t, IlvRect rect)
IltBaseRenderer
true
only if the point corresponds to a point
drawn by the method drawMain
.
This implementation returns true
if the point tp
is
inside the rectangle rect
, because it is assumed that the
implementation of the drawMain
method fills
rect
.
Note: This method may be overridden to take into account the shape drawn by this base renderer, if it is not rectangular or if it has transparency.
Note: The parameters tp
and rect
are given in
the same coordinate system. The transformer t
has already
been applied to these parameters.
containsMain
in class IltBaseRenderer
p
- The point to be tested.tp
- The point p
transformed by the transformer t
.t
- The transformation that was applied to the object when it was
drawn.rect
- As in draw
.IltBaseRenderer.drawMain(java.awt.Graphics, ilog.views.IlvTransformer, ilog.views.IlvRect)
protected void drawExtraBorder(Graphics g, IlvTransformer t, IlvRect rect, IltPalette palette, int distance, int thickness)
IltBaseRenderer
isExtraBorderOutside()
.
This method is called by drawExtraBorders
for each border that
needs to be drawn (selection, alarm and dotted borders).
The shape of the drawn borders is a rectangle if the dotted border
is visible OR if getExtraBorders
returns null
.
If the dotted border is invisible AND getExtraBorders
returns a non-null array of IltPolygon
,
then these polygons are used as shapes for the borders.
drawExtraBorder
in class IltBaseRenderer
g
- As in draw
t
- As in draw
rect
- As in draw
palette
- The palette with the border colorsdistance
- The distance from the main part (not including width)thickness
- The width of the borderIltBaseRenderer.getExtraBorders(ilog.views.IlvRect)
,
IltBaseRenderer.isExtraBorderOutside()
,
IltBaseRenderer.isDottedBorderVisible()
public IlvRect boundingBox(IlvTransformer t, IlvRect rect, boolean withSelection)
IltBaseRenderer
draw(g,t,rect)
draws into.
The argument rect
is a fresh copy and may be
destructively modified by this function.
This implementation of the function assumes that the main part
fills rect
. Depending on the value returned by
isExtraBorderOutside()
, the function returns rect
, or
rect
enlarged by the width of
the selection border, alarm border and dotted border, if present.
boundingBox
in class IltBaseRenderer
t
- Transformer applied to the object.rect
- As in draw
.withSelection
- if false
the rect
will not be enlarged by the selection.public Shape getShape(IlvTransformer transf)
IltBTSAntennaBaseRenderer
getShape
in class IltBTSAntennaBaseRenderer
transf
- The view transformer© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.