public abstract class IltBTSAntennaBaseRenderer extends IltBaseRenderer
Internal use only.
Modifier and Type | Class and Description |
---|---|
static class |
IltBTSAntennaBaseRenderer.Offscreen
The base renderer for the standard BTS Antenna representation making
use of the offscreen buffered image technique.
|
static class |
IltBTSAntennaBaseRenderer.Standard
The base renderer for the standard BTS Antenna representation.
|
Modifier and Type | Field and Description |
---|---|
static double |
DRAWING_THRESHOLD
This property defines the zoom factor that triggers the simplified
BTS antenna drawing routine.
|
Modifier | Constructor and Description |
---|---|
protected |
IltBTSAntennaBaseRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics g,
IlvTransformer t,
IlvRect rect)
Draws the entire base, such that it fits into a given rectangle.
|
protected void |
drawExtraBorders(Graphics g,
IlvTransformer t,
IlvRect rect)
Draws the extra borders around the main part.
|
abstract IlvRect |
getRect(IlvPoint center)
Returns the preferred size of the base.
|
abstract Shape |
getShape(IlvTransformer transf)
Returns the cached bounding shape of this element.
|
protected boolean |
isExtraBorderOutside()
Indicates whether the extra borders should be drawn inside or outside
the
rect used to call
drawExtraBorders . |
abstract void |
setAlphaBeamWidth(float v)
Sets the alpha value used to achieve transparency effects when
drawing the antenna beam width.
|
abstract void |
setAntennaRadius(int r)
Sets the antenna size when the power value is maximum.
|
abstract void |
setAntennaVisible(boolean v)
Sets if the antenna is visible or not.
|
abstract void |
setAntialiasing(boolean antialiasing)
Sets if the anti-aliasing is used or not when drawing the
antenna.
|
abstract void |
setBeam(float v)
Sets the beam of the antenna.
|
abstract void |
setBeamDirection(int v)
Sets the direction of the antenna, in degrees.
|
abstract void |
setBeamWidth(int w)
Sets the beam width of the antenna, in degrees.
|
abstract void |
setBeamWidthBorderVisible(boolean v)
Sets if the bean width is drawn with a border or not.
|
abstract void |
setBeamWidthRadius(int v)
Sets the antenna beam width radius when the power value
is maximum.
|
abstract void |
setBeamWidthVisible(boolean v)
Sets if the antenna beamwidth is visible or not.
|
abstract void |
setPower(float v)
Sets the power of the antenna.
|
abstract void |
setPowerMaxValue(int v)
Sets the maximum power possible value for the antenna.
|
abstract void |
setRotation(int r)
Sets the antenna orientation, which is measured in degrees.
|
__isDottedBorderVisible, attach, boundingBox, boundingBoxWithTransformer, contains, containsExtraBorders, containsMain, createBaseRendererState, drawAlarmBorder, drawExtraBorder, drawExtraBorder, drawMain, 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, initResources, 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
public static double DRAWING_THRESHOLD
public static
to be a non-documented
backdoor for customers willing to fine tune their views. It is surely
not the best approach, but acceptable for the moment.
Set the value to 0
to disable the simplified drawing routine.public abstract Shape getShape(IlvTransformer transf)
transf
- The view transformerprotected boolean isExtraBorderOutside()
rect
used to call
drawExtraBorders
.
This implementation returns true
, as we assume that for
BTS elements the borders should be drawn outside.
isExtraBorderOutside
in class IltBaseRenderer
public void draw(Graphics g, IlvTransformer t, IlvRect rect)
IltBaseRenderer
draw
in class IltBaseRenderer
g
- The graphics context to draw into.t
- The transformer that has been applied to rect
. (It is only
passed because drawing with an Ilt2DPalette
requires it.)rect
- The rectangle to draw into. This is a rectangle with
integer coordinates. Its corners have the following coordinates
x1 = rect.x,
x2 = rect.x + rect.width - 1,
y1 = rect.y,
y2 = rect.y + rect.height - 1.
The default implementation of this function calls drawMain
and
drawExtraBorders
.
protected void drawExtraBorders(Graphics g, IlvTransformer t, IlvRect rect)
IltBaseRenderer
The default implementation of this function calls drawExtraBorder
once for each border that has to be drawn.
drawExtraBorders
in class IltBaseRenderer
g
- As in draw
.t
- As in draw
.rect
- As in draw
.IltBaseRenderer.drawExtraBorder(Graphics, IlvTransformer, IlvRect, IltPalette, int, int)
public abstract void setRotation(int r)
public abstract void setPowerMaxValue(int v)
public abstract void setAntennaRadius(int r)
public abstract void setBeamWidthRadius(int v)
public abstract void setPower(float v)
public abstract void setBeam(float v)
public abstract void setBeamDirection(int v)
public abstract void setBeamWidth(int w)
public abstract void setBeamWidthVisible(boolean v)
public abstract void setBeamWidthBorderVisible(boolean v)
public abstract void setAntennaVisible(boolean v)
public abstract void setAlphaBeamWidth(float v)
public abstract void setAntialiasing(boolean antialiasing)
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.