@Override public XDGFCell getCell(String cellName) { XDGFCell _cell = super.getCell(cellName); // if not found, ask the master if (_cell == null && _masterShape != null) { _cell = _masterShape.getCell(cellName); } return _cell; }
@Override public Color getFontColor() { Color fontColor = super.getFontColor(); if (fontColor != null) { return fontColor; } // get from master if (_masterShape != null) { return _masterShape.getFontColor(); } // get default return _document.getDefaultTextStyle().getFontColor(); }
@Override public Double getFontSize() { Double fontSize = super.getFontSize(); if (fontSize != null) { return fontSize; } // get from master if (_masterShape != null) { return _masterShape.getFontSize(); } // get default return _document.getDefaultTextStyle().getFontSize(); }
public Color getLineColor() { String lineColor = XDGFCell.maybeGetString(_cells, "LineColor"); if (lineColor != null) return Color.decode(lineColor); XDGFStyleSheet style = getLineStyle(); if (style != null) return style.getLineColor(); return null; }
public Double getFontSize() { Double fontSize; if (_character != null) { fontSize = _character.getFontSize(); if (fontSize != null) return fontSize; } XDGFStyleSheet style = getTextStyle(); if (style != null) return style.getFontSize(); return null; }
@Override public Integer getLineCap() { Integer lineCap = super.getLineCap(); if (lineCap != null) { return lineCap; } // get from master if (_masterShape != null) { return _masterShape.getLineCap(); } // get default return _document.getDefaultLineStyle().getLineCap(); }
@Override public Double getLineWeight() { Double lineWeight = super.getLineWeight(); if (lineWeight != null) { return lineWeight; } // get from master if (_masterShape != null) { return _masterShape.getLineWeight(); } // get default return _document.getDefaultLineStyle().getLineWeight(); }
@Override public Integer getLinePattern() { Integer linePattern = super.getLinePattern(); if (linePattern != null) { return linePattern; } // get from master if (_masterShape != null) { return _masterShape.getLinePattern(); } // get default return _document.getDefaultLineStyle().getLinePattern(); }
@Override public Color getLineColor() { Color lineColor = super.getLineColor(); if (lineColor != null) { return lineColor; } // get from master if (_masterShape != null) { return _masterShape.getLineColor(); } // get default return _document.getDefaultLineStyle().getLineColor(); }
public Integer getLinePattern() { Integer linePattern = XDGFCell.maybeGetInteger(_cells, "LinePattern"); if (linePattern != null) return linePattern; XDGFStyleSheet style = getLineStyle(); if (style != null) return style.getLinePattern(); return null; }
public Color getFontColor() { Color fontColor; if (_character != null) { fontColor = _character.getFontColor(); if (fontColor != null) return fontColor; } XDGFStyleSheet style = getTextStyle(); if (style != null) return style.getFontColor(); return null; }
@Override public Integer getLineCap() { Integer lineCap = super.getLineCap(); if (lineCap != null) { return lineCap; } // get from master if (_masterShape != null) { return _masterShape.getLineCap(); } // get default return _document.getDefaultLineStyle().getLineCap(); }
@Override public Double getLineWeight() { Double lineWeight = super.getLineWeight(); if (lineWeight != null) { return lineWeight; } // get from master if (_masterShape != null) { return _masterShape.getLineWeight(); } // get default return _document.getDefaultLineStyle().getLineWeight(); }
@Override public Integer getLinePattern() { Integer linePattern = super.getLinePattern(); if (linePattern != null) { return linePattern; } // get from master if (_masterShape != null) { return _masterShape.getLinePattern(); } // get default return _document.getDefaultLineStyle().getLinePattern(); }
@Override public Color getLineColor() { Color lineColor = super.getLineColor(); if (lineColor != null) { return lineColor; } // get from master if (_masterShape != null) { return _masterShape.getLineColor(); } // get default return _document.getDefaultLineStyle().getLineColor(); }
public Double getLineWeight() { Double lineWeight = XDGFCell.maybeGetDouble(_cells, "LineWeight"); if (lineWeight != null) return lineWeight; XDGFStyleSheet style = getLineStyle(); if (style != null) return style.getLineWeight(); return null; } }
/** * @return origin of coordinate system */ public Point2D.Double getPageOffset() { XDGFCell xoffcell = _pageSheet.getCell("XRulerOrigin"); XDGFCell yoffcell = _pageSheet.getCell("YRulerOrigin"); double xoffset = 0; double yoffset = 0; if (xoffcell != null) xoffset = Double.parseDouble(xoffcell.getValue()); if (yoffcell != null) yoffset = Double.parseDouble(yoffcell.getValue()); return new Point2D.Double(xoffset, yoffset); }
public Double getFontSize() { Double fontSize; if (_character != null) { fontSize = _character.getFontSize(); if (fontSize != null) return fontSize; } XDGFStyleSheet style = getTextStyle(); if (style != null) return style.getFontSize(); return null; }
@Override public Color getFontColor() { Color fontColor = super.getFontColor(); if (fontColor != null) { return fontColor; } // get from master if (_masterShape != null) { return _masterShape.getFontColor(); } // get default return _document.getDefaultTextStyle().getFontColor(); }
@Override public Double getFontSize() { Double fontSize = super.getFontSize(); if (fontSize != null) { return fontSize; } // get from master if (_masterShape != null) { return _masterShape.getFontSize(); } // get default return _document.getDefaultTextStyle().getFontSize(); }